Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete BOTH questions Note: These questions are listed inside your book chapter 3. 3. Test Average Write a program that asks for five test scores.

image text in transcribed

Complete BOTH questions Note: These questions are listed inside your book chapter 3. 3. Test Average Write a program that asks for five test scores. The program should calculate the average test score and display it. The number displayed should be formatted in fixed-point notation, with one decimal point of precision 5. Male and Female Percentages Write a program that asks the user for the number of males and the number of females registered in a class. The program should display the percentage of males and females in the class. Hint: Suppose there are 8 males and 12 females in a class. There are 20 students in the class. The percentage of males can be calculated as 8 + 20 = 0.4, or 40 percent. The percentage of females can be calculated as 12-20 = 0.6, or 60 percent

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

7 . 3 7 5 to 4 . 4 fixed - point binary

Answered: 1 week ago