Write a JAVA program using good programming principles that will read an input file and write data to different output f

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a JAVA program using good programming principles that will read an input file and write data to different output f

Post by answerhappygod »

Write a JAVA program using goodprogramming principles that will read an input file and write datato different output files.
Input File
Each line in the input file is delimited in the followingmanner:
Storm name, Category: MM/DD/YYYY
where:
Notes
Calculations
To begin, a dialog box will be displayed with options for theuser to select.
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 1
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 1 (32.66 KiB) Viewed 48 times
Output
The output for this project will be two-fold. For some options,the output will be displayed in a Message dialog box and an outputfile.
The Output Message Dialog boxes:
NOTE: This is for formatting purposes only; the datadisplayed is not necessarily accurate.
==> If the user selects menu options 1 - 4 prompt theuser for the order in which the data should be displayed. It shouldbe formatted similar to this (title, heading,options).
This is an example when the user selects option 2 fromthe main menu:
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 2
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 2 (18.36 KiB) Viewed 48 times
Hint: Try a JTextArea to use tabs('\t'):This is a snippet of output. All storms should be listed.
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 3
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 3 (23.79 KiB) Viewed 48 times
==> If menu option 5 is selected fromthe main menu:
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 4
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 4 (17.95 KiB) Viewed 48 times
==> If menu option 6 is selectedfrom the main menu:
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 5
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 5 (16.21 KiB) Viewed 48 times
==> If menu option 7 is selected fromthe main menu:
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 6
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 6 (27.14 KiB) Viewed 48 times
==> If menu option 8 is selected fromthe main menu:
This is a snippet of output. All years should be listed.
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 7
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 7 (16.7 KiB) Viewed 48 times
Output Files
The output file should be named accordingly (seedetails above) and should be written to:C:\Project
The layout of each file should be similar to the example dialogboxes shown above:
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 8
Write A Java Program Using Good Programming Principles That Will Read An Input File And Write Data To Different Output F 8 (5.06 KiB) Viewed 48 times
Display a dialog box message indicating the data has beenwritten to the output file.
It is possible to have multiple output files written to theC:\Project directory depending on the user'sselections from the main menu.Be sure they are named correctly as described above.
Input Florida Major Hurricanes 1950 - 2020 Press 1 to Sort by Storm Name Press 2 to Sort by Storm Category Press 3 to Sort by Storm Year Press 4 to Sort by Storm Month Press 5 to Display Average Storm Category Press 6 to Display the Most Active Year Press 7 to Display Total by Category Press 8 to Display Total by Year Press 9 to Exit OK X Cancel
Input ? Major Florida Hurricanes 1950 - 2020 Sort by Hurricane Category Press 1 for Ascending Order Press 2 for Descending Order OK X Cancel
Message i Major Florida Hurricanes 1950 - 2020 Sort by Category in Descending Order Category 5 5 4 Name Andrew Michael Charley Donna Irma King 4 4 4 X OK Date 08-24-1992 10-10-2018 08-13-2004 09-10-1960 09-10-2017 10-18-1950
Message Major Florida Hurricanes 1950 - 2020 Average Storm Category by Saffir-Simpson Scale Average storm category is 2.7 X OK
Message i Major Florida Hurricanes 1950 - 2020 Most Active Year X Most active storm year is tied with 2004 and 2005 each having 4 named storms OK
Message Ⓡ Major Florida Hurricanes 1950 - 2020 X Aggregate Totals by Category (Saffir-Simpson scale) Total number of major hurricanes listed: 40 Total category 5 hurricanes: 3 Total category 4 hurricanes: 7 Total category 3 hurricanes: 10 Total category 2 hurricanes: 15 Total category 1 hurricanes: 5 OK
Message i Major Florida Hurricanes 1950 - 2020 Aggregate Totals by Year Year Number of Storms 1950 2 2 1 1953 1956 1960 1964 1 3 X OK
Title Description of data Formatted data layout
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply