Download presentation
Presentation is loading. Please wait.
1
AP CS 9-19-2016 Be able to fix a program written in Java
Be able to write a program that uses if else
2
Fix9-19-2016.java on the class website
Fix the following Fix java on the class website You might need to to this to BlueJ. BlueJ is in the Program Files(x86) filder.
3
Programs: Complete the following.
Modify the quadratic equation program to also calculate imaginary roots. If b2 – 4ac >= 0 then display the real roots Else show the imaginary roots Input three real numbers, and print the numbers in sorted order. Write a program that inputs a persons name, rate of pay, and the number of hours worked during the week. The program will calculate the pay for the person. For every hour of overtime work (over 40 hours in the week) the person gets paid 150 percent of the regular wage. Example: Input: Sue, $10.00 per hour rate, 45 hours Calculation: pay = 10* *10*5 = $475 Input a value representing a person’s percent score (example inputting 80 represents an 80% score), write a program that will output the corresponding letter grade. ‘A’ for , ‘B’ for 80 to 89, etc.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.