Sloving a coding problem in python
t7i”lif”{ Questio,
: ··- .:-•:-~.
Ex: If the input is:
Th e output is:
Cl
,_
‘
CS 109 Pros for En1ln•rs w/Matlab (44904) 2022 Spring
zyBooks”Built-in ID
E
‘
zyBooks My library > CS 109: Python Programming for Engineers …
>
21.6: LAB*: Program: Grade calculator · 1 ”
• • I I . – -..
El ‘Home I Chegg.com D Zybooks proJecta … .. AskAQue
~ zyBooks catalog O Help/FAQ 8 Jose E
1zi;es erm exam , an ma exam · · . utpu ca egory averag~s as a · e using p 1n . mewo r ~ {homework: 2. 1 f }’6·11 ) • Submit for grading to confirm two tests pass.
l Ex: 1-f the input is:
I
1
I
I
I
I
•1 The output is: ·
1
Homework: 75. 0%
1 Quizzes: 75. 0 %
Midterm: 80. 0%
Final Exam: 92. 5%
Ex: If the input is:
TL
600 300 1 20 1 80
, … , …………. 1;1: ..
.. .
i 111 ,1,l
I,
1l1
MacBookAir
E
f~
L:
II Laondlil Meeting •••• , a www.~erostudent. ..
CS 109 ,… far IEnafneers w/Matt:..b (44904) 2022 Sprln1
,Cl Hom~ J Chegg.com
·•
D zybootcs projects… , 0 Aslc A 0U
t
– zyBooks-Buift•in IDE
= zyBooks My library > CS 109:. Python Programming for Engineers … >
21.6: LAB’llr: Program: Grade calculato
r
I
(II’ zyBooks catalog O Help/FAQ 8 Jose I
* ¥ *’ ::;;g ,jlj§@l i@ ./p p.; ;;;;;;;; ; I\ MtWihhi ii I I iiil?Z ii 1 ; ii\ ¥4 k!
The output is:
t
l Step 2 (2 pts). Set any average to 100% if average is above 100%. Submit for grading to confirm three tests pass.
J Ex: If the input is:
I
300.0 200.0
1 The output is:
‘ !fi~;;~~rk.: 87. 5 %
I Quizzes: 75.0 %
Midterm: 100.0 %
Final Exam: 10 0.0 .%
205.0
” ……….. , .. ,, ….. , . , … ,,, … ·-·
‘
,., … “·’•1″1″‘”‘
,,
, 11 1u11 1r 11
‘
11
I ,:111 1 ‘ljl/l I
It’ iillll1 ,11111
.,11. “” .111111 I
tr $ 4
Step 3 (2 pts) . Calculate the course average based on student status using the table below. Output the course average. Subm it for grading
r . .. .
MacBookAir
fl Launch Meeting -… . II www.aerostudant •. . qil1 Ask A Question
CS 109 Proa for Ensln..n w/Matl.ab (44904) 2022 Sprln1 zyBooks Built–in IDE
zyBooks My library > CS 109: Python Programming for Engineers: … > ”
21.6: LAB-A-: Program: Grade calculator
•Iii zyB’boks catal·og 0 Help/FAQ 8 Jose Eraz
~!111!]!!!!!~—–~—————.—“””””””‘!ffl!l-lllffl!!l!ffl!ll!””l’i’~ •iiiiifil!MMi~li fflll4IPZfM•t~¥”””4Z•1″”‘1w_…•4~e..:,”‘1!1 ¥4″”””‘(hlll!l14illfflllllli~i t1miii41~.h!!ZIJl””I “!l!l”‘iil’lft!”l’_.,!Z “”‘· !O’l!!&”l’!!’, -,_,,,_¾~I ___ ,””””””_!!O!Q~,
.. .
‘ I
Step 3 (2 pts). Calculate the ~urse average based on student status using the table below. Output the course average. Submit for grading
to confirm five tests pass. –
Ex: If the input is:
G
800.0 400.0
The output is:
PtfzF7:c::tti C ¥
100.0 100.0
I I I,
I I
•I’
‘ ” ,, I””••••’• ,,
II l •
‘ i.MJliltifl t t.Utetttd
r
~ l~~-· __ • __ w_c._0_1a_cK-oo_a_ra_.w_ m_1u_1i_ra_1c_o_u~_e_s_~_~–11_41_~_~•-~-~o_~_•_m_e __ u_· J
.a Launch,Meetfng ·- •• ,, D www.aerostu~e~h.:
., 1 Ji:,,. 1
, I
D z.yboolcs projects … 0 Ask A Question
CS 109 Pros for £nsln•rs w/Matl.ab (44904) 2022 Sprln1 zyBooks lluilt•in IDE
zyBooks My library > CS 109: Python Programming for Engineers … >
21.6: ‘LAB*: Program: Grade calculator
1§1 zyBooks catalog O Help/FAQ 8 Jose Erazc
The output is:
I ·- -N•·-·~••1 ….. f’ “t–“·~” “” .. –,…'”1.T’–u• .. 1••····• “”1•••t”””‘_’!’ …… ,., .. ,, …. -,.,..,rr-·r.”•t .. “1f’.” ….. ;,• .. ·ttr”·
Homew~rk •· . l’O·O O % · ·. , 111 :’ ‘i
‘ V , • • ,. J
I
• 1 Quizzes: 100. 0% ‘
Midterm: 66.7%
, I
1 Final Exam: 50. 0% ,
11
i , • – • • lliii!1
1
• ,
; ~—~~~~-~~?-~. :_ 6,5 . 8 % . .. . .. .. .. . . . .. .: …… “” : ………….. ,: … : …. ;, :.:t .t,.’.’. …. ::· …. , .. , …. ‘ .. .
I
I
./
, Step 4 (4 pts). Identify the course letter grade based on the course average using the table below. Output the course letter grade. Submit for
grading to confirm all tests pass.
· I I . 1·’11″”.’1″‘
•
1
· _ 1!1i• 11 , I A~erage Grade
~.: …… ,1.,.,,; .. 1 ……. 1.1 .. l. … ,. .. …
I’. I I j,,,
at l~~st/)0.0 A
!,:
11
.1,1,1
1
,!
1
,1ott•!•1r•”‘”!,!,,.,,., .. ,., .. ,..,.,, ··· ··
1 1,at le~st leo.p and less than 90.0 B
,•1·•··,•1·1.!!L’.:., …… , ……..
at \east 70.0 and less than 80.0 C
at least 60.0 and less than 70.0 D
l
I Q uic.blackboard.com/ultra/courses/_211479_1/cl/outline e
‘
‘Q LaUM~ M~~ng ~ •
1 I , I 1• •
1 ,1 l •
i a www.~erostudenl., 1
cs·119.·Png tor ln&\n•n wlMatlab (44904) 2022 Sprlna zyBooks Built-in IDE ,
= “”.aao\<.s My \\brary > CS 109: Python Programming for Engineers … >
– •yw 21.6: lAB*: Program: Grade ca\culator .
l’he output is:
r— ….. -· .. _ .. – ” – .
\
Romework: 15. 0%
Quizzes: 15.0%
\ Midterm: 80. 0\
\
Final Exam: 15 . 0%
\ DL average: 11. 0% \
\ Course grade: C
· · 1il1i i\\\11
‘ 11 11
21 .6.1 : LAB*: Program: Grade calcula,p~11
I l \1
‘
1
1, 11
I I
main.py
D zybooks projects … 0t AskA O
tlil’ zyBooks catalog 8 Help/FAQ 8 Jose
– — —– —
1 /1 0 0
L .1 “‘d dr.fault ni·
·1
1
t
i
‘ i J
! •
i
. i
l
1
I
‘ J
~-
DL’ 1a~era~e:· 77 .0%
L co’urse grade: c
— ——-
375418. l072070.qx3utY7
‘
. l.A8
ACTWrTV I 21 .6.1: LAB*; Program:
1 HOMEWORKJCAX = 800 . 0 ;
2 QUIZZES_MAX m 400 .0;
-3-, MIDTERM_MAX = 150 . 0 ;
4 FINAL__MU :!!f 200 . 0.;
5
6
7
# Type your code here.
‘ 1•
l .
, ‘
—-‘——–~~-•–•–M · • ••– •, I •,~~~~•-=——-
, , .i , 1•,/1\ , !
.J
I ,
Grade calculato~ ·
I 11• I I I
‘ ‘
‘
I
‘(d
>
” ‘,
I ‘ ! ·1
I ‘I
.:.- I·” 1-‘/ ‘J’l,1,’j I
lnfi.1- P 1:r1,\
,’,I.’//,,, I ‘
mafn.py
I
,·,·
b1•t1w¼U~,m11~,ill-lhku 4iru@k