Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please add comments, so I can compare it with my program and hopefully learn something new. Thank you. Write a program for the Sweet Dreams
Please add comments, so I can compare it with my program and hopefully learn something new.
Thank you.
Write a program for the "Sweet Dreams" Travel Agency that calculates the cost to a trip to Argentina. The program asks the customer last name, converts it to all upper case, and adds "Vacation Trip to Argentina". It also asks the number of persons that are participating in this trip, so the air fare can be calculated. Each plane ticket costs $ 1,250.25. Then, the program asks the customer for the number of nights that they are going to stay at the "Best Hotel" The price for each night is $ 267.85. Finally, the program asks the customer how much money they want to take with them for their expenses, and converts it to the local currency (only the money for expenses). 1 dollar is equivalent to 29.95 pesos Argentinos. Also, a 3% fee is charged for the exchange and retained by the agency. The quote also includes a 9 -digit random number to serve as a confirmation code. You must follow the formatting of the sample output below and use the FormatNumber class for the currency The program will not be accepted with compilation errors or without the comment section. Here is the sample output: Customer Last Name: Number of persons: Number of nights: Money for expenses: Paniagua 1500 Sweet Dreams PANIAGUA Vacation trip to Argentina Quantity Price Total Air Fare Lodging Money S 1,250.25 5,001.00 S 267.85 1,339.25 S 1,500.00 4 Total: S 7,840.25 Pesos Argentinos for the trip: $43,577.25
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started