Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pseudo-code with a Loop To demonstrate the ability to create accurate pseudo-code that illustrates the logic of a specific task. Read Chapter 5! This lab

image text in transcribedimage text in transcribed

Pseudo-code with a Loop To demonstrate the ability to create accurate pseudo-code that illustrates the logic of a specific task. Read Chapter 5! This lab is based upon Lab 2 and adds a loop to the logic. PURPOSE: PROBLEM: GreenHome is a business that sells environmentally friendly --household cleaning chemicals. You have been contracted to design and create a program to process and maintain orders placed by customers. Design and code logic that will prompt for and input the customer's name, State, and the price of a product. If an item costs more than $50, calculate a 15% environmental discount and a discounted price. If an Item is less than $50, the discount will be 0 and the discounted price will be the same as original price. Then calculate sales tax and total cost for the product. The discounted price is the original price minus the environmental discount. Sales tax for Indiana residents is 7% of the discounted price and total cost is the sum of discounted price and the sale tax amount. Output the customer's name, State, product price, discount (even if it is 0), discounted price, sales tax (this might be 0 also), and total cost 1 2 Set up your logic in a loop that will continue processing until 'Quit' is entered for the customer name. Thus, the customer name (cName) is the control variable. As discussed in Chapter 5, use priming read logic

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions