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
23+ 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...
-
Experiments by Rosch indicate that a basic level of categories (such as guitar, as opposed to musical instrument or rock guitar) is a privileged level of categorization that reflects peoples everyday...
-
3. The proprietary fund statement of cash flows includes all of the following sections except: a Cash flows from operating activities b Cash flows from investing activities c Cash flows from capital...
-
Compute key ratios and other financial measures for Crazy Eddie during the period 19841987. Identify and briefly explain the red flags in Crazy Eddies financial statements that suggested the firm...
-
I know headquarters wants us to add that new product line, said Dell Havasi, manager of Billings Companys Office Products Division. But I want to see the numbers before I make any move. Our divisions...
-
Determine the voltage at each node with respect to ground in Figure. 100 V 4.7 10 1.8 1.0 15.6k0 1.0 D
-
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...
-
Describe the advantages of applying traditional metalworking techniques covered in the preceding chapters to the forming and shaping of plastics?
-
Pulleys C and D in Figure are fastened together. Weights A and B are supported by ropes wound around the pulleys as shown. The radius for pulley C is 187 mm and the radius for pulley D is 138 mm. If...
-
As a leader what are some of the thoughtful and creative ideas that you have implemented to motivate your team and increase job satisfaction?
-
A Chinese smartphone maker TECNO Ltd has provided you with a summary of its price and cost information for one of its product segments (tablets). It is based on 2018 income statement. Units produced...
-
The following projected financial data is available for the single product of Janis Ltd:- October November December Sales (unit) 50,000 65,000 65,000 Production (unit) 70,000 60,000 50,000 Opening...
-
I would appreciate freehand sketches for the top, side views, and front views. D C 6 50 B 2.75 A a 5 4 3 2 1 .45 UNLESS OTHERWISE SPECIFIED: DIMENSIONS ARE IN MILLIMETERS SURFACE FINISH: TOLERANCES:...
-
The adjusted account balances of Doqe Company show these data pertaining to sales at the end of its fiscal year, October 31, 2022: Sales Revenue...............................$900,000...
-
Problem 3.5 (4 points). We will prove, in steps, that rank (L) = rank(LT) for any LE Rnxm (a) Prove that rank (L) = rank (LTL). (Hint: use Problem 3.4.) (b) Use part (a) to deduce that that rank(L) =...
-
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...
-
Construction of consumer price index number for the given goods and services. Item Weight in % Base period price Current period price Food 35 150 145 Fuel 10 25 23 Cloth 20 75 65 Rent 15 30 30 Misc....
-
Gammaro Corporation has found that 80% of its sales in any given month are credit sales, while the remainder are cash sales of the credit sales, Gammaro Corporation has experienced the following...
-
Swifty Company estimates that 2022 sales will be $43,200 in quarter 1,$51,840 in quarter 2 , and $62,640 in quarter 3 , Cost of goods sold is 50% of sales. Management desires to have ending...
Study smarter with the SolutionInn App