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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started