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
Explain 4 things you can do with a Combination Square
sergij07 [2.7K]

Answer:

A combination square is a multi-use measuring instrument which is primarily used for ensuring the integrity of a 90° angle, measuring a 45° angle, measuring the center of a circular object, find depth, and simple distance measurements. It can also be used to determine level and plumb using its spirit level vial.

Explanation:

3 0
2 years ago
Tech A says that bleeding an electronic brake control system is just like bleeding a non-electronic brake control system. Tech B
PtichkaEL [24]

Answer:

Tech A is correct.

Explanation:

An electric brake controller is a device that sends a signal to the trailer via vehicle's brakes. This reduces the wear and tear on the vehicle brakes. As a result, the vehicle stops.

Tech A says that bleeding an electronic brake control system is just like bleeding a non-electronic brake control system.

So,

Tech A is correct.

3 0
3 years ago
A ramp from an expressway with a design speed of 30 mi/h connects with a local road, forming a T intersection. An additional lan
hram777 [196]

Answer:

the width of the turning roadway = 15 ft

Explanation:

Given that:

A ramp from an expressway with a design speed(u) =  30 mi/h connects with a local road

Using 0.08 for superelevation(e)

The minimum radius of the curve on the road can be determined by using the expression:

R = \dfrac{u^2}{15(e+f_s)}

where;

R= radius

f_s = coefficient of friction

From the tables of coefficient of friction for a design speed at 30 mi/h ;

f_s = 0.20

So;

R = \dfrac{30^2}{15(0.08+0.20)}

R = \dfrac{900}{15(0.28)}

R = \dfrac{900}{4.2}

R = 214.29 ft

R ≅ 215 ft

However; given that :

The turning roadway has stabilized shoulders on both sides and will provide for a onelane, one-way operation with no provision for passing a stalled vehicle.

From the tables of "Design widths of pavement for turning roads"

For a One-way operation with no provision for passing a stalled vehicle; this criteria falls under Case 1 operation

Similarly; we are told that the design vehicle is a single-unit truck; so therefore , it falls under traffic condition B.

As such in Case 1 operation that falls under traffic condition B  in accordance with the Design widths of pavement for turning roads;

If the radius = 215 ft; the value for the width of the turning roadway for this conditions = 15ft

Hence; the width of the turning roadway = 15 ft

5 0
2 years ago
Convert 10.25 degrees into radians; and π, π/2 and π/3 radians into degrees.
enot [183]

Answer:

0.1788 ,180°,90°,60°

Explanation:

CONVERSION FROM DEGREE TO RADIANS: For converting degree to radian we have to multiply with \frac{\pi}{180}

using this concept 10.25°=10.25×\frac{\pi}{180}=0.1788

CONVERSION FROM RADIAN TO DEGREE: For converting radian to degree we have to multiply with\frac{180}{\pi}

using this concept π=π×\frac{180}{\pi}

                                  =180°

  \frac{\pi}{2}= \frac{\pi}{2}[/tex×[tex]\frac{180}{\pi}

                                    =90°

  \frac{\pi}{3}= \frac{\pi}{3}×\frac{180}{\pi}

                                    =60°

3 0
3 years ago
Read 2 more answers
External crack of length of 3.0 mm was detected on the surface of the shaft of wind turbine made from 4340 steel. The diameter o
sveticcg [70]

Answer:

The correct answer is "K_c=6.0369 \ MPa\sqrt{m}".

Explanation:

Given:

Maximum load,

P = 50,000 N

Crack length,

a = 3mm

or,

  = 3×10⁻³ m

Diameter,

d = 32 mm

As we know,

⇒  Maximum stress, \sigma=\frac{P}{A}

                                      =\frac{50000}{(\frac{\pi}{4}\times 32^2)}

                                      =62.20 \ N/mm^2

Now,

⇒  Fracture tougness, K_c=Y \sigma\sqrt{\pi a}

On substituting the values, we get

                                           =1\times 62.20\times \sqrt{3.14\times 3\times 10^{-3}}

                                           =6.0369 \ MPa\sqrt{m}

4 0
2 years ago
Other questions:
  • In a planetary geartrain with a form factor of 8, the sun gear rotates clockwise at 5 rad⁄s and the ring gear rotates clockwise
    13·1 answer
  • Una empresa realizó en el ejercicio de compras al contado por valor
    9·1 answer
  • 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:
    12·1 answer
  • What are cars manufactured with today that allows for quick stopping without the brakes locking up?
    5·1 answer
  • A coin placed 30.8 cm from the center of a rotating, horizontal turntable slips when its speed is 50.8 cm/s.
    12·1 answer
  • A steel bar 100 mm long and having a square cross section 20 mm x 20 mm is pulled in
    6·1 answer
  • It is appropriate to use the following yield or failure criterion for ductile materials (a) Maximum shear stress or Tresca crite
    6·1 answer
  • Fig. 4 shows a simply-supported beam with supports A and B. The beam is subjected to three forces, 2000 N, 4000 N and 1500 N in
    5·1 answer
  • (Architecture) Sarah is an environmental activist. She frequently conducts various programs and activities in her community to p
    15·1 answer
  • with a digital system, if you have measured incorrectly and use too low of a kvp for adequate penetration, what do you need to d
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!