Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace EmergencyRoom_01
- {
- class Program
- {
- static void Main(string[] args)
- {
- Patient patient = new Patient();
- Console.WriteLine($"Жизненно важные показатели пациента\n");
- patient.ShowVitalSigns();
- Console.ReadKey();
- }
- }
- class Patient
- {
- public int HeatRate;
- public int SystolicPressure;
- public int DiastolicPresure;
- public int RespiratoryRate;
- public float BodyTemperature;
- public string Cardiogram;
- public Patient()
- {
- HeatRate = 80;
- SystolicPressure = 120;
- DiastolicPresure = 80;
- RespiratoryRate = 12;
- BodyTemperature = 36.6f;
- Cardiogram = "синусовый ритм";
- }
- public void ShowVitalSigns()
- {
- Console.WriteLine($"Температура тела {BodyTemperature} градусов\n" +
- $"Частота сердечных сокращений {HeatRate} ударов в минуту\n" +
- $"Частота дыхания {RespiratoryRate} в минуту\n" +
- $"Артериальное давление {SystolicPressure}/{DiastolicPresure} мм.рт.ст.\n" +
- $"ЭКГ {Cardiogram}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement