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...
-
The following is the statement of financial position of WW Associates as at 31 December 2008: During 2009, the following transactions took place: 1 The owners withdrew equity in the form of cash of...
-
The stagnation pressure in a Mach 2 wind tunnel operating with air is \(900 \mathrm{kPa}\). A 1.0-cm-diameter sphere positioned in the wind tunnel has a drag coefficient of 0.95 . Calculate the drag...
-
On April 30, 2007 Hackman Corporation issued $1 million face value 12% bonds dated January 1, 2007, for $1,023,000 plus accrued interest. The bonds pay interest semiannually on June 30 and December...
-
According to Governance, Risk & Compliance (2023), Jessica Fountaine, a woman from Florida got arrested on suspicion of fraud and third-degree grand theft in connection with a resident of Brandon...
-
A marketer of health foods is attempting to segment a certain market on the basis of consumer self-image. Describe the four types of consumer self-image and discuss which one(s) would be most...
-
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...
-
Consider the following premerger information about firm X and firm Y: .............................................Firm X ...............Firm Y Total earnings ..........................$105,000...
-
On April 9, 2015, Starbucks corporation split its shares two-for-one. On the day before the split, Starbucks shares closed at $95.23. Theoretically, after the split the stock price should fall by...
-
Determine the net price if an oven has a list price of $1,800 and the distributor is offering discounts of 12%, 8% and 6%. An invoice dated November 25, 2021 for $1,277 had the terms 4/15, 1.5/30,...
-
Determine the following: a. Vertical reaction at point A. b. Horizontal reaction at point A. c. Moment reaction at point A d. Vertical reaction at point G e. Horizontal reaction at point G f....
-
Encryption Mode-ECB vs. CBC The file pic original. bmp can be downloaded from course Blackboard, and it contains a simple picture. We would like to encrypt this picture, so people without the...
-
Are the payoffs identical for an investor who buys a call option and sells a put option? Explain.
-
When you go grocery shopping to different stores in your neighborhood, you notice that there are negligible differences in the prices of brand name items. Yet, most people develop a preference for 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...
-
The Pew Internet and American Life Project reported on the widespread use of the Internet to search for information regarding experimental treatments or medicines. From telephone interviews of 1005...
-
write the differences between Microprocessors and Microcomputers. compare between them and draw the block diagram for each one. B) define the interface and mention it's types with brief description....
-
Write a program that prompts the user for the constitutive parameters (relative permittivity, relative permeability, and conductivity) in medium 1 and medium 2 separated by a planar surface. You are...
Study smarter with the SolutionInn App