Answered step by step
Verified Expert Solution
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 ...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