ITSS 3312 Lecture Notes - Lecture 5: Method Stub

18 views3 pages

Document Summary

System. out. println (" enter exam 1 score:"); double exam1 = input. nextdouble(); double assign3 = input. nextdouble(); System. out. println (" enter assignment 1 score:"); double assign1 = input. nextdouble(); System. out. println (" enter assignment 2 score:"); double assign2 = input. nextdouble(); import java. util. scanner; public class weightedscore { assignments. if ((assign1 <= assign2 ) && (assign1 <= assign3)) { assign3)); v3. System. out. println (" enter exam 2 score:"); double minexam = math. min(exam1, exam2); double weightedtotal = (exam1 + exam2 - minexam)* 0. 35; // weightedtotal = math. max(exam1, exam2) * 0. 7; v2. // or weightedtotal = (exam <= exam2 ? exam2 : exam1) * 0. 7; v3. // remove the worst assignment, and give 15% to other 2 other. System. out. println("grade = " + grade); grade = "d-"; grade = "d+"; import java. util. scanner; public class change { if (cents >= 5) { public static void main(string[] args) { System. out. println("enter amount" ); double amount = input. nextdouble(); int cents = (int) (amount * 100); if (cents >= 25) {

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents