Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started