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
28. What is the value of a resistor in a series circuit if you measure 0.5 amps flowing through it and 15 volts
Anna35 [415]
The girls name on my phone I am in my name is
7 0
3 years ago
7. Sockets internal designs come in what sizes?
MAXImum [283]

Answer:

These drive fittings come in four common sizes: 1⁄4 inch, 3⁄8 inch, 1⁄2 inch, and 3⁄4 inch (referred to as "drives", as in "3⁄8 drive").

3 0
3 years ago
10. An engineer is designing a total hip implant. She intends to make the femoral stem out of titanium because it forms a good i
creativ13 [48]

Answer:

Yes. She should be worried about corrosion. The 18-8 stainless exhibits intergranular corrosion due to high (0.08%) carbon content and gross pitting due to low molybdenum content.

Explanation: lol

8 0
3 years ago
The boy in the wagon begins throwing bricks out of the wagon to simulate rocket propulsion. The wagon begins at rest, and the bo
Digiron [165]

Q:What velocity does the boy attain if he throws the bricks one at a time?

Answer:Linear velocity since it moves back and firth and does not rotate like angular velocity.

5 0
3 years ago
Two containers initially contain dry air at 40 °C. Water is added to both containers so that the relative humidity is 30% in con
enot [183]

Answer:

A) Wet bulb temperature of #1 is less than that of #2

Explanation:

This can be gotten from pinpointing the states of the two containers on a psychometric chart.

8 0
3 years ago
Other questions:
  • 4.71 A full-wave rectifier circuit with a 1-kΩ operates from a 120-V (rms) 60-Hz household supply through a 6-to-1 transformer h
    10·1 answer
  • Block A has a weight of 8 lb. and block B has a weight of 6 lb. They rest on a surface for which the coefficient of kinetic fric
    8·1 answer
  • The viscosity of all liquids decreases as the temperature is a) Increased b) decreased c) maintained constant d) fluctuating e)
    12·1 answer
  • Interlocking stacked material is done by​ _____.
    10·2 answers
  • A 350 m^3 retention pond that holds rainwater from a shopping mall is empty at the beginning of a rainstorm. The flow rate out o
    7·1 answer
  • What are the nominal dimensions for a 1x2 stick of lumber, a 2x4 stick of lumber and a standard sheet of plywood?
    11·1 answer
  • Joe, a technician, is attempting to connect two hubs to add a new segment to his local network. He uses one of his CAT5 patch ca
    9·1 answer
  • What are the risks of biohacking? Do you think the risks of biohacking outweigh the advantages? Why or why not?
    5·1 answer
  • This acronym is a reminder of the most common types of hazards or injuries caused by electricity.
    14·1 answer
  • when a unit load is secured to a pallet, it is more difficult for pilferage to take place. true false
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!