1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ratelena [41]
3 years ago
10

The attached program (studentsGpa.cpp) uses dynamic allocation to create an array of strings. It asks the user to enter a number

and based on the entered number it allocates the array size. Then based on that number it asks the user that many times to enter student’s names. What you need to do:Add another array of doubles to store the gpa of each student as you enter themYou need to display both the student’s name and the gpa.NOTE: must use pointer notation not array subscript. Any submission that uses array subscript won’t be graded

Engineering
1 answer:
Arisa [49]3 years ago
5 0

Question: The program was not attached to your question. Find attached of the program and the answer.

Answer:

See the explanation for the answer.

Explanation:

#include <iostream>

using namespace std;

int main()

{

   cout << "How many students will you enter? ";

   int n;

   cin>>n;

   string *name = new string[n];

   double *gpa = new double[n];

   for(int i=0;i<n;i++){

       cout<<"Enter student"<<(i+1)<<"'s name: ";

       cin>>name[i];

       cout<<"Enter student"<<(i+1)<<"'s gpa: ";

       cin>>gpa[i];

   }

   cout<<"The list students"<<endl;

   cout<<"Name             GPA"<<endl;

   cout<<"----------------------"<<endl;

   for(int i=0;i<n;i++){

       cout<<name[i]<<"              "<<gpa[i]<<endl;

   }

   return 0;

}

OUTPUT : See the attached file.

You might be interested in
Cómo se llama el componente, que permite abrir o cerrar un circuito eléctrico
Korolek [52]
Creo haber leído sobre esto..Un “interruptor” yo diría
5 0
3 years ago
All of the following are examples of capital intensive industries EXCEPT: *
OverLord2011 [107]

i believe it is soft drink production

8 0
2 years ago
Read 2 more answers
Which of the following was a sustainable power source used during the Middle Ages?
spin [16.1K]
The answer is windmill it was used for electricity
7 0
3 years ago
Read 2 more answers
A dual-fluid heat exchanger has 10 lbm/s water entering at 100 F, 20 psia and leaving at 50 F, 20 psia. The other fluid is glyco
kakasveta [241]

Answer:

Rate of internal heat transfer = 23.2 Btu/Ibm

mass flow rate = 21.55 Ibm/s

Explanation:

using given data to obtain values from table F7.1

Enthalpy of water at temperature of 100 F = 68.04Btu/Ibm

Enthalpy of water at temperature of 50 F = 18.05 Btu/Ibm

from table F.3

specific constant of glycerin C_{p} = 0.58 Btu/Ibm-R

<u>The rate of internal heat transfer ( change in enthalpy ) </u>

h4 - h3 = Cp ( T4 - T3 ) --------------- ( 1 )

where ; T4 = 50 F

             T3 = 10 F

             Cp = 0.58 Btu/Ibm-R

substitute given values into equation 1

change in enthalpy ( h4 - h3 ) = 23.2 Btu/Ibm

<u>Determine mass flow rate of glycol</u>

attached below is the detailed solution

mass flow rate of glycol = 21.55 Ibm/s

3 0
3 years ago
Who was the American founder and leader of the Shakers in the 1770’s who advocated equality, individual responsibility, and peac
DaniilM [7]

Answer: Ann Lee (1736-1784)

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • Convection is a function of temperature to the fourth power. a)-True b)-False
    9·1 answer
  • What is the major drawback to use whiskers as a dispersed agents in composites? a)- High price b)- Large length to diameter rati
    7·1 answer
  • What is the IMA of a fixed pulley ​
    7·2 answers
  • Using the data from the table, what is P(3)?!
    9·1 answer
  • WHAT IS THE EFFECT OF ICE ACCRETION ON THE LONGITUDINAL STABILITY OF AN AIRCRAFT?
    8·1 answer
  • Ayuda con este problema de empuje y principio de arquimedes.
    6·1 answer
  • What three training organizations are important for Union Masons?
    14·1 answer
  • A front wheel drive vehicle with four wheel disc brakes is pulling to the left. Tech A says an external kink or internal restric
    13·1 answer
  • Plz help If an item is $13.00 for a case of 24, then it is $
    11·2 answers
  • assuming complementary inputs are available, the minimum number of transistors needed to realize a two input xor gate is:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!