Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Please Thank you! Also remember that Prompt user means print out somethat I will count off if you ask for an input on ANY
Java Please
Thank you!
Also remember that "Prompt user" means print out somethat I will count off if you ask for an input on ANY assignment and that tells the user you are asking for input and what type of input you are asking for. This week you will be writing a program that takes 5 lines of 3 different types of data to a file then read them back in. Watch the Lecture video fow to accomplish all of the components, but in summary: - One line of data will consist of an int, a string, and a double with numbers on both sides of the decimal point (Example: 1.5). - Create 5 lines of this data, the data can be made randomly or however you want to create it. No duplicate lines. - write to a file with comas seperating the values - read these values back in from the file - split the lines back into their different types - Divide the int by the double and store in a double. - Print out a formated line with double with 2 places right of the decimal. - Line will show the values from the file and the calculated value from the division. - lines must use the print format functions for all of the value typesStep 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