Suppose we want to find a student that qualifies for an internship. For each student, we...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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; 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;
Expert Answer:
Answer rating: 100% (QA)
while age 30 finalMark 65 cout name does not qualify ... View the full answer
Related Book For
Stats Data and Models
ISBN: 978-0321986498
4th edition
Authors: Richard D. De Veaux, Paul D. Velleman, David E. Bock
Posted Date:
Students also viewed these operating system questions
-
In this question you will be asked to reflect on a project you have been involved in or observed, in which a design evolved, or could have evolved, through applying a theory of user behaviour. You...
-
In a Hopfield neural network configured as an associative memory, with all of its weights trained and fixed, what three possible behaviours may occur over time in configuration space as the net...
-
Jerome Neeson is a shareholder in Gourmet Chefs Inc., a company that owns and operates a test kitchen in a large metropolitan area. The company is involved in a number of businesses, including...
-
Jeon Enterprises, Ltd. issues W300,000,000 of bonds for W306,000,000. (a) Prepare the journal entry to record the issuance of the bonds, and (b) Show how the bonds would be reported on the statement...
-
The study described in Example 8.1.1, involving the compound mCPP, included a group of nine men. The men were asked to rate how hungry they were at the end of each 2-week period and differences were...
-
Show that after nearly all of the positrons were annihilated and the electron number density had nearly leveled off at the proton density, the ratio of the positron number density to the photon...
-
Beginning and Ending Fund Balances. The following information is provided about the Village of Wymettes General Fund operating statement and budgetary accounts for the fiscal year ended June 30,...
-
2. Let h1(t), h2(t) = C[0, ) and (x) L(0, L). Consider the following one- dimensional heat equation: u = kuxx, 0 0, ux (L,t) = h2(t), t> 0, 0
-
Choose your own topic and develop an argumentative essay outline from there. You should use the Preliminary Essay Outline Template Each outline must include: A clear, concise and three-pronged thesis...
-
Media Skills: Writing Email Subject Lines Using your imagination to make up whatever details you need, revise the following email subject lines to make them more effective: a. New budget figures b....
-
Turn to the Handbook of Grammar, Mechanics, and Usage at the end of this book and review all of Sentences. Using those guidelines, indicate the preferred sentence in the following pairs. (You can...
-
Rewrite each of the following to eliminate bias: 1. Whomever we hire, he or she needs to know both Java- Script and Python. 2. This office made several changes to remove barriers for disabled...
-
Explain the important differences between texting and formal writing on paper or email.
-
Substitute a better phrase for each of the following: 1. You claim that 2. You must update 3. It is not our policy to 4. You neglected to 5. In which you assert 6. We are sorry you are dissatisfied...
-
John OConnor and Irving Reilly were classmates at St.Johns. Both graduated in May, 1967 with degrees in Accounting. After serving in the Army, OConnor joined the firm of Arthur Andersen, and Reilly...
-
Using the parallel-axis theorem, determine the product of inertia of the area shown with respect to the centroidal x and y axes. 6 in. 9 in. 9 in- 4.5 in. in. 4.5 in.
-
A candidate for office claims that "there is a correlation between television watching and crime." Criticize this statement on statistical grounds.
-
In a large class of introductory Statistics students, the professor has each student toss a coin 16 times and calculate the proportion of his or her tosses that were heads. The students then report...
-
Yvon Hopps ran an experiment to test optimum power and time settings for microwave popcorn. His goal was to find a combination of power and time that would deliver high-quality popcorn with less than...
-
Cinnamon, Inc. recorded a total deferred tax asset in Year 3 of \($12\),301, off set by a \($12\),301 valuation allowance. Cinnamon most likely: A . fully utilized the deferred tax asset in Year 3. B...
-
Midland Brands issues three-year bonds dated January 1, 2015 with a face value of $5,000,000. Th e market interest rate on bonds of comparable risk and term is 3%. If the bonds pay 2.5% annually on...
-
A company issues $1,000,000 face value of 10-year bonds on January 1, 2015 when the market interest rate on bonds of comparable risk and terms is 5%. Th e bonds pay 6% interest annually on December...
Study smarter with the SolutionInn App