1. Write a C program that will input 10 names of student. Each student name has 4 exam scores (0– 100). Determine and display the average score of each student. Output also the name of students whose average score is between greater than or equal to 75.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.5: Input Data Validation
Problem 1E
icon
Related questions
Question
1. Write a C program that will input 10 names of student. Each student name has 4 exam scores (0- 100).
Determine and display the average score of each student. Output also the name of students whose
average score is between greater than or equal to 75.
2. Make a C program that prompts the user to input a positive integer value, and compute the following
sequence: If the number is even, halve it; if it's odd, multiply by 3 and add 1. Repeat this process until the
value is 1, printing out each value. Finally print out how many of these operations you performed.
Typical output might be:
Initial value is 9
Next value is 28
Next value is 14
Next value is 7
Next value is 22
Next value is 11
Next value is 34
Next value is 17
Next value is 52
Next value is 26
Next value is 13
Next value is 40
Next value is 20
Next value is 10
Next value is 5
Next value is 16
Next value is 8
Next value is 4
Next value is 2
Final value 1, number of steps 19
If the input value is less than 1, print a message containing the word
Error
Transcribed Image Text:1. Write a C program that will input 10 names of student. Each student name has 4 exam scores (0- 100). Determine and display the average score of each student. Output also the name of students whose average score is between greater than or equal to 75. 2. Make a C program that prompts the user to input a positive integer value, and compute the following sequence: If the number is even, halve it; if it's odd, multiply by 3 and add 1. Repeat this process until the value is 1, printing out each value. Finally print out how many of these operations you performed. Typical output might be: Initial value is 9 Next value is 28 Next value is 14 Next value is 7 Next value is 22 Next value is 11 Next value is 34 Next value is 17 Next value is 52 Next value is 26 Next value is 13 Next value is 40 Next value is 20 Next value is 10 Next value is 5 Next value is 16 Next value is 8 Next value is 4 Next value is 2 Final value 1, number of steps 19 If the input value is less than 1, print a message containing the word Error
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Algebraic Expressions
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