Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we want to find a student that qualifies for an internship. For each student, we input the name, the age of student and

 

Suppose we want to find a student that qualifies for an internship. For each student, we input the name, the age of student and the final mark obtained for the examination in a while loop. To qualify, the stude. should be younger than 30 with a final mark of more than 65%. Read in values until a suitable candidate is found. Display appropriate messages, whether successful or not. The variable names are name, age and finalMark respectively. Complete the while loop below. You only have to write down the completed while loop. string name cout < > name; cout < < "Enter age: "; cin >> age; cout < < "Enter final mark for exam: "; cin >> finalMark; //while loop to find a suitable candidate cout < < name < < " qualifies for the internship 11 < < endl;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

while age 30 finalMark 65 cout name does not qualify ... 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

Stats Data And Models

Authors: Richard D. De Veaux, Paul D. Velleman, David E. Bock

4th Edition

321986490, 978-0321989970, 032198997X, 978-0321986498

More Books

Students also viewed these Operating System questions

Question

Determine the domains of the following functions. f(x)=x + 1

Answered: 1 week ago