Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2: In this question, we describe the problem and then you have to decide yourself how you are going to tackle it. Question 2a

image text in transcribed
QUESTION 2: In this question, we describe the problem and then you have to decide yourself how you are going to tackle it. Question 2a The cost of renting a romm at a hotel is R900 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: if the number of rooms booked is at least 10, the discount is 10%; if the number of rooms booked is at least 20, the discount is 20%; if the number of rooms booked is greater or equal 30, the discount is 30%; * In addition, if rooms are booked for at leas three days, there is an additional 5% discount. Write a program that promps the user ro enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked and theslaws tax (as a percent). Display the output as follows: Please enter the following: cost per room: 1000 sales tax per room: 10 the number of rooms: 35 number of days: 2 The total cost for one room is R1000 The discount per room is 30% The number of rooms booked: 35 The total cost of the rooms are R: 70000 COS1511/102/1/2018 The sales tax paid is :10% The total cost per booking is R77000 submit Submit a printout of the program and output

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

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions

Question

How can we devise a programme to manage such change?

Answered: 1 week ago