Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. What is the output of this program? 1 n 15 2 score 105 3 sum 150 4 sum + score 5n5 6 sum
1. What is the output of this program? 1 n 15 2 score 105 3 sum 150 4 sum + score 5n5 6 sum -2 7 nn/10 8 n-15 9 total n score +sum; 10 print() 11 print (n,\" ', score, ' ', total) 2. What is the output of the following program? 1 LIMIT - 5 2 sum 0 3 print ('', '\t', 'sum') 4 print (- " 5 for i in range (LIMIT +1): 6 7 sum +float (j)/2** (i+1) print ('\t', format (sum, .31')) 8 print () 9 print('sum format (sum, .3')) 3. What is the output of the following program? 1 cost - 8000 2 INCREASE PER YEAR - .06 3 print (Year\t Semester Cost)') 4 print (- 5 6 for year in range (5): 6749 -") cost + cost INCREASE_PER YEAR print ((year + 1), '\t', 'S', \ format (cost, '.2f')) 1/4. What is the output of this program? 1 char 2 space t 3 for kin range (5): 4 5 6 7 if k -- 4: print ((k+2) char) else: print (char k space char) Your answer:
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