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
What term specifically describes small chunks of rocks and debris in space that burn up in Earth’s atmosphere?
inessss [21]

Term specifically describes small chunks of rocks and debris in space that burn up in Earth’s atmosphere is :

Meteors

Explanation:

  • A meteor is a meteoroid or a particle broken off an asteroid or comet orbiting the Sun – that burns up as it enters the Earth's atmosphere, creating the effect of a "shooting star".
  • Meteoroids that reach the Earth's surface without disintegrating are called meteorites.
  • Due to Earth's escape velocity, the minimum impact velocity is 11 km/s with asteroid impacts averaging around 17 km/s on the Earth. The most probable impact angle is 45 degrees.
  • Meteoroids have a pretty big size range. They include any space debris bigger than a molecule and smaller than about 330 feet space debris bigger than this is considered an asteroid.
  • But most of the debris the Earth comes in contact with is "dust" shed by comets traveling through the solar system.
  • The surface of a meteorite is generally very smooth and featureless, but often has shallow depressions and deep cavities resembling clearly visible thumbprints
  • Most iron meteorites, like the example at right, have well-developed regmaglypts all over their surface.
6 0
3 years ago
1. A wood board is one of a dozen different parts in a homemade robot kit. The width, depth, and height dimensions of the board
otez555 [7]

Answer:

183.75 cubic inches.

Explanation:

The volume of the wood board is determine by means of this expression:

V = w \cdot h \cdot l

By replacing variables:

V = (7.5 in) \cdot (14 in) \cdot (1.75 in)\\V = 183.75 in^{3}

3 0
3 years ago
It is desired to produce and aligned carbon fiber-epoxy matrix composite having a longitudinal tensile strength of 610 MPa. Calc
julia-pushkina [17]

Answer:

volume fraction of fibers is 0.4

Explanation:

Given that for the aligned carbon fiber-epoxy matrix composite:

Diameter (D) = 0.029 mm

Length (L) = 2.3 mm

Tensile strength (\sigma_{cd}) = 610 MPa

fracture strength (\sigma_f) = 5300 MPa

matrix stress (\sigma_m) =  17.3 MPa

fiber-matrix bond strength (\tau_c) = 19 MPa

The critical length is given as:

L_C=\sigma_f(\frac{D}{2\tau_c} )=5300*10^6(\frac{0.029*10^{-3}}{19*10^6} )=8.1*10^{-3}=8.1mm

Since the critical length is greater than the length, the aligned carbon fiber-epoxy matrix composite can be produced.

The longitudinal strength is given by:

\sigma_{cd}=\frac{L*\tau_c}{D} .V_f+\sigma_m(1-V_f)

making Vf the subject of the formula:

V_f=\frac{\sigma_{cd}-\sigma_m}{\frac{L*\tau_c}{D} -\sigma_m}

Vf is the volume fraction of fibers.

Therefore:

V_f=\frac{\sigma_{cd}-\sigma_m}{\frac{L*\tau_c}{D} -\sigma_m}=\frac{610*10^6-17.3*10^6}{\frac{2.3*10^{-3}*19*10^6}{0.029*10^{-3}}-17.3*10^6} } =0.4

volume fraction of fibers is 0.4

8 0
3 years ago
Select the correct answer. Felix aspires to be an engineer working for the government. What credentials will Felix require to ap
Aneli [31]

Answer:

OB

Explanation:

5 0
3 years ago
When a tensile specimen is stretched in the plastic region to an engineering strain of 0.2, calculate the amount of cold work pe
Valentin [98]

Answer:

0.2 x 100

Explanation:

Engineering strain is the original crossection/original crossection

cold work percentage is

original crossection/original crossection x 100

4 0
2 years ago
Other questions:
  • A mixing basin in a sewage filtration plant is stirred by a mechanical agitator with a power input/WF L T=. Other parameters de
    8·1 answer
  • A medium-sized jet has a 3.8-m-diameter fuselage and a loaded mass of 85,000 kg. The drag on an airplane is primarily due to the
    14·1 answer
  • Select all that apply.
    13·1 answer
  • On a given day, a barometer at the base of the Washington Monument reads 29.97 in. of mercury. What would the barometer reading
    6·1 answer
  • A 60-Hz 220-V-rms source supplies power to a load consisting of a resistance in series with an inductance. The real power is 150
    10·1 answer
  • Technician A says that camshaft rotation must be in the same direction as crankshaft rotation. Technician B says that camshaft r
    8·1 answer
  • Multiple Select
    12·1 answer
  • Technician A says that rear-wheel drive vehicles usually get better traction than front-wheel drive vehicles. Technician B says
    15·1 answer
  • Người ta sử dụng hệ thống cô đặc 3 nồi xuôi chiều tuần hoàn tự nhiên để cô đặc dung dịch đường có suất lượng 10 tấn/giờ từ nồng
    6·1 answer
  • How do you know what year a mustang is?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!