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
Musya8 [376]
4 years ago
8

What is the output of the following program segment?int main(){float hours = 8;float payRate = 5.5; // per hourfloat grossPay =

0.0;grossPay = calcGrossPay (hours, payRate);displayGrossPay(grossPay);return 0;}float calcGrossPay(float hrs, float payRt){return hrs * payRt;}void displayGrossPay(float gPay){cout <<"Gross Pay is "<< gPay << endl;} a. 44b. Gross Pay is 44c. Gross Pay is gPayd. All of the above
Computers and Technology
1 answer:
astraxan [27]4 years ago
8 0

Answer:

The answer is "Option b".

Explanation:

In the code firstly, the main method is declared, inside the main method three float variable is declared, that are "hours, payRate, and grossPay", in which all variable assign a value, that is "8, 5.5, and 0.0". The first two variables are used as parameters, and the third variable is used to hold and pass as a parameter in displayGrossPay function, Then two function is called that is "calcGrossPay and displayGrossPay".

  • The calcGrossPay function uses "hours and payRate" variable as a parameter, and return multiplication of value.  
  • The displayGrossPay function uses a float variable "gPay" in its parameter, which is held in the grossPay variable, that holds calcGrossPay function value and print, its value.

You might be interested in
Which of the following is NOT a type of technology user? Digital Collaborator Media Mover Desktop Veteran Drifting Surfer Inform
MrRissso [65]
<span>C: is the answer  because its the onley one that dose not have some form of person in it </span>
6 0
4 years ago
Write a Temperature class that will hold a temperature in Fahrenheit and provide methodsto get the temperature in Fahrenheit, Ce
julsineya [31]

Answer: Thermometer

Explanation:

5 0
4 years ago
6.8 Code Practice<br> please can have some help please
babymother [125]
Sure what is the question though
7 0
3 years ago
In a wireless ____ network, devices broadcast directly to each other.
Softa [21]
In a wireless Broadband network
5 0
3 years ago
January 16, 2018 Q1: This question is worth 99 points and a brainliest. It is a one part question. Medium difficulty.
Naddik [55]
Well, some countries think of the Internet like as if it was a weapon. The Internet to them does not seem like what the Internet is to us. Internet features like the Dark Web or Deep web has given them enough reasons on why they should be prohibiting it.
6 0
3 years ago
Read 2 more answers
Other questions:
  • What is a key reason for assignning permissiongs when configuring file and share access?
    7·1 answer
  • If the wrong server edition is installed, what command can be used to change to a different edition?​
    5·1 answer
  • What does a column represent in a chart?
    13·1 answer
  • How are appointments scheduled in medisoft
    12·1 answer
  • Which of the follow represents a form of disruptive technology? Tend to open new markets and destroy old ones A new way of doing
    11·1 answer
  • What is a left hand door lever?
    13·2 answers
  • a) Before writing any code, you should go through a design process. Try to do so carefully – either follow a top-down approach,
    15·1 answer
  • You use a 1200 watt hair dryer for 10 mintues a day.
    7·1 answer
  • My sister told me an extremely funny joke. what is the direct object for this sentence ?
    6·1 answer
  • The firewall protects a computer or network from network-based attacks along with _____________ of data packets traversing the n
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!