Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fitness First Fitness First Gyms utilize a member ID and the number of minutes to make massage reservations. Write a program that receives a string

image text in transcribed

Fitness First Fitness First Gyms utilize a member ID and the number of minutes to make massage reservations. Write a program that receives a string of 6 characters as a member ID and a number of minutes. Format the member ID as demonstrated below. Input: R4E877 Display: R4-E87-7 If the user enters characters in lowercase, it should still display the characters in uppercase. Your program should capitalize any letters it comes across. Input: x83rws Display: X8-3RW-S Use JOptionPane windows to get the string for the member id and the number of minutes for the massage. Return a confirmation JOptionPane window with newly formatted Member ID and translation of massage time into hours and minutes. Use good variable names and place comments throughout the source code explaining what you are doing. You do not need a comment for every line but provide some details of what you are attempting to do. Your program will have two prompts for data (member id and number of minutes) and return one window with the newly formatted memberld and the number of minutes translated into hours and minutes. For example: Message Thank you, Member 9Y-H6G-F for your massage reservation for 1 hour and 30 minutes. OK

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_2

Step: 3

blur-text-image_3

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

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

Describe six ways to generate more options.

Answered: 1 week ago