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
The fracture strength of glass may be increased by etching away a thin surface layer. It is believed that the etching may alter
Korvikt [17]

Answer:

the ratio of the etched to the original crack tip radius is 30.24

Explanation:

Given the data in the question;

we determine the initial fracture stress using the following expression;

(σf)₁ = 2(σ₀)₁ [ α₁/(p_t)₁ ]^{1/2 ----- let this be equation 1

where; (σ₀)₁ is the initial fracture strength

(p_t)₁ is the original crack tip radius

α₁ is the original crack length.

first, we determine the final crack length;

α₂ = α₁ - 16% of α₁

α₂ = α₁ - ( 0.16 × α₁)

α₂ = α₁ - 0.16α₁

α₂ = 0.84α₁

next, we calculate the final fracture stress;

the fracture strength is increased by a factor of 6;

(σ₀)₂ = 6( σ₀ )₁

Now, expression for the final fracture stress

(σf)₂ = 2(σ₀)₂ [ α₂/(p_t)₂ ]^{1/2 ------- let this be equation 2

where (p_t)₂ is the etched crack tip radius

value of fracture stress of glass is constant

Now, we substitute 2(σ₀)₁ [ α₁/(p_t)₁ ]^{1/2 from equation for (σf)₂  in equation 2.

0.84α₁ for α₂.

6( σ₀ )₁ for (σ₀)₂.

∴

2(σ₀)₁ [ α₁/(p_t)₁ ]^{1/2  = 2(6( σ₀ )₁) [ 0.84α₁/(p_t)₂ ]^{1/2  

divide both sides by 2(σ₀)₁

[ α₁/(p_t)₁ ]^{1/2  =  6 [ 0.84α₁/(p_t)₂ ]^{1/2

[ 1/(p_t)₁ ]^{1/2  =  6 [ 0.84/(p_t)₂ ]^{1/2

[ 1/(p_t)₁ ]  =  36 [ 0.84/(p_t)₂ ]

1 / (p_t)₁ = 30.24 / (p_t)₂

(p_t)₂ = 30.24(p_t)₁

(p_t)₂/(p_t)₁ = 30.24

Therefore, the ratio of the etched to the original crack tip radius is 30.24

6 0
3 years ago
Prefix version of 6600 volts​
GenaCL600 [577]

Answer:

6.6 kilo volts = 6.6 k volts

Explanation:

A prefix is a word, number or a letter that is added before another word. In physics we have different prefixes for the exponential powers of 10, that are placed before units in place of those powers. Some examples are:

deci (d)   ------  10⁻¹

centi (c)   ------  10⁻²

milli (m)   ------   10⁻³

kilo (k)     ------   10³

mega (M) -----   10⁶

giga (G)   ------   10⁹

We have:

6600 volts

converting to exponential form:

=> 6.6 x 10³ volts

Thus, we know that the prefix of kilo (k) is used for 10³.

Hence,

=> <u>6.6 kilo volts = 6.6 k volts</u>

7 0
3 years ago
Led test lights are used to test circuits that include controllers and computers. True or false
Marianna [84]

Answer:

True

Explanation:

An LED test light is a piece of electronic test equipment used to determine the presence of electricity in a piece of equipment under test, making this statement true.

3 0
2 years ago
B)
Triss [41]

Answer:

2.5 is the required details

8 0
3 years ago
A design team is working on creating a new locker organizer. They have
astraxan [27]
A. Present a Solution
8 0
4 years ago
Other questions:
  • Drag each tile to the correct box.
    15·1 answer
  • The fluid-conditioning components of hydraulic-powered equipment provide fluid that is clean and maintained at an acceptable ope
    6·1 answer
  • Electrical pressure or “force”<br><br> A) current<br> B) resistance <br> C) voltage
    6·1 answer
  • A room is kept at −5°C by a vapor-compression refrigeration cycle with R-134a as the refrigerant. Heat is rejected to cooling wa
    7·2 answers
  • When you do a vehicle check, what do you NOT need to keep an eye on?
    9·1 answer
  • What is the name for a program based on the way your brain works?
    13·2 answers
  • A dual-fluid heat exchanger has 10 lbm/s water entering at 100 F, 20 psia and leaving at 50 F, 20 psia. The other fluid is glyco
    13·1 answer
  • A torque T 5 3 kN ? m is applied to the solid bronze cylinder shown. Determine (a) the maximum shearing stress, (b) the shethe 1
    10·1 answer
  • Technician A says that the carpet padding is designed to help reduce noise and vibrations.
    5·1 answer
  • EverFi future smart pie chart
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!