Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment you are going to write a C++ program using the requirements below. Write your full name with your student number as
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.
Step by Step Solution
★★★★★
3.39 Rating (152 Votes )
There are 3 Steps involved in it
Step: 1
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started