Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use C++ programming // This program stores, in an array, the marks scored by // a students for 5 subjects. The program display marks for

image text in transcribedimage text in transcribeduse C++ programming

// This program stores, in an array, the marks scored by // a students for 5 subjects. The program display marks for each subject // marks, total marks and average marks for the student. #include using namespace std; int main() { double total; // total marks double average; // student's average marks // i) Define array marks with elements type double to store marks for five subjects as 88, 97, 79, 86, 94. total = 0; // Display the marks for each subject and total and average marks. return 0; Figure 2.1: A program to display marks for five subjects 2. Complete the program as shown in Figure 2.1, to get output as follows: (10 marks) Output: Marks for subject 1 is 88 Marks for subject 2 is 97 Marks for subject 3 is 79 Marks for subject 4 is 86 Marks for subject 5 is 94 Total marks for the student is 444 Average marks for the student is 88.8

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

Look at Table

Answered: 1 week ago

Question

Please make it fastly get Thums - up 3 8 1 .

Answered: 1 week ago