Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What is the relationship between humans?

Answered: 1 week ago

Question

What is the orientation toward time?

Answered: 1 week ago