Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. A store gives a 15% discount to customers who are at least 55 years old, and a 10% discount to all other customers. Using

image text in transcribed

2. A store gives a 15% discount to customers who are at least 55 years old, and a 10% discount to all other customers. Using only the instructions shown in Figure 1-9, write an algorithm that displays the amount of money a customer owes. Be sure to indent the instructions appropriately. (The answers to TRY THIS Exercises are located at the end of the chapter.) TRYTHIS calculate the amount due by swotracting the discount from the sales amount calculate the discount by multiplying the sales amoant by 10% calculate the discount by multiplying the sales amount by 15% display the amount due else end if enter the customer's age and the sales amount if (the customer's age is less than 55) Figure 1-9

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

Describe the benefits of employee orientation.

Answered: 1 week ago