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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education