Display the total price of the hotel stay

Assignment Help Computer Engineering
Reference no: EM132188675

You work for a local hotel chain and have been tasked with coding a program that calculates the cost of a user's hotel stay depending on room choices.

A hotel room can be of two types, Economy and Deluxe, and each room can contain 1 or 2 beds.   Use the chart below to determine the room price:

Room Type

# of Beds

Price per Night

Economy

1

$70

Economy

2

$90

Deluxe

1

$110

Deluxe

2

$140

*Price per Night values should be stored within constants.

The program should:

Prompt the user with a menu that asks which room type they would like to stay in. Validate menu choices so no invalid choices are allowed

Ask the user how many beds they require and how many nights they would like to stay. Do not accept a number of nights less than 1. You may omit validating the number of beds.

Determine the total cost of the hotel stay using price per night constants.

Display the total price of the hotel stay.

Reference no: EM132188675

Questions Cloud

What software works with this : I am working on my midterm and we had to exchange images with texts hidden in them. I received a bmp.png file.
What baseline data do you need for this : There is a 20% chance that he will find a computer which has an active worm; in this case, nothing happens (whether the worm is active for one or two days).
Write the values of the words stored at the following memory : Write the values of the words stored at the following memory locations. Provide your answer in hexadecimal notation.
Explain the purpose of a tableadapter object : When working with VB application and a database you often will need to use a TableAdapter.
Display the total price of the hotel stay : You work for a local hotel chain and have been tasked with coding a program that calculates the cost of a user's hotel stay depending on room choices.
What factors would influence you : You work as one of five senior networking engineers in a large insurance company with 500 small offices located across the United States.
Create a class with instance methods withdraw : Each Class should have a unique account number and a current balance (use a static variable to store lastAccountNumber).
Study the variation in chicagos temperature : If the temperature never increased, then report that. Give a O(n log n) algorithm for this task.
Simulate the biscuit pan with a computer program : Imagine that you're visiting a local all-you-can-eat breakfast bar; among the many items on the bar is a pan of biscuits.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why to prepare a powerpoint presentaion

Are there any Websites that details the attributes of an effective PowerPoint presentation. Also what in your opinion would be one or two "best practices".

  Why is the data collection and analysis appropriate

What methodology is used in the research and is this adequately explained? Why is the data collection and analysis appropriate?

  Elements of physical security

Develop a physical security plan for manufacturing company. Your paper must include an explanation of the physical security and the different elements of the physical security.

  How excel software can improve overall institute performance

How Excel software can improve overall institute performance? How would you justify, your current Excel file is better approach of information exchange?

  Discuss the guiding principles for effective innovation

Privacy and data quality must be managed properly managed in order to ensure a successful business model. Discuss the recommendations that IT managers group.

  How to modify the temperature conversion program

Add two buttons to temperature conversion program. Clicking one button converts Fahrenheit to Celsius, clicking the other converts Celsius to Fahrenheit. It will help the user to have a "clear" button that clears  text in both text fields.

  Read and use files grocery hardware store chores

Add as many items as necessary Delete as many items as necessary Move between lists as often as my little heart desires.

  What information is in a connection string

What is the design philosophy of ADO.NET? What information is in a connection string? What does the Data Bind method of the Grid View control class do?

  Conduct a web search for the key words parallel computing

Use examples from the readings, or from your own research, to support your views, as appropriate. Encouraged to conduct research and use other sources.

  Provide a structured variable elimination algorithm

Provide a structured variable elimination algorithm that solves the MAP task for networks with rule-based CPDs.

  How does a risc processor differ from a cisc processor

How does a RISC processor differ from a CISC processor? Is one processor type better than the other? Why or why not?

  Define a two-dimensional array data type called chart

Define a two-dimensional array data type called Chart with 30 rows and 10 columns. The component type of the array is type Float.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd