Question: Part 1) Implement in c-code. Create a While-End repetition structure that includes a nested if-then selection structure. Document the code with Header and in-line comments.

Part 1) Implement in c-code. Create a While-End repetition structure that includes a nested if-then selection structure. Document the code with Header and in-line comments. Put Discussion1 - problem 'a' in the Subject. Submit the code and a screen shot of the execution.

a) A program that handles 150 passengers of an Airline with the following requirements should be created: The first 25 passenger the ticket price is $90. The remaining passengers the ticket price is $100. The first 100 passengers get a ticket. The next 25 (i.e 101-125) are put on standby. No more passengers are accepted after 125. Print out a message for each of the above categories. No prompt needed-just loop.

b)A program that registers patients at a Doctor's office into three categories should be created. Checkup, Sick, or VerySick. No more than 10 patients may register. A prompt will be needed to put them in the proper category. Prompt with a menu 1=Checkup, 2=Sick, 3=VerySick. Print out a message for each of the above categories.

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 Databases Questions!