Answered step by step
Verified Expert Solution
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
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
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