Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A typical problem analysis should include a blackbox for the proposed program, the outputs that the program should produce, the inputs required for the program

A typical problem analysis should include a blackbox for the proposed program, the outputs that the program should produce, the inputs required for the program to produce the outputs, and hence a clear description of the programs purpose. This analysis content should be eventually copied into the header section of the program in the final submission.

A hotel charges their customer's room rate for per night of stay and for the use of services such as breakfast and laundry. Valued Added Tax (VAT) of 20% is added to the total room cost and the services used.

Write a program that reads the room rate, the number of nights of stay and the total amount of services used and displays the total bill amount that a customer should pay. A sample run of the program should produce the following dialogue with the end user:

Enter the room rate: 75.5

Enter the number of nights of stay: 4

Enter the amount of services used: 135

Total amount for room and services: 437

VAT charged at 20%: 87.4

Total amount to pay: 524.4

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

What is the central issue of the situation facing the organization?

Answered: 1 week ago