Problem 7  Write a program that will produce the same style of diagram in problem 6, but it will get user input for the number or rows of stars (*) that you would like to see. Thus if I input 7 for the number of rows it will print 7 rows of stars following the same pattern as seen in problem 6 Problem 8  Create a set of nested for loops that will print out all the prime numbers from 2 – 100. A prime number is any number that is only divisible by 1 and itself. Problem 10  Create a program that will allow me to enter a specific percentage and it will display if that grade was and A, B, C, D, or F. Use proper rounding rules in your definition of the grade (ie 89.5 should be an A). There is no repetition in this example Problems 11  The program should perform the same process as problem 10 but it should repeat the process until the user enters the word ‘quit’ Problem 12  The program should calculate the sum of all the digits of a number entered by the user. For example if the user enters 243 it should display the sum of the digits as 9 Problem 13  Write a program that will calculate the average of a set of test scores. The program will continue to ask for test scores until a -1 is entered by the user. Once a -1 is entered it should display the average of all previously entered test scores. Problem 14 Write a program that will determine if a number is a perfect number. A perfect number is one where all of the factors of the value other than itself sum to the value again. For example 6 is a perfect number because the factors of 6 (not including itself) 1, 2, 3 all sum to 6 (1 + 2 + 3 = 6). 12 is not a perfect number because 1 + 2 + 3 + 4 + 6 != 12. The program should allow the user to enter a number and then print if the number is perfect or not. In python Please

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question

Problem 7 
Write a program that will produce the same style of diagram in problem 6, but it will get user input for
the number or rows of stars (*) that you would like to see. Thus if I input 7 for the number of rows it
will print 7 rows of stars following the same pattern as seen in problem 6

Problem 8 
Create a set of nested for loops that will print out all the prime numbers from 2 – 100. A prime
number is any number that is only divisible by 1 and itself.

Problem 10 
Create a program that will allow me to enter a specific percentage and it will display if that grade was
and A, B, C, D, or F. Use proper rounding rules in your definition of the grade (ie 89.5 should be an
A). There is no repetition in this example

Problems 11 
The program should perform the same process as problem 10 but it should repeat the process until
the user enters the word ‘quit’

Problem 12 
The program should calculate the sum of all the digits of a number entered by the user. For example
if the user enters 243 it should display the sum of the digits as 9

Problem 13 
Write a program that will calculate the average of a set of test scores. The program will continue to
ask for test scores until a -1 is entered by the user. Once a -1 is entered it should display the average
of all previously entered test scores.

Problem 14

Write a program that will determine if a number is a perfect number. A perfect number is one where
all of the factors of the value other than itself sum to the value again. For example 6 is a perfect
number because the factors of 6 (not including itself) 1, 2, 3 all sum to 6 (1 + 2 + 3 = 6). 12 is not a
perfect number because 1 + 2 + 3 + 4 + 6 != 12. The program should allow the user to enter a
number and then print if the number is perfect or not.

In python Please

Expert Solution
steps

Step by step

Solved in 7 steps with 6 images

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning