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
Which of the following has special properties that allow forces and pressure to be distributed evenly?
Thepotemich [5.8K]

Answer:

Fluids

Explanation:

Fluids has special properties that allow forces and pressure to be distributed evenly within them.

  • Fluids are gases and liquids whose intermolecular forces of attraction are generally weak or non-existence.
  • Therefore, when pressure is applied to them, it permeates evenly on all parts.
  • Their ability to tend to randomness makes liquids and gases very viable for distributing pressure.
7 0
3 years ago
A heat exchanger takes compressed liquid water and converts it into steam with a temperature and pressure of 20 Mpa and 480 C; r
belka [17]

Answer:

See explaination

Explanation:

Lets first consider the term Isentropic efficiency. The isentropic efficiency of a compressor or pump is defined as the ratio of the work input to an isentropic process, to the work input to the actual process between the same inlet and exit pressures. IN practice, compressors are intentionally cooled to minimize the work input.

Please kindly check attachment for the step by step solution of the given problem.

6 0
3 years ago
Write a SELECT statement that returns the same result set as this SELECT statement. Substitute a subquery in a WHERE clause for
sergiy2304 [10]

Answer:

SELECT distinct VendorName FROM Vendors

WHERE VendorID IN (

SELECT VendorID FROM Invoices

)

Explanation:

6 0
3 years ago
An engineer is going to redesign an ejection seat for an airplane. The seat was designed for pilots weighing between 130 lb and
k0ka [10]

Answer:

A.) 0.3088

B.) 0.0017

C.) part A

Explanation:

A.)

z1= \frac{\left(150-137\right)}{27.7}=0.4693

z2=\frac{\left(201-137\right)}{27.7}=2.3105

P(0.4693

B.)

z1=\frac{150-137}{27.7/ \sqrt{39}} =2.9309\\z2=\frac{201-137}{27.7/ \sqrt{39}}=14.4289

\\P(2.9309

C.) Since the seat performance for an individual pilot is more important than 39 different pilots.

3 0
3 years ago
Read 2 more answers
An L2 steel strap having a thickness of 0.125 in. and a width of 2 in. is bent into a circular arc of radius 600 in. Determine t
lesya692 [45]

Answer:

the maximum bending stress in the strap is 3.02 ksi

Explanation:

Given the data in the question;

steel strap thickness = 0.125 in

width = 2 in

circular arc radius = 600 in

we know that, standard value of modulus of elasticity of L2 steel is; E = 29 × 10³ ksi;

Now, using simple theory of bending

1/p = M/EI

solve for M

Mp = EI

M = EI / p ----- let this be equation 1

The maximum bending stress in the strap is;

σ = Mc / I -------let this be equation 2

substitute equation 1 into 2

σ = ( EI / p)c / I

σ = ( c/p )E

so we substitute in our values

σ = ( (0.125/2) / 600 )29 × 10³

σ = 0.00010416666 × 29 × 10³

σ = 3.02 ksi

Therefore, the maximum bending stress in the strap is 3.02 ksi

3 0
3 years ago
Other questions:
  • A liquid-liquid extraction process consists of two units, a mixer and a separator. One inlet stream to the mixer consists of two
    7·1 answer
  • What is flow energy? Do fluids at rest possess any flow energy?
    13·1 answer
  • Which energy source would you rank as the best option for the rescue team? Why?
    9·1 answer
  • Liquid water is fed to a boiler at 24°C and 10 bar is converted at a constant pressure to saturated steam.
    12·1 answer
  • Realize the function f(a, b, c, d, e) = Σ m(6, 7, 9, 11, 12, 13, 16, 17, 18, 20, 21, 23, 25, 28)using a 16-to-1 MUX with control
    13·1 answer
  • Ring rolling is a deformation process in which a thick-walled ring of smaller diameter is rolled into a thin-walled ring of larg
    11·1 answer
  • Help me i need this bad :)
    14·1 answer
  • What effect will increasing numbers of high-profile green building projects likely have on thinking about building?
    5·1 answer
  • For two different air velocities, the Nusselt number for two different diameter cylinders in cross flow is the same. The average
    6·1 answer
  • ) If the blood viscosity is 2.7x10-3 Pa.s, length of the blood vessel is 1 m, radius of the blood vessel is 1 mm, calculate the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!