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

  Create a file-system-based timeline

Create a file-system-based timeline and turn in the first 10 and last 10 entries as well as the hash value of the file

  How the technology will allow the data request

You are the network engineer contracted to establish a WAN connectivity between two office locations for a local corporation. The main corporate headquarters.

  Write a function to input a sound then create a canvas sound

Write a function to input a sound, then create a canvas sound of the same length. Copy samples from the input into the canvas every third position.

  Object-oriented development environment

Develop a problem-based strategy for creating and applying programmed solutions using an object-oriented paradigm and use an object-oriented development environment in the development, testing and debugging of an object-oriented application.

  What is the multiplexers

Show how two 2-to-1 multiplexers can be connected to form a 3-to-1 multiplexer without any additional gates.

  Questiontwo members of your project development team are

questiontwo members of your project development team are differing about relative significance of training and

  Select one phase of the database life cycle and describe

per the text the database life cycle includes the database initial study database design implementation and loading

  What is effect of faster clock speeds on power consumption

What is the effect of faster clock speeds on power consumption? Why is this an important issue in the design of processors and computer systems?

  What are the maximum profit

Acme wants an implementable schedule, so all quantities must be integers. What are the maximum profit and the corresponding make/buy levels?

  Define the term system security

Define the term system security as it is used in the field of information security

  Explain the typical way that project managers organize

Describe the typical way that project managers organize the programmers' work storage areas. Why is this approach useful?

  Describe the role of application service providers

Describe the role of application service providers (ASPs) in obtaining new systems. What are their advantages and disadvantages?

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