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
The entire system of components that produces power and transmits it to the road is called the vehicle's _____.
IrinaK [193]

Answer:

Powertrain

Explanation:

6 0
3 years ago
Which sentence is correct about the exergy of an empty (pressure around zero Pascal) tank with a volume of V, located in an envi
sineoko [7]

Answer:

The correct option is;

c.  the exergy of the tank can be anything between zero to P₀·V

Explanation:

The given parameters are;

The volume of the tank = V

The pressure in the tank = 0 Pascal

The pressure of the surrounding = P₀

The temperature of the surrounding = T₀

Exergy is a measure of the amount of a given energy which a system posses that is extractable to provide useful work. It is possible work that brings about equilibrium. It is the potential the system has to bring about change

The exergy balance equation  is given as follows;

X_2 - X_1 = \int\limits^2_1 {} \, \delta Q \left (1 - \dfrac{T_0}{T} \right ) - [W - P_0 \cdot (V_2 - V_1)]- X_{destroyed}

Where;

X₂ - X₁ is the difference between the two exergies

Therefore, the exergy of the system with regards to the environment is the work received from the environment which at is equal to done on the system by the surrounding which by equilibrium for an empty tank with 0 pressure is equal to the product of the pressure of the surrounding and the volume of the empty tank or P₀ × V less the work, exergy destroyed, while taking into consideration the change in heat of the system

Therefore, the exergy of the tank can be anything between zero to P₀·V.

6 0
3 years ago
Which of the following applies to a module?
Ipatiy [6.2K]

Answer:

D all of the above

Explanation:

because I said so

3 0
2 years ago
blank lines are used to see inside the product?blank lines are used to see inside the product what are they called ​
mixer [17]

Answer:

Do you have anymore information about this?

7 0
3 years ago
The position of a particle is given by s = 0.27t
Natali [406]
Sorry bro people do this22.2 pls
8 0
2 years ago
Other questions:
  • Consider a fan located in a 3 ft by 3 ft square duct. Velocities at various points at the outlet are measured, and the average f
    12·1 answer
  • A computer has a two-level cache. Suppose that 60% of the memory references hit on the first level cache, 35% hit on the second
    12·1 answer
  • The steel bar has a 20 x 10 mm rectangular cross section and is welded along section a-a. The weld material has a tensile yield
    11·1 answer
  • 3. (9 points) A square-thread power screw is used to raise or lower the basketball board in a gym, the weight of which is W = 10
    12·1 answer
  • In remote areas, your gps devices may lose reception. It’s a good idea to have a
    7·2 answers
  • Please help is due tonight
    6·2 answers
  • What is a chipping hammer used for? <br><br> State three things.
    7·2 answers
  • Find the rate of heat transfer through a 6 mm thick glass window with a cross-sectional area of 0.8 m2 if the inside temperature
    15·1 answer
  • What is shown in the above figure
    11·1 answer
  • Consider the function f(n) = n
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!