Java Homework 1-Unit-Converter-main Solved

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

5/5 - (1 vote)

## Problem 1 –

Write a program called F2C that allows the user to convert from degrees Fahrenheit to degrees Celsius. The program should prompt for a temperature in Fahrenheit and output a temperature in Celsius. All calculations should be done in in ints, so be careful of truncation.

*Note: remember the Scanner class from lecture. Look it up in the Java api and pay special attention to the nextInt method.*

Edit the file *F2C.java* included in the workspace.

## Problem 2 –

Create an application in Java that asks a user for a number of hours, days, weeks, and years. It then computes the equivalent number of minutes (ignoring leap years). Edit the file *Minutes.java* included in the workspace.

## Problem 3 –

Implement a program that directs a cashier how to give change. The program has two inputs: the amount due and the amount received form the customer.

Display the dollars, quarters, dimes, nickels, and pennies that the customer should receive in return. In order to avoid roundoff errors, the program user should supply both amounts in pennies (for example 274 instead of 2.74).

Edit the file *Change.java* included in the workspace.

  • Unit-Converter-main-8bxcks.zip