Question: Escribir un programa que mediante funciones y matriz NxN que determine ingresar por pantalla los datos de 30 pacientes: cedula, nombre, edad, sexo (1=mujer, 2=

Escribir un programa que mediante funciones y matriz NxN que determine ingresar por pantalla los datos de 30 pacientes: cedula, nombre, edad, sexo (1=mujer, 2= masculino), tipo de dolencia (1= bronquitis, 2=presin alta, 3=cncer, 4=diabetes), estrato (1-6), y valor tratamiento.

Se pide porcentaje de los hombres mayores de 50 aos con cncer.

Total mujeres menores de edad con bronquitis o diabetes.

La EPS tiene un programa de descuentos as: si el paciente es de estrato 1 le descuenta el 40% del valor del tratamiento, si es de estrato 2 le descuenta el 25% si es de estrato 3 el 15%; los dems estratos no tienen descuento.

Se pide mostrar el valor a pagar por cada paciente, el total recaudado por la EPS.

A Program that uses functions and matrix NxN that determines to enter on screen the data of 30 patients: ID number, name, age, sex (1 = female, 2 = male), type of ailment (1 = bronchitis, 2 = high blood pressure, 3 = cancer, 4 = diabetes), stratum (1-6), and treatment value.

SHOW: Percentage of men older than 50 years with cancer.

SHOW: Total underage women with bronchitis or diabetes.

The Clinic has a discount program as follows: if the patient is from stratum 1, it deducts 40% of the treatment value, if the patient is from stratum 2, then the clinic discounts 25%. if he/she is from stratum 3, then 15%; the other strata do not have a discount.

Show the value to pay for each patient, the total collected by the CLINIC

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!