Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been asked to write a program for a travel web site to help users determine which International Cell Phone package they should purchase.

You have been asked to write a program for a travel web site to help users determine which International Cell Phone package they should purchase.

There are three packages: The Big Day Pass, The Tourist Pass, and The Adventurer Pass.

The Big Day Pass: $10 per day, unlimited minutes

The Tourist Pass: $0.20 per minute

The Adventurer Pass: $3 per day and $0.10 per minute

The program should ask the user how many days they will be traveling and how many minutes per day they expect to use their phone.

The output should include the cost for each plan and a recommendation for the least expensive plan based on their usage. Format all currency to two decimal places.

Sample Program Run

After your program runs, the console should look like the following example. The exact output will vary depending on what the user inputs.

How many days will you be traveling? 5 How many minutes per days will you use your phone? 60 The Big Day Pass would cost you $50.00 The Tourist Pass would cost you $60.00 The Adventurer Pass would cost you $45.00 You should purchase The Adventurer Pass for $45.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions