Create a program that allows the user to enter the ages (in years) of five people. The
Question:
Create a program that allows the user to enter the ages (in years) of five people. The program should display the average age. Use the for statement. Display the average age with one decimal place. If necessary, create a new project named TryThis15 Project, and save it in the Cpp8\Chap07 folder. Enter the C++ instructions into a source file named TryThis15.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Test the program using the following ages: 23, 31, 37, 19, and 43.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 73% (15 reviews)
TryThis15cpp displays the average age Createdrevised by on include include using na...View the full answer
Answered By
Hemstone Ouma
"Hi there! My name is Hemstone Ouma and I am a computer scientist with a strong background in hands-on experience skills such as programming, sofware development and testing to name just a few. I have a degree in computer science from Dedan Kimathi University of Technology and a Masters degree from the University of Nairobi in Business Education. I have spent the past 6 years working in the field, gaining a wide range of skills and knowledge. In my current role as a programmer, I have had the opportunity to work on a variety of projects and have developed a strong understanding of several programming languages such as python, java, C++, C# and Javascript.
In addition to my professional experience, I also have a passion for teaching and helping others to learn. I have experience as a tutor, both in a formal setting and on a one-on-one basis, and have a proven track record of helping students to succeed. I believe that with the right guidance and support, anyone can learn and excel in computer science.
I am excited to bring my skills and experience to a new opportunity and am always looking for ways to make an impact and grow as a professional. I am confident that my hands-on experience as a computer scientist and tutor make me a strong candidate for any role and I am excited to see where my career will take me next.
5.00+
8+ Reviews
22+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Create a program that allows the user to enter any number of integers. The program should display the sum of the integers. Use the while statement and a negative number as the sentinel value. If...
-
Create a program that allows the user to enter the gender (either F or M) and GPA (0.0 through 4.0) for any number of students. The program should calculate and display the average GPA for all...
-
In this exercise, you will create a program that allows the user to enter an unknown number of sales amounts for each of three car dealerships: Dealership 1, Dealership 2, and Dealership 3. Use a...
-
Tonight at 7pm a professional basketball game featuring the Golden State Warriors and the Washington Wizards will be played at the Chase Center, an indoor arena in the Mission Bay neighborhood of San...
-
R = 4 with probability 0.25, R = 0.25 with probability 0.75. Find the arithmetic and geometric means of the random variables R for per capita production in the above cases. Check that the...
-
Evaluate the equivalent capacitance of the configuration shown in Figure P26.18. All the capacitors are identical, and each has capacitance C. C C C
-
In the Kessler International Survey, what percentage of the employees said they lied on their job application? a. 43% b. 49% C. 79% d. 92% e. None of the above
-
On July 1, 2007, Brigham Corporation purchased Young Company by paying $250,000 cash and issuing a $100,000 note payable to Steve Young. At July 1, 2007, the balance sheet of Young Company was as...
-
The following information is provided in relation to a defined benefit plan operated by Lasco. At 1 January 20X4 , the present value of the obligation was $140 million and the fair value of the plan...
-
The Fitzgerald Company maintains a checking account at the Bank of the North. The bank provides a bank statement along with canceled checks on the last day of each month. The October 31, 2007 bank...
-
Figure 7-23 in the chapter showed two examples of the for statement. List the processing-steps for the code shown in Example 2, using Figure 7-24 as a guide. Syntax for (linitialization]; condition;...
-
In this exercise, you will modify the tip program shown earlier in Figure 7-31. Follow the instructions for starting C++ and viewing the ModifyThis16.cpp file, which is contained in either the...
-
Dave Hirsch publishes his own manuscripts and is unsure of which of two new printers he should purchase. He is a novelist living in parkman, IL. Having slept through most of his finance 300 course in...
-
Net income Interest expense Income tax expense Average total assets Average stockholders' equity Year 5 Year 4 Year 3 Year 2 Year 1 $1,070,100 $922,500 $775,200 $662,600 $561,500 363,800 332,100...
-
The Merlin rocket engines developed by SpaceX can produce 7.41 x 105 N of instantaneous thrust with an exhaust speed of 3.05 x 103 m/s in vacuum. What mass of fuel does the engine burn each second to...
-
A curling stone of mass of 18 kg is traveling at 5 m/s when it hits the opponents stone (of the same mass) at rest in the house (target area). If after the collision, the opponent's stone travels at...
-
An elastic bone is compressed 10 m by a student's weight. The student picks up a very heavy backpack and the same bone compressed by an extra 5 m. (a) How many times heavier or lighter is the student...
-
On January 1, 2024, Cullumber Ltd., a public company, purchased $672,000 of 5-year, 6% bonds at par from Bramble Corporation. Interest is received semi-annually on July 1 and January 1. Cullumber...
-
Determine the angle between the diagonal of a cube and the diagonal of its base, as shown in the figure. a a a
-
On January 2, 20X3, Sheldon Bass, a professional engineer, moved from Calgary to Edmonton to commence employment with Acco Ltd., a large public corporation. Because of his new employment contract,...
-
In this exercise, you modify the Sales application from Exercise 14 in Chapter 3. Use Windows to copy the Sales Solution folder from the VB2017\Chap03 folder to the VB2017\Chap04 folder. Open the...
-
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap04 folder....
-
The purpose of this exercise is to demonstrate the importance of testing an application thoroughly. Open the FixIt Solution.sln file contained in the VB2017\Chap04\FixIt Solution folder. The...
-
fflush(fp); fsync(fileno(fp));
-
Behavior analysts are responsible for (select all that apply) A. Establishing baseline data collection B. Always carrying out the treatment C. Upholding the highest ethical standards to avoid harming...
-
_______ conflict is when two people disagree on some matter. A. Interpersonal B. Intergroup C. Interorganizational D. Intrinsic
Study smarter with the SolutionInn App