Write a C  program that will ask the user to input (from the console) number of students in a class and their respective marks for programming in C course. Your task is to store their marks in an Array, print that array and find the maximum an minimum marks in the class. Please use Dynamic memory allocation for this task. Check the image attached below for sample output

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.3: Pointer Arithmetic
Problem 3E
icon
Related questions
Question

Write a C  program that will ask the user to input (from the console) number of students in a class and
their respective marks for programming in C course. Your task is to store their marks in an Array, print
that array and find the maximum an minimum marks in the class. Please use Dynamic memory
allocation for this task.

Check the image attached below for sample output:

Students marks in Programming in C course
Create a program that will ask the user to input (from the console) number of students in a class and
their respective marks for programming in C course. Your task is to store their marks in an Array , print
that array and find the maximum an minimum marks in the class. Please use Dynamic memory
allocation for this task.
Enter number of students:5
Enter Student 1's mark:60
Enter Student 2's mark:70
Enter Student 3's mark:80
Enter Student 4's mark:90
Enter Student 5's mark:40
The elements of the marks array are: 60,_70, 80, 90, 40,
Maximum marks: 90, Minimum marks : 40 > |
Transcribed Image Text:Students marks in Programming in C course Create a program that will ask the user to input (from the console) number of students in a class and their respective marks for programming in C course. Your task is to store their marks in an Array , print that array and find the maximum an minimum marks in the class. Please use Dynamic memory allocation for this task. Enter number of students:5 Enter Student 1's mark:60 Enter Student 2's mark:70 Enter Student 3's mark:80 Enter Student 4's mark:90 Enter Student 5's mark:40 The elements of the marks array are: 60,_70, 80, 90, 40, Maximum marks: 90, Minimum marks : 40 > |
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Arrays
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
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning