Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 9E

Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a program named MoveEstimator that prompts a user for and accepts estimates for the number of hours for a job and the number of miles involved in the move and displays the total moving fee.

Blurred answer
Students have asked these similar questions
Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a program named MoveEstimator that prompts a user for and accepts estimates for the number of hours for a job and the number of miles involved in the move and displays the total moving fee. For example, if 25 hours and 55 miles are input the output would be displayed as: For a move taking 25 hours and going 55 miles the estimate is $4,060.00 In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US")));
Suppose the Great Frederick Fair wants to update its ticketing software. They need you to write a program tohandle the price calculations, using the rules*:• The basic price of a ticket is $40.• Senior citizens (age >= 65) get a 50% discount.• Children under 6 are free (100% discount).• For residents of Frederick County, the basic price is $35; the same discounts still apply.So the individual ticket prices range from $0 to $40.Your program should request age and county name from the user. The age will be entered as an integer and thecounty name as a string.Before calculating the price, confirm that the user's age is valid – not negative and not more than 110. If it is not,give a message and do not do the price calculation. Also, the county name should not be case sensitive – forexample, Frederick, frederick, and FREDERICK should all be acceptable.Your program should then calculate and print out the ticket price, using the appropriate discounts.Test your program with a variety of…
Suppose the Great Frederick Fair wants to update its ticketing software. They need you to write a program tohandle the price calculations, using the rules*:• The basic price of a ticket is $40.• Senior citizens (age >= 65) get a 50% discount.• Children under 6 are free (100% discount).• For residents of Frederick County, the basic price is $35; the same discounts still apply.So the individual ticket prices range from $0 to $40.Your program should request age and county name from the user. The age will be entered as an integer and thecounty name as a string.Before calculating the price, confirm that the user's age is valid – not negative and not more than 110. If it is not,give a message and do not do the price calculation. Also, the county name should not be case sensitive – forexample, Frederick, frederick, and FREDERICK should all be acceptable.Your program should then calculate and print out the ticket price, using the appropriate discounts.Test your program with a variety of…

Chapter 2 Solutions

Microsoft Visual C#

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Python Tutorial #10; Math Functions in Python; Author: Art of Engineer;https://www.youtube.com/watch?v=OviXsGf4qmY;License: Standard YouTube License, CC-BY