• Home
  • Blog
  • CSIT 210 Community College Create a Java Code Computer Programming Task

CSIT 210 Community College Create a Java Code Computer Programming Task

0 comments

Magic Dates (MagicDates.java) [10 pts.]

The date June 10, 1960, is special because when you write it in the following format, the month times the day equals the year. 6/10/60

Write a program (MagicDates.java) that asks the user for his/her birthday: month, day, and a two-digit year. All are numeric values. The program should then determine whether the month times the day is equal to the year. If so, display a message saying “You were born in a magic date. Hogwarts welcomes you to the School of Witchcraft and Wizardry”; otherwise, display a message saying “You were born in a no-magic date; the muggle world is your home”.

Math Tutor (MathTutor.java) [10 pts.]
Write a program that lets the user enter 2 numeric values, and an arithmetic operator: +, -, * and /. The user must enter the arithmetic operator and not a number thar represents each operation. Write a switch statement that displays the result of the calculation using the operator and two numbers entered by the user. Remember that the division must have decimals and you need to validate the operator and display a proper message when the user enters a non-valid operator.

Internet Service Provider (InternetService.java) [10 points]
An Internet service provider has three different subscriptions packages for its customers:

Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $ 2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided.

Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used (only for packages A and B). It should display the total charges using the currency format provided by the FormatNumber class.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}