Fox International sells pre-paid calling card with the following features: Calls to USo 1.2 cents per minute plus a 49 cent connection fee per call Calls to Europeo 2.3 cents per minute plus a 49 cent connection fee per call Calls to Australiao 6.4 cents per minutes plus a 49 cent connection fee per callWrite a program that work out the charges for the month. The program should accept the followinginformation: Account holders name Card number Starting Balance on card For US callso Total number of minutes of all callso Total number of calls made For European callso Total number of minutes of all callso Total number of calls made For Australian callso Total number of minutes of all callso Total number of calls madeYou are NOT expected to error check your inputs for this assignment. (e.g. checking for negative values,etc.). There is NO GST charged on the calls as the GST was paid when the card was purchased.Format of output:Review the test plan to see how the user would like the output to be formatted. Use System.out.printf() toensure values are output with 2 digits of precision.Test Plan (Input and expected output)Input (show user input shown in bold underline)Fox International Calling Card CalculatorEnter account holders name: Harvey WallbangerEnter card number: 4958709-923WAStarting Balance on card:100-----------------------------------------US callsTotal # of US calls: 5Total duration of ALL US calls in minutes: 100European callsTotal # of calls to Europe: 2Total duration of ALL calls to Europe in minutes: 30Australian callsTotal # of calls to Australia: 1Total duration of ALL calls to Australia in minutes: 15-------------------------------------------------------Charge SummaryDescription Calls Min TotalUS Charges 5 100 3.65Euro Charges 2 30 1.67Aussie Charges 1 15 1.45Total 8 145 6.77Card Balance $93.23

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Fox International sells pre-paid calling card with the following features:
 Calls to US
o 1.2 cents per minute plus a 49 cent connection fee per call
 Calls to Europe
o 2.3 cents per minute plus a 49 cent connection fee per call
 Calls to Australia
o 6.4 cents per minutes plus a 49 cent connection fee per call
Write a program that work out the charges for the month. The program should accept the following
information:
 Account holders name
 Card number
 Starting Balance on card
 For US calls
o Total number of minutes of all calls
o Total number of calls made
 For European calls
o Total number of minutes of all calls
o Total number of calls made
 For Australian calls
o Total number of minutes of all calls
o Total number of calls made
You are NOT expected to error check your inputs for this assignment. (e.g. checking for negative values,
etc.). There is NO GST charged on the calls as the GST was paid when the card was purchased.
Format of output:
Review the test plan to see how the user would like the output to be formatted. Use System.out.printf() to
ensure values are output with 2 digits of precision.

Test Plan (Input and expected output)
Input (show user input shown in bold underline)
Fox International Calling Card Calculator
Enter account holders name: Harvey Wallbanger
Enter card number: 4958709-923WA
Starting Balance on card:100
-----------------------------------------
US calls
Total # of US calls: 5
Total duration of ALL US calls in minutes: 100
European calls
Total # of calls to Europe: 2
Total duration of ALL calls to Europe in minutes: 30
Australian calls
Total # of calls to Australia: 1
Total duration of ALL calls to Australia in minutes: 15
-------------------------------------------------------
Charge Summary
Description Calls Min Total
US Charges 5 100 3.65
Euro Charges 2 30 1.67
Aussie Charges 1 15 1.45
Total 8 145 6.77
Card Balance $93.23

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education