Question: Write a C program that accepts the MARK obtained in each of the six assessments of a course using for loop. The input statement should accept a decimal number. Then, your program should calculate and display the average SCORE. Follow the steps given below to complete the task. 1. Ask the user to input the MARK for each assessment one by one assessments. 2. Based on the user input, calculate average SCORE using the fmula giv below. Display the SCORE as shown in the sample output. Hint: Use formula, TOTAL = a1+a2+a3+a4+a5+a6 SCORE = TOTAL/6

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
جامعة التنية والعلومر التطبينية بعبري
Aag d Tehuclon d Applied Sciences-Thei
Department of Information Technology
PRACTICAL TEST - SET B
Course: EECP1290-Computer Programming for Engineering
Marks: 10, Time: 40 Minutes
Student ID:
Student Name:
Date:
Time:
Question: Write a C program that accepts the MARK obtained in each of the six
assessments of a course using for loop. The input statement should accept a
decimal number. Then, your program should calculate and display the average
SCORE.
Follow the steps given below to complete the task.
9.
1. Ask the user to input the MARK for each assessment one by one
assessments.
2. Based on the user input, calculate average SCORE using the fmula given
below. Display the SCORE as shown in the sample output,
Hint: Use formula, TOTAL = a1+a2+a3+a4+a5+a6
SCORE = TOTAL/6
Sample output:
Type the mark for assessment 1: 6.5
Type the mark for assessment 2: 7.5
Type the mark for assessment 3: 8.0
Type the mark for assessment 4: 7.0
Type the mark for assessment 5: 7.5
Type the mark for assessment 6: 5.5
The computed average SCORE is 7.000000
Note: User input is shown in bold.
Marks:
Transcribed Image Text:جامعة التنية والعلومر التطبينية بعبري Aag d Tehuclon d Applied Sciences-Thei Department of Information Technology PRACTICAL TEST - SET B Course: EECP1290-Computer Programming for Engineering Marks: 10, Time: 40 Minutes Student ID: Student Name: Date: Time: Question: Write a C program that accepts the MARK obtained in each of the six assessments of a course using for loop. The input statement should accept a decimal number. Then, your program should calculate and display the average SCORE. Follow the steps given below to complete the task. 9. 1. Ask the user to input the MARK for each assessment one by one assessments. 2. Based on the user input, calculate average SCORE using the fmula given below. Display the SCORE as shown in the sample output, Hint: Use formula, TOTAL = a1+a2+a3+a4+a5+a6 SCORE = TOTAL/6 Sample output: Type the mark for assessment 1: 6.5 Type the mark for assessment 2: 7.5 Type the mark for assessment 3: 8.0 Type the mark for assessment 4: 7.0 Type the mark for assessment 5: 7.5 Type the mark for assessment 6: 5.5 The computed average SCORE is 7.000000 Note: User input is shown in bold. Marks:
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY