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 word most strongly appeals to pathos?
const2013 [10]

Answer:

I think it would be unfulfilled

6 0
4 years ago
Which of the following is an advantage of text HTML editors over plain text editors?
zubka84 [21]
C hope that helps have a good day and I feel you good for big hugs
5 0
3 years ago
Read 2 more answers
Friedman (1999) argues that "we are wrong to base health promotion in all societies on a Western framework for human development
Dovator [93]

Answers with Explanation:

A. Give at least two reasons why he believes this.

Friedman believes that health promotion based on Western framework for human development<em> unfairly criticizes the other cultures in the society.</em> Western framework values intellectual and economic achievements alone, which then <em>results to putting a great expense on the other essential human qualities.</em>

B. What crisis does he believe is happening in the most economically developed countries?

The crisis that is happening in the most economically developed country is the <em>devaluing of the other aspects which other human beings value in terms of individuality or families.</em>

C. What does he recommend to improve the programming for adolescent health?

He recommends that if changes were to be implemented for adolescent's health, <u>these have to be properly assessed regarding their effect on the adolescent's development,</u> including his/her family and other social relationships. Next is to check whether<u> it doesn't conflict with the adolescent's culture in the community that he belongs</u>. If it does, then it is essential to change it or find <em>another way which fosters</em><em> </em><em>the same goal.</em>

7 0
3 years ago
When the location of a data source is defined as a(n) _______ location, excel will access the connection to the data source with
valina [46]

trusted is your answer

5 0
4 years ago
Pascual specializes in fixing computers. He gets great personal satisfaction out of spending hours working on them, and he has a
Nataly_w [17]

Answer:

expert

Explanation:

Based on the information provided within the question it can be said that the Pascual would be considered an expert on computers. In developmental terms, this refers to someone that has a deep understanding in a particular field as well as the skills and experience needed through lots of practice and education in that specific field. Which in this case is computer hardware.

8 0
4 years ago
Other questions:
  • Dell Computer purchases parts and resources for its computers from multiple suppliers that are spread across the world. This pra
    8·1 answer
  • What do you call the number that is used as an index to pinpoint a specific element within an array?
    14·1 answer
  • The analog signals that carry analog or digital data comprise composites built from combinations of simple sine waves.
    12·1 answer
  • Which of the following scenarios can best be addressed by operations management?
    11·1 answer
  • CMS is a content management system that collects, organization, publishes, and manages creative content. Right...?
    9·1 answer
  • What happens if none of the selector values match selector in a simple case expression in pl/sql
    6·1 answer
  • Select three advantages to using digital video.
    5·2 answers
  • Write if true or false
    12·1 answer
  • PLS REPLY ASAP WILL MARK BRAINLIEST
    5·2 answers
  • [2]<br> (c) Describe how the microprocessor can determine when to sound the clock alarm.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!