Ask the user for a name and for a list of test scores. Show the number of tests taken and the average. Allow the user to enter any number of scores and make the program end when a negative value is entered.
Ask the user for a name and for a list of test scores. Show the number of tests taken and the average. Allow the user to enter any number of scores and make the program end when a negative value is entered.
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
Related questions
Question
Ask the user for a name and for a list of test scores. Show the number of tests taken and the average. Allow the user to enter any number of scores and make the program end when a negative value is entered.

Transcribed Image Text:**Student Score Entry System**
- **Name Input:**
- `Enter name`
- User inputs: `Mike`
- **Score Input Sequence:**
- **Score 1:**
- Prompt: `Enter score 1 or a negative number to exit`
- User inputs: `90`
- **Score 2:**
- Prompt: `Enter score 2 or a negative number to exit`
- User inputs: `50`
- **Score 3:**
- Prompt: `Enter score 3 or a negative number to exit`
- User inputs: `66.4`
- **Score 4:**
- Prompt: `Enter score 4 or a negative number to exit`
- User inputs: `32`
- **Score 5:**
- Prompt: `Enter score 5 or a negative number to exit`
- User inputs: `87`
- **Score 6:**
- Prompt: `Enter score 6 or a negative number to exit`
- User inputs: `56`
- **Score 7:**
- Prompt: `Enter score 7 or a negative number to exit`
- User inputs: `55`
- **Score 8:**
- Prompt: `Enter score 8 or a negative number to exit`
- User inputs: `77`
- **Score 9:**
- Prompt: `Enter score 9 or a negative number to exit`
- User inputs: `99`
- **Score 10:**
- Prompt: `Enter score 10 or a negative number to exit`
- User inputs: `78`
- **Score 11:**
- Prompt: `Enter score 11 or a negative number to exit`
- User inputs: `100`
- **Score 12:**
- Prompt: `Enter score 12 or a negative number to exit`
- User inputs: `0`
- **Score 13:**
- Prompt: `Enter score 13 or a negative number to exit`
- User inputs: `3`
- **Score 14:**
- Prompt: `Enter score 14 or a negative number to exit`
- User inputs: `-67` (
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education