Create a program that gets quarterly sales from a user and calculates the total of all...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that gets quarterly sales from a user and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 16489.74 Average Quarter: Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications • Round the average quarter to a maximum of 2 decimal digits. • Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Create a program that gets quarterly sales from a user and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 16489.74 Average Quarter: Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications • Round the average quarter to a maximum of 2 decimal digits. • Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters.
Expert Answer:
Answer rating: 100% (QA)
Name STLcpp Author Version Copyright Your copyright notice Description ... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
Create a program that displays five random addition problems, one at a time, on the computer screen. Each problem should be displayed as a question, like this: What is the sum of x + y?. The x and y...
-
C++ please This problem tests your ability to perform basic operations on a 1 dimensional array. Create a program that reads 10 integers from the keyboard (you do not need to prompt for them). Store...
-
create a program that prompts for students final grades in a given class (the grades are integer values in the range 19) the program then displays the class grade average, the highest grade, and how...
-
A travel softball team is trying to raise funds to go to the Colorado Sparkler, a major summer national tournament. The team is going to sell 3000 raffle tickets for $9 each. The prizes and their...
-
In Problems 1-4, indicate whether the given series converges or diverges. If it converges, find its sum. Hint: It may help you to write out the first few terms of the series? 1. 2. 3. 4. k-2 23(- k=1
-
AM Coffee Company roasts and packs coffee beans. The process begins in the Roasting Department. From the Roasting Department, the coffee beans are transferred to the Packing Department. The following...
-
A university pumps its water from wells located on campus. The falling water table has caused pumping costs to increase, the quantity of water available to decrease, and the quality of water to...
-
Marlin Company has suspected something fishy for several months. It has noticed that its profits have been slowly decreasing, while revenues have been increasing. After consulting with you, a fraud...
-
Consider the two classes represented in the following UML diagram. Implement the two classes as explained below. YouTube Channel -owner: String -nbOfVideos: int -videos: Video[] +YouTubeChannel...
-
A 40-m-long, 4-in. commercial steel pipe connects reservoirs A and Bas shown in Figure P4.1.6. Determine the minimum pressure (P0) that would keep the pressure head throughout the pipe positive....
-
Please tell us about your preferred method of automating CI of infrastructure workloads ( like monitoring, controllers, etc. ) to Kubernetes clusters and why did you choose this particular method?
-
Tim is building a toolshed 30 feet wide and 60 feet long. Heneeds a footer 15 inches wide and 10 inches deep. How many yards(yards means cubic yards) of concrete should he order?
-
After watching the Documentary film, We were Children by Tim Wolochatiuk, answer the following questions in the journal: Questions: 1. How long were the residential schools in existence? 2. Who ran...
-
The value of a Bobby Orr rookie card n years after its purchase is V(n)=520+28n. Determine the value of n when V(n)=744. a n=8 b n=10 c n=7 d n=6
-
8. GERMANY Company prepared a reconciliation between pretax financial income and taxable income at the end of 2022 as follows (see image below). The estimated litigation expense of P1,250,000 will be...
-
You are promoting media literacy (not any personal or political viewpoint)--you want to discuss the constant news flow that students are bombarded with every day (via social media, word-of-mouth,...
-
Discuss two advantages and disadvantages of the modern market economy, how to fix the disadvantages, and if a better system may evolve to replace the market economy in the 21st century.
-
What are bounds and what do companies do with them?
-
Complete the C++ instructions column in Figure 4-32. IPO chart information C++ instructions Input quantity sold item cost int quantity = 0; double cost = 0.0; double sellPrice item selling price =...
-
Which of the following creates an Animal object named dog? a. Animal dog; b. Animal "dog"; c. dog = "Animal"; d. dog Animal();
-
Gabrielle receives 52 paychecks each year. She always deposits a specific percentage of her gross pay into her savings account. She also receives a bonus check, which is always more than $250, at the...
-
A female mouse that is Igf 2 Igf 2 is crossed to a male that is also Igf 2 Igf 2. The expected outcome for the phenotypes of the offspring for this cross is a. all normal size. c. 1 normal size : 1...
-
In mice, the copy of the Igf 2 gene that is inherited from the mother is never expressed in her offspring. This happens because the Igf 2 gene from the mother a. always undergoes a mutation that...
-
A female snail that coils to the left has offspring that coil to the right. What are the genotypes of this mother and of the maternal grandmother of the offspring, respectively? a. dd, DD b. Dd, Dd...
Study smarter with the SolutionInn App