Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 4: [9 marks] Below is a program that is supposed to ask the user to enter the age of the customer, then display the

image text in transcribed
Question 4: [9 marks] Below is a program that is supposed to ask the user to enter the age of the customer, then display the proper message as follows: If the age is greater than or equal to 60 , the message is: " Senior Discount". - If the age is greater than or equal to 18 and less than 60 , the message is: " No Discount". - If the age is less than 18 , the message is: "Junior Discount". \begin{tabular}{|c|} age input("Enter the age of the customer: ') \\ if age>60: \\ print('Senion Discount') \\ else if ages=18: \\ print('No Discount') \\ else: \\ print( Junior Discount') \end{tabular} However, this program was tested and was found to be incorrect. You are asked to write the correct program

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_2

Step: 3

blur-text-image_3

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

6. Explain how to train managers to coach employees.

Answered: 1 week ago

Question

5. Tell how job experiences can be used for skill development.

Answered: 1 week ago

Question

4. Explain the characteristics of successful mentoring programs.

Answered: 1 week ago