Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that through functions and NxN matrix that determines to enter the data of 30 patients on the screen: identity card, name, age,

Write a program that through functions and NxN matrix that determines to enter the data of 30 patients on the screen: identity card, name, age, sex (1 = woman, 2 = male), type of illness (1 = bronchitis, 2 = high blood pressure, 3 = cancer, 4 = diabetes), stratum (1-6), and treatment value. Percentage of men over 50 with cancer is requested. Total women minors with bronchitis or diabetes. The EPS has a discount program like this: if the patient is from stratum 1, he discounts 40% of the value of the treatment; if he is from stratum 2, he discounts 25% if he is from stratum 3, 15%; the other strata are not discounted. It is requested to show the value to pay for each patient, the total collected by the EPS.

Step by Step Solution

3.50 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

Assuming this is the correct English translation Write a program that through functions and NxN matrix that determines to enter the data of 30 patients on the screen identity card name age sex 1 woman ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Operating Systems

Authors: Andrew S. Tanenbaum, Herbert Bos

4th edition

013359162X, 978-0133591620

More Books

Students also viewed these Programming questions

Question

explain how you would assess self-confidence,

Answered: 1 week ago