C++ Lab Exercises: Creating Dynamic Arrays and Storing Student GPAs, Assignments of Programming Languages

Instructions for two c++ lab tasks. The first task involves creating a dynamically-sized array and asking the user for the number of digits to be entered. The user's digits are then displayed, and the memory is deallocated at the end. The second task requires writing a c++ program to store the gpas of a user-specified number of students and display their gpas. The memory for the student data should be deleted at the end.

Typology: Assignments

2019/2020

Uploaded on 12/14/2020

razaroghani
razaroghani 🇵🇰

4.5

(4)

151 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab #13
Page. 1
Lab task 13.1 create an array dynamically and ask user about its size. Then ask the user to enter
that much number of digit. Display the digit and deallocate the memory at the end.
pf2

Partial preview of the text

Download C++ Lab Exercises: Creating Dynamic Arrays and Storing Student GPAs and more Assignments Programming Languages in PDF only on Docsity!

Lab

Page. 1

Lab task 13.1 create an array dynamically and ask user about its size. Then ask the user to enter

that much number of digit. Display the digit and deallocate the memory at the end.

Lab

Page. 2

Lab task 13.2 write a C++ program to store GPA of n number of student and display it where

n the number of student enter by user. Delete all the date at the end.