Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Submission Question Write a program that asks user to insert marks and calculate sum and average of the marks entered. Numbers of marks entered will

image text in transcribed

Submission Question Write a program that asks user to insert marks and calculate sum and average of the marks entered. Numbers of marks entered will depend on the user. Use dynamic array new to dynamically assigns space to store elements entered by user. Hint : Complete the program below. int main() Sample output: { How many marks would you like to enter: 4 int i, n; Enter marks 1 : 60 float sum, avg; Enter marks 2 : 50 float *p; Enter marks 3 : 70 Enter marks 4 : 90 You have entered : 60, 50, 70, 90 Sum of marks is : 270 Average marks is : 67 p = new float [i]; : for (n=0; n

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 Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions