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
vlada-n [284]
3 years ago
14

Assume a program contains a void function named calcNewPrice(). The function receives two double variables named oldPrice and ne

wPrice. The function multiplies the contents of the oldPrice variable by 1.1, then stores the result in the newPrice variable. Which of the following can be used to call the calcNewPrice() function?(A) calcNewPrice(double oldPrice, double newPrice);(B) calcNewPrice(&oldPrice, newPrice);(C) calcNewPrice(oldPrice, &newPrice);(D) calcNewPrice(oldPrice, newPrice);
Engineering
1 answer:
liberstina [14]3 years ago
4 0

Answer:

(C) calcNewPrice(oldPrice, &newPrice);

Explanation:

It's a void function so there's no return value, however they wanted to change a value. The only way to do that is to pass in an address of the variable into the function, and deference it and store the new data there.

You might be interested in
Historical thinking skills can be divded into there main processes
morpeh [17]

Answer:

asking questions, drawing conclusions, and gathering information.

Explanation:

hope this helps!

7 0
4 years ago
Technician a s ays a shorted circuit can generate excessive heat. technician b says a shorted circuit will cause the circuit pro
Lerok [7]

Based on the information provided, the technician who is correct is: C. Both Technician A and Technician B.

<h3>What is an open circuit?</h3>

An open circuit can be defined as a type of electric circuit in which the continuity between the conducting wire (paths) has been broken or cut.

This ultimately implies that, an open circuit is designed and developed to prevent the flow of electric charges (electrons or currents) from one point in an electric circuit to another.

In Electrical engineering, a short usually causes an electric circuit protection device such as a fuse, circuit breaker, etc., to open when higher than normal current flows through the electrical circuit.

Read more on short circuit here: brainly.com/question/25018411

#SPJ1

Complete Question:

Technician A says a shorted circuit can generate excessive heat. Technician B says a shorted circuit will cause the circuit protection device to open. who is correct?

A. Technician A only

B. Technician B only

C. Both Technician A and B

D. Neither Technician A nor B

5 0
1 year ago
Write a Person class with a constructor that accepts the following details:
Liono4ka [1.6K]

The person class is an illustration of constructors;

In computer programs, constructors are automatically called when the object of a class is created

<h3>The program in C++</h3>

The class and the constructor program written in C++ programming language is as follows:

int main(){

   string fname, lname,dob,idno,mobileno;

   cin>>lname; cin>>fname; cin>>dob;  cin>>idno; cin>>mobileno;

Person c(fname,lname,dob,idno,mobileno);

if(mobileno.length() == 12){

    if(mobileno[3] == '-' && mobileno[7] == '-'){

        cout << "Name: " << c.getfname() << " " << c.getlname() << endl

 << "Date of birth: " << c.getdob() << endl

 << "ID number: " << c.getid() << endl

 << "Mobile: " << c.getmobile() << endl

 << "Age: "<< getAge(dob)<<endl;

 ;

    }

}

The complete program is added as an attachment

Read more about C++ programs at:

brainly.com/question/13168905

#SPJ1

Download cpp
3 0
2 years ago
What two units of measurement are used to classify engine sizes?
seraphim [82]
Liters or cubic inches
8 0
3 years ago
Read 2 more answers
Ammonia enters the expansion valve of a refrigeration system at a pressure of 10 bar and a temperature of 24 C and exits at 1 ba
Katen [24]

Answer:

h_{1} = h_2} = 293.45 KJ/kg.

The quality of the refrigerant exiting the expansion valve is

x_{2}=0.193596.

Explanation:

Fluid given Ammonia.

Inlet 1:-

Temperature T_{1} = 24^{o} C.

Pressure P_{1} = 10 bar.

Exit 2:-

Pressure P_{2} = 1 bar.

Solution:-

6 0
3 years ago
Other questions:
  • A simple ideal Rankine cycle which uses water as the working fluid operates its condenser at 40°C and its boiler at 250°C. Calcu
    15·1 answer
  • A paper clip is made of wire 0.75 mm in diameter. If the original material from which the wire is made is a rod 25 mm in diamete
    6·1 answer
  • g A circular oil slick of uniform thickness is caused by a spill of one cubic meter of oil. The thickness of the oil slick is de
    8·1 answer
  • An alloy is evaluated for potential creep deformation in a short-term laboratory experiment. The creep rate is found to be 1% pe
    7·1 answer
  • ____ is based on the observation that the rate of increase in transistor density on microchips had increased steadily, roughly d
    9·1 answer
  • The pads are 200mm long, 150 mm wide and thickness equal to 12mm. 1- Determine the average shear strain in the rubber if the for
    10·1 answer
  • What is the difference between a Datum and a Datum Feature? a) A Datum and Datum Feature are synonymous. b) A Datum is theoretic
    14·1 answer
  • 4. From two permeability tests it is found that the void ratio and hydraulic conductivity of a normally consolidated clay are 1.
    15·1 answer
  • . A belt drive is desired to couple the motor with a mixer for processing corn syrup. The 25-hp electric motor is rated at 950 r
    13·1 answer
  • Mathew is manufacturing overhead transmission wires for the working of electric trains. On what does the insulation of these wir
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!