For this assignment you are going to write a C++ program using the requirements below. Write...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For this assignment you are going to write a C++ program using the requirements below. Write your full name with your student number as a block comment/**/ at the beginning of the program (2 marks will be detected if your code without this comment). Please follow these instructions: • Use your student number to name C++ source code (2 marks will be detected if your C++ code is not your student number) • Create a project using MS Visual Studio. Project folder MUST be named in the following format YourName StudentNumber. Please note only project created by Visual Studio is accepted. Complete your assignment individually and do not seek help from anyone, except your instructor. You can ask general questions on Q&A discussion forum but do not share your code. Compress project folder using ZIP format to Moodle (RAR compression or any other compression method is not accepted). • Uncompleted submission will NOT be considered or marked. • Check the assessment section for details on the marking. • Program with syntax errors will not be graded. • • • You must submit ZIP folder which includes your project and a word file which includes the samples of input/output. In case of cheating or plagiarism, I will follow KPU ST2 Policy. Objective Determine input and output requirements - Develop algorithms to solve a problem. - Implement pseudo-code using C++ programming language - Test, debug, and document programs Problem Specifications Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Pothos, and Hoya. Each pot costs $11.50, $12.25, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept any invalid input. Part 2 Tom has grown his business and wants to express gratitude to his loyal customers by introducing a loyalty program. The program rewards customers 1 point for every 0.85 cents spent on repeat purchases. To determine a customer's points, the program will prompt the user to enter their full name and calculate their earned points based on their purchases. The program should print customer's full name and the final points earned. Part 3 To display the output in a clear manner, use manipulators to format the table. The table must contain the following details: Name of the customer Information about each plant purchased, along with the total cost Number of plant pots left in stock after the customer's purchase Total cost before and after taxes Points collected through the loyalty program. For this assignment you are going to write a C++ program using the requirements below. Write your full name with your student number as a block comment/**/ at the beginning of the program (2 marks will be detected if your code without this comment). Please follow these instructions: • Use your student number to name C++ source code (2 marks will be detected if your C++ code is not your student number) • Create a project using MS Visual Studio. Project folder MUST be named in the following format YourName StudentNumber. Please note only project created by Visual Studio is accepted. Complete your assignment individually and do not seek help from anyone, except your instructor. You can ask general questions on Q&A discussion forum but do not share your code. Compress project folder using ZIP format to Moodle (RAR compression or any other compression method is not accepted). • Uncompleted submission will NOT be considered or marked. • Check the assessment section for details on the marking. • Program with syntax errors will not be graded. • • • You must submit ZIP folder which includes your project and a word file which includes the samples of input/output. In case of cheating or plagiarism, I will follow KPU ST2 Policy. Objective Determine input and output requirements - Develop algorithms to solve a problem. - Implement pseudo-code using C++ programming language - Test, debug, and document programs Problem Specifications Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Pothos, and Hoya. Each pot costs $11.50, $12.25, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept any invalid input. Part 2 Tom has grown his business and wants to express gratitude to his loyal customers by introducing a loyalty program. The program rewards customers 1 point for every 0.85 cents spent on repeat purchases. To determine a customer's points, the program will prompt the user to enter their full name and calculate their earned points based on their purchases. The program should print customer's full name and the final points earned. Part 3 To display the output in a clear manner, use manipulators to format the table. The table must contain the following details: Name of the customer Information about each plant purchased, along with the total cost Number of plant pots left in stock after the customer's purchase Total cost before and after taxes Points collected through the loyalty program.
Expert Answer:
Answer rating: 100% (QA)
can provide you with the complete solution divided by the tasks youve mentioned Heres the C program broken down into parts based on the tasks outlined ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
C++ Please use two .cpp files and and one .h file forthe code . Please follow the directions below. What if we could add colors like this: newColor = red + blue; Orwhat if we could compare athletes...
-
1 Overview of the Application In this assignment, you will develop your social media platform (what we will call it is mysocialbook) with very simplified use case scenarios. To complete every...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Use f(x) and g(x) to find a formula for each expression. Identify its domain. (a) (f + g)(x) (c) (fg)(x) (b) (f- g)(x) (d) (f/g)(x)
-
Calculate the wavelength of the Ka line in (a) Magnesium (Z = 12) (b) Copper (Z = 29).
-
A ____________ in the BCG Matrix would have a high market share in a low-growth market, and the correct grand or master strategy is ____________. (a) Dog, growth (b) Cash Cow, stability (c) Question...
-
What is the primary purpose of admission-seeking questions?
-
Willow Brook National Bank operates a drive-up teller window that allows customers to complete bank transactions without getting out of their cars. On weekday mornings, arrivals to the drive-up...
-
18) A physician prescribes one 0.7 mg tablet of a medication to be taken twice a day for 15 days. How many total mcg of the medication will the patient have taken after 15 days?
-
Use the following information to answer questions. Viva Electronics produces and sells two products, VE1 and VE2. Viva incurred $168,000 overhead costs in a single cost pool. Viva allocates the...
-
A boiler producing 15 000 kg/h of steam at 2000 kPa and 250C which is supplied to a turbine. The turbine produces 2200 kW and exhausts into a condenser at 15 kPa and 0.88 dry. Calculate the actual...
-
In Canada, a worker can produce 20 barrels of oil or 40 tons of wood per year.In Venezuela, a worker can produce 60 barrels of oil or 30 tons of wood per year. Country Oil (barrels) Wood (tons)...
-
At the time of Carol's 10-year high school reunion, she was earning $30,000 and the CPI was 110. Now that the time has come to attend her 20-year high school reunion, her earnings Carol's income...
-
Emissions (tons/month) Marginal cost of abatement Total reduction cost Total tax bill at $100/ton Total costs 10 0 9 15 8 30 7 50 6 70 5 100 4 120 3 150 300 2 185 200 1 230 100 0 290 0 See the table...
-
This excerpt is from a letter Jefferson Davis wrote to George Lunt on January 17, 1861. Davis, a U.S. senator from Mississippi, was a leader of the Southern states' rights movement.In January 1861,...
-
Describe some of the explicit and implicit costs of obtaining a college degree. If two baristas can produce 200 espresso drinks per shift and three baristas can produce 275 espresso drinks, what is...
-
The following information is available for the first four years of operations for Acme Company: i. Taxable Income Tax Rate $450,000 21% 19% 19% 19% Year 2019 2020 2021 2022 325,000 455,000 462,000...
-
Provide examples of a situations in which environmental disruptions affected consumer attitudes and buying behaviors.
-
Sherry rents her vacation home for 6 months and lives in it for 6 months during the year. Her gross rental income during the year is $4,000. Total real estate taxes for the home are $950, and...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. The Incisors own a rental beach house in Hawaii. The beach house was rented for the full year during 2012...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-7. Ivan sold the following securities during the year and received a Form 1099-B that...
-
Lynn Goldsmith is a photographer known for her photographs of famous musicians. In 1981, Goldsmith had a photography session with the singer Prince. Three years later, Vanity Fair obtained a license...
-
Stone Brewing Co. is a San Diego brewer that has sold its beers for over two decades. Stone has maintained its trademark and brand from the beginning, registering the STONE mark in 1998. Stone has...
-
The Nielsen family formed their corporation, N. Robert Nielsen, Inc., to conduct farming operations. Morre, Grider & Co. is a certified public accounting firm that has provided accounting, tax, and...
Study smarter with the SolutionInn App