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
________ is a programming language invented by netscape used to control the objects on an html page and handle interactions with
spayn [35]
The answer is JavaScript
5 0
3 years ago
What does the Latin word VIDEO mean?<br> 1 I vine<br> O I conquered<br> I see<br> I hear
brilliants [131]

It comes from the word: “I see”

4 0
3 years ago
What is a peripheral device?
saul85 [17]

Answer:

a peripheral device is a device used to put information into as well as get information out of a computer

Explanation:

4 0
3 years ago
__________ ensure that hardware and software produced by different vendors work together.
inna [77]
Hi!

Standards are what help ensure that hardware and software made by different vendors can work together.

Hopefully, this helps! =)
4 0
3 years ago
I need help, I can't send documents by mail, does anyone know why this happens?​
Anit [1.1K]

Answer:

no, not really, but maybe its because your mail is full, or youre sending a too big attachment?

Explanation:

6 0
3 years ago
Other questions:
  • Which of the following are important for protecting computing devices and systems? Physical safeguards like a secure space prote
    7·1 answer
  • _______ are unprocessed facts that a computer feeds on.
    5·1 answer
  • The picture that graphically represents the items you use in Windows is called a/an
    15·1 answer
  • HELP URGENT
    12·2 answers
  • What is character referencing and why is it used?
    8·1 answer
  • You must keep track of some data. Your options are: (1) A linked-list maintained in sorted order. (2) A linked-list of unsorted
    5·1 answer
  • What is the best Genshin impact ship? My favorite is Xiao x Lumine. Put yours bellow.
    13·2 answers
  • Write any two web browers​
    10·1 answer
  • Need answer ASAP
    14·1 answer
  • Write a recursive method called, doMyMath, which takes as input any positive integer and calculates the factorial (use comments
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!