Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Description: Programming can be used to assist users in completing complex calculations very quickly. As seem in class practices, we were able to calculate the
Description: Programming can be used to assist users in completing complex calculations very quickly. As seem in class practices, we were able to calculate the area of geometric shapes, figure out the amount of calories in cookies, and even calculate a restaurant bill. For this assignment, you will take input from the user to provide interactive messages and to solve the following word problem: E-Commerce websites, such as amazon and ebay, usually use programming to deal with displaying a shopping cart to the user. In this program, we will explore the some of the most important parts of a shopping cart, or an order receipt. Write a program that accepts as requests the user to provide 1. 2. 3. 4. 5. 6. Their name The name of the store they are purchasing from The name of 3 items they are purchasing from the store The quantity of each of the 3 items The price of each of the 3 items The tax rate First, the user should input their name and the name of the store. The program should displaya message welcoming the user "Welcome to the The program should then display a prompt and request information about the name of the items, the quantity, and the price of the 3 items the person is purchasing Finally, calculate and display the following information nameOfStore store, nameOfUser 3 Subtotal: Can be calculated by taking the sum of the total for each item. Each item's total is the cost multiplied by the quantity Taxes: Can be calculated by multiplying the subtotal by the tax rate Grand Total: Calculated by adding the subtotal and the taxes for the purchase Your Task: For now, we are not going to do any programming! It is important that you understand that you should plan your code. Planning your code saves you time on the long run and allows you to use the solution in any programming language Description: Programming can be used to assist users in completing complex calculations very quickly. As seem in class practices, we were able to calculate the area of geometric shapes, figure out the amount of calories in cookies, and even calculate a restaurant bill. For this assignment, you will take input from the user to provide interactive messages and to solve the following word problem: E-Commerce websites, such as amazon and ebay, usually use programming to deal with displaying a shopping cart to the user. In this program, we will explore the some of the most important parts of a shopping cart, or an order receipt. Write a program that accepts as requests the user to provide 1. 2. 3. 4. 5. 6. Their name The name of the store they are purchasing from The name of 3 items they are purchasing from the store The quantity of each of the 3 items The price of each of the 3 items The tax rate First, the user should input their name and the name of the store. The program should displaya message welcoming the user "Welcome to the The program should then display a prompt and request information about the name of the items, the quantity, and the price of the 3 items the person is purchasing Finally, calculate and display the following information nameOfStore store, nameOfUser 3 Subtotal: Can be calculated by taking the sum of the total for each item. Each item's total is the cost multiplied by the quantity Taxes: Can be calculated by multiplying the subtotal by the tax rate Grand Total: Calculated by adding the subtotal and the taxes for the purchase Your Task: For now, we are not going to do any programming! It is important that you understand that you should plan your code. Planning your code saves you time on the long run and allows you to use the solution in any programming language
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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