I've just registered here, and really need your help with my assignment
I have these 2 codes that won't work with me
Q1: Write a program that reads a number of patients and then let the employee enter their names and ages and count them. The program should check if the age of the patient is below 25 years old , otherwise, the patient will not be counted . your program should display total number of patient under the age 25.
Q2: Write a program that reads unlimited number of items and their prices until the user enters “Exit “, after that the program should print out the total bill.
I uploaded my codes and print screen for sample run ,
the problem with Q1 is that the print should be like this :
Enter a Number of Patients > 20
Enter patients Name: sara
Enter patients Age: 23
so I can count the ages under 25 .. ???
the problem with Q2 is when I enter the sentinel "Exit" it won't end the loop !!!
that's all , waiting for your help