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
Whats the purpose of the keyway
Nata [24]

Answer:

abrir candados y abrir puertas

Explanation:

4 0
2 years ago
A PMOS device with VT P = −1.2 V has a drain current iD = 0.5 mA when vSG = 3 V and vSD = 5 V. Calculate the drain current when:
Ksju [112]
The answer is b ! Hope I helped
7 0
3 years ago
0 - 1"<br> -20<br> -15<br> -10<br> 5<br> 0 1 2 3<br> 0
faust18 [17]

Answer:

#WeirdestQuestionOfAllTime

Explanation:

8 0
3 years ago
Explain the purpose of wrench plzzz
Rus_ich [418]

Answer:

Wrenches are made in various shapes and sizes and are used for gripping, fastening, turning, tightening and loosening things like pipes, pipe fittings, nuts and bolts. There are basically two major kinds of wrenches: Pipe wrenches used in plumbing for gripping round (cylindrical) things.

4 0
2 years ago
Read 2 more answers
A Si sample contains 1016 cm-3 In acceptor atoms and a certain number of shallow donors, the In acceptor level is 0.16 eV above
creativ13 [48]

Answer:

6.5 × 10¹⁵/ cm³

Explanation:

Thinking process:

The relation N_{o} = N_{i} * \frac{E_{f}-E_{i}  }{KT}

With the expression Ef - Ei = 0.36 × 1.6 × 10⁻¹⁹

and ni = 1.5 × 10¹⁰

Temperature, T = 300 K

K = 1.38 × 10⁻²³

This generates N₀ = 1.654 × 10¹⁶ per cube

Now, there are 10¹⁶ per cubic centimeter

Hence, N_{d}  = 1.65*10^{16}  - 10^{16} \\           = 6.5 * 10^{15} per cm cube

5 0
3 years ago
Read 2 more answers
Other questions:
  • An overhead 25m long, uninsulated industrial steam pipe of 100mm diameter is routed through a building whose walls and air are a
    9·1 answer
  • What does the following program segment do? Declare Count As Integer Declare Sum As Integer Set Sum = 0 For (Count = 1; Count &l
    15·1 answer
  • A rigid tank with a volume of 4 m^3 contains argon at 500 kPa and 30 deg C. It is connected to a piston cylinder (initially empt
    14·1 answer
  • 5. What are the 3 basic types of electrical circuits?
    12·1 answer
  • How do I calculate the gear ratio​
    6·1 answer
  • The themes around which social sciences texts are organized boost understanding by
    11·1 answer
  • Explain the use of remote sensing in surveying.​
    8·1 answer
  • Problem: design the following rectangular floor beam for a building.
    15·2 answers
  • I have a question for you guys
    13·2 answers
  • who wants points for now work just put any answer who wants points for now work just put any answer who wants points for now wor
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!