P1

Write a program that prompts the user to input a decimal number and ouputs the number rounded to the nearest integer. Remember the rules around proper development style and form, including adding comments. A software developer should always add comments to their code so other developers (or in this case the instructor) understand what the intent of the program is.

P2

Jim develops 5 Java applications a year. Joe develops 10 Java applications a year. Jim gets paid $5000.00 per application, but Joe gets paid $10000.00 per application.

  • What type of equation would you create to determine how much either Joe or Jim makes separately? What equation is needed in Java (ignoring the $ symbol)? What data type is needed need for this equation?
  • What type of equation would you create to determine the combined total of Joe and Jim's worth? What is the equation in Java? What would be an incorrect way of writing this equation (think parentheses)?

W2/P1

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both the mass and the weight rounded to two decimal places. (Note that for standard Earth gravity, 1 kilogram = 2.2 pounds.) Format your output with two decimal places. Your answer should use dialog boxes for the input/output statements.

W3/P1

Write a program that prompts the user to input three numbers. This program should then output the numbers in nondescending order.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.