1. Develop a program in Python to compute the following (x + y)³ y Result= 2. Develop a python program to find the factorial of a number using while and for loops. 2 3. Develop a python program to input 5 subject marks and calculate total marks, average and grade based on following criteria i. average less than 55 (Grade F) ii. iii. y 2*24 average equal to 55 and less than 80 (Grade B) average equal to 80 and more than 80 (Grade A) while num>3: print (num) num=num-1 4. For each of the following fragments of code, write what the output would be. a. num=10 b. divisor = 2 for i in range(0, 10, 2): print (i/divisor) 5. Explain Algorithm and Flowchart.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section: Chapter Questions
Problem 8PP: (Modify) a. Modify the program you wrote for Exercise 7 to provide the mass of a person as an...
icon
Related questions
icon
Concept explainers
Question

 

 

1. Develop a program in Python to compute the following
(x + y)²
y
Result=
2. Develop a python program to find the factorial of a number using while and
for loops.
2
3. Develop a python program to input 5 subject marks and calculate total marks,
average and grade based on following criteria
i.
average less than 55 (Grade F)
ii.
iii.
y
2*24
average equal to 55 and less than 80 (Grade B)
average equal to 80 and more than 80 (Grade A)
while num>3:
print (num)
num=num-1
4. For each of the following fragments of code, write what the output would be.
a. num=10
b. divisor = 2
for i in range(0, 10, 2):
print (i/divisor)
5. Explain Algorithm and Flowchart.
Transcribed Image Text:1. Develop a program in Python to compute the following (x + y)² y Result= 2. Develop a python program to find the factorial of a number using while and for loops. 2 3. Develop a python program to input 5 subject marks and calculate total marks, average and grade based on following criteria i. average less than 55 (Grade F) ii. iii. y 2*24 average equal to 55 and less than 80 (Grade B) average equal to 80 and more than 80 (Grade A) while num>3: print (num) num=num-1 4. For each of the following fragments of code, write what the output would be. a. num=10 b. divisor = 2 for i in range(0, 10, 2): print (i/divisor) 5. Explain Algorithm and Flowchart.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr