Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercises in Elementary Programming - 10 points Instructions: 1. After downloading the lab assignment from Blackboard, please write the appropriate Java programs in Blue) IDE.
Exercises in Elementary Programming - 10 points Instructions: 1. After downloading the lab assignment from Blackboard, please write the appropriate Java programs in Blue) IDE. 2. If stuck anywhere, the instructor and the lab assistant are always there to help. 3. Lab assignments need to be uploaded onto Blackboard by the due date listed on Blackboard. 4. You would need to submit a.docx file. Copy-paste the written code and a sample run of the program. 5. Online resources can 'definitely be consulted. However, please refrain from using content from the internet as-is. The mark of a good programmer is to write clean and genuine code - anytime, anywhere, and always. (2 points) Easy: 1. Take in 3 double input from console and display their average. Key Point: Scanner input = new Scanner(System.in); input.nextDouble(); 2. Take in 1 double input as Celsius. Apply the conversion formula to compute Farenheit. Display result on the console in Farenheit. Verbally report to the instructor of what is considered a 'safe' living temperature in Celsius scale. (2 points) Key Point: C*(9/5) + 32 = F Medium: (3 points) 3. Write Java code to compute x in the following expression: -b + b2 - 4ac x = 2a Assume a, b, and c are already computed and are inputted as double onto the console. Key Point: Math.pow() Numeric computations Long: 4. Write a program that changes a given amount of money into smaller monetary units. The program lets the user enter an amount as a double value representing a total in dollars and cents, and outputs a report listing the monetary equivalent in the maximum number of dollars, quarters, dimes, nickels, and pennies. (3 points)
Step 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