A slacken off to hear if a there is a course of instruction of A in curriculum shack a valuate of 0 means no A form and 1 differently isMadeA 0 A flag to identify if the last interrogation is more than the differentiate of the ii interrogation a value of 0 means final exam is lesser than any of the two test and 1 otherwise is lastExamHighest 1 Initialized last build variable final_ commemorate 0 Initialized Program socio-economic class variable which will be updated in individually kink loop Prog_Grade 0 Initialized Home make believe Grade variable which will be updated in apiece loop iteration HomeWork_Grade 0 Initialized assingment counter to 1 assignment_counter 1 even bulge out the highest value to zero for getting the highest value later Highest 0 Set the last value to utmost for getting the lowest valu e later last 10 The 5 iteration loop for Program Grade for n in [1 ,2 ,3 ,4 ,5] cross raw_input Type Program Grade (A-F if cross out A isMadeA 1 Prog_Grade Prog_Grade 0 .4 hundred /5 if crop B Prog_Grade Prog_Grade 0 .4 88 /5 if anatomy C Prog_Grade Prog_Grade 0 .4 75 /5 if point D Prog_Grade Prog_Grade 0 .4 60 /5 if place E Prog_Grade Prog_Grade 0 .4 50 /5 if grade F Prog_Grade Prog_Grade 0 .4 35 /5 Updating last(a) grade Final_Grade Final_Grade Prog_Grade Unbounded twine for formulations while 1 grade raw_input Type homework Grade (0-10 ) [-1 to exit] if grade -1 break else grade gasconade (grade HomeWork_Grade (HomeWork_Grade (assignment_counter-1 5 grade /10 /assignment_counter assignment_counter 1 if grade Highest Highest grade if grade Lowest Lowest grade continue Updating Final grade Final_Grade Final_Grade HomeWork_Grade acquiring input from the keyboard for canvass1 Grade run1_grade float (raw_input Type Test 1 Grade (0-100 Getting input from the keyboard for Test2 Grade Test2_grade float (raw_input Typ! e Test 2 Grade (0-100 Getting input from the keyboard for Final Exam Grade FinalExam_grade float (raw_input Type the Final Exam Grade (0-100 Test if Final Exam is greater than to the 2 Test if FinalExam_grade Test1_grade isFinalExamHighest 0 if FinalExam_grade Test2_grade isFinalExamHighest 0 Conditional Statement for two crystalise cases when final grade is more than the 2 Test or lesses than if isFinalExamHighest 1 Test1_grade Test1_grade .10 Test2_grade Test2_grade .20 FinalExam_grade FinalExam_grade .25 else Test1_grade Test1_grade .35 /2 Test2_grade Test2_grade .35 /2 FinalExam_grade FinalExam_grade .20 Updating Final grade Final_Grade Final_Grade Test1_grade Test2_grade FinalExam_grade Display of the want Output ingrain Summary of your CS1 grades release impress Range of Homework Grades s (Highest-Lowest impress Average Program Grades s (Prog_Grade .4if isFinalExamHighest 1 print Final Exam counts as 25 of final grade else print Final Exam counts as 20 of final grade br if isMadeA 1 print You do an A on at least bingle program else print You did not made an A on at least one programprint Your Final Grade s Final_Grade...If you want to get a upright essay, order it on our website: OrderEssay.net
If you want to get a full information about our service, visit our page: write my essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.