Data, Type Conversion and Methods
SuperClassWrite a program that uses JOptionPanes to perform the following steps: Given the distance and time traveled, outputs the average speed. speed = distance/time For example, if the distance of travel is 30 kilometers, the time of travel is 2 hours, then the speed is 30/2 = 15 (kilometers per hour) Write a program that uses JOptionPanes to perform the following steps: Given a distance in meters, outputs that distance in kilometers rounded to the nearest whole kilometer. For example, given 1100m the output will be 1km, and given 1900m the output will be 2km. This section contains the following elements: The project must use only JDK and an editor (textPad, notepad, notepad++, etc). Do not use Java packages to package the classes, you should of course use the APIs provided by Java SDK. Comments and explain all the functions of the program. The project design must have at least THREE (3) java classes. Do not use code generator. References with Harvard style at least 3 Academic Articles or books. Please, make sure that there is no Plagiarism.
10 years ago
Purchase the answer to view it

- data_type_conversion_and_methods.docx
- data_type_conversion_and_methods_1.1.txt
- data_type_conversion_and_methods_1.2.txt
- data_type_conversion_and_methods_1.3.txt
- data_type_conversion_and_methods_2.1.txt
- data_type_conversion_and_methods_2.2.txt
- data_type_conversion_and_methods_2.3.txt