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

  Find the parent process

Find the parent process (write the name down as you'll need it later) that is starting the bombs and kill it.

  Questionwrite down a program that generates a casual number

questionwrite down a program that generates a casual number between 1 and 100 and asks user to guess what the number

  What is involved in the project scope management

why is good project scope management so important on information technology projects.

  Write a function declaration and a function definition

Write a function declaration and a function definition for a function that takes three arguments, all of type int, and that returns the sum of its three argumen

  Working with cross-functional teams and offshore teams is

working with cross-functional teams and offshore teams is common in large it project deployments. similarly your

  Identify each technology as open source or proprietary

Identify each technology as open source or proprietary. Discuss two technologies that can be used to integrate data from a database into a Web application.

  What is the value of the argument to convert mileage

When liters needed is called with arguments 100 and 30, what is the value of the argument to convert mileage?

  Perform a single-take video using a smart device or webcam

State the uses of emerging technologies within key industry contexts - Explain the concepts of software development within key industries

  How can you make sure that the proper indexes have been put

As an analyst, how can you make sure that the proper indexes have been put in place so that users are not waiting for weeks to receive the answers to their questions?

  Hat mechanism would you implement in the process scheduler

hat mechanism would you implement in the Process Scheduler to automate the termination of a job that's in an infinite loop?

  Write a program that generates a sequence of numbers

Uppercase Conversion Write a program that converts a string containing up to 256 lowercase characters to uppercase.

  Explain how to implement an array list of n elements

Explain how to implement an array list of n elements so that the methods add and get take O(logn) time in the worst case (with no need for an expandable array).

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