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
The ability to learn a new computer software program is to ____________ as knowledge of state capitals is to _____________.
Montano1993 [528]
<span>The ability to learn a new computer software program is to ADAPT as knowledge of state capitals is to COMMIT. Learning something new is to adapt and take time to study and learn what needs to be done in order for the task you wish to happen. To have knowledge of a specific thing, is to committing that face to your memory.</span>
8 0
3 years ago
A user is given Read permission to a file stored on an NTFS-formatted volume. The file is then moved to a different folder on a
Sav [38]

Answer:

Permissions do not apply here.

Explanation:

The reason is that FAT partitions do not have files and folders permissions, only have sharing permissions. Therefore, once the file has been removed from the NTFS partition, the restrictions that once applied to it are now gone.

5 0
4 years ago
Which element is located on the top left of the Word screen?
victus00 [196]
The <span>element located on the top left of the Word screen is the Quick Access Toolbar.  </span>On the quick access toolbar, you can find some of the common functions that you will need to use on a regular basis, it contains commands that are used most often, for example Redo, Undo and Save etc.
7 0
3 years ago
The overall cost of wiring in addressable fire alarm system is significantly cheaper than the conventional one. Why is it so?
stellarik [79]

Answer:

Yes, The overall cost of wiring in addressable fire alarm system is significantly cheaper than the conventional one.But the addressale fire alram system is more reliable than a conventional system.

Explanation:

Conventional systems are hardware-based and use analog technology. where addressable fire alarm use digital technology. addressable system is generally more reliable than a conventional system mainly due to how the different systems are wired. With a conventional system, if a device’s wire is damaged or severed, its signal and the signal of other devices down the line cannot be transmitted to the control panel.

With an addressable system, both ends of the wire connect to the control panel. Therefore, if one end becomes damaged or severed, signals can still reach the control panel through the other end of the loop. In addressable systems, a device can be removed or disabled and it will not affect the other devices in the loop.

7 0
3 years ago
The directory "a" contains its subdirectory "b" and there is no other entry in the directory "a". You want to display "the conte
Svet_ta [14]

The answer assumes that the question is about which command help accomplish display directory contents in Unix-like operating systems.

Answer:

The command is <em>ls</em>.

Explanation:

The command <em>ls</em> (short for <em>list</em>) displays a variety of important information in different ways regarding any directory contents. Because of this, it is probably one of the most used commands in Unix-like operating systems.

Any directory can contain directories and files of different sizes, recently created/modified, attributes like permissions for being accessed, and, with this command, we can see all this information by size, chronologically, by owner, and/or by many more ways.  

In the question, we can accomplish to list that the directory "a" contains its sub-directory "b" and no other entry using the next line of code:

Command-line 1: \\ ls\; a (<em>the command "says": display content of a</em>)

Result: b

The result is only the directory <em>b </em>because there is no other entry in it.

To display more information regarding <em>b</em>, we can use the many options available for the command <em>ls</em>, like <em>-a</em> (all entries), <em>-d</em> (only directories), <em>-l</em> (long listing format), and so on, e.g. ls -a  A (display all entries in directory A, included hidden files).

6 0
3 years ago
Other questions:
  • What is the command to use the memory diagnostics tool?
    11·1 answer
  • Including quotes in your paper can bring additional meaning to the content True are false
    11·2 answers
  • A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never
    7·1 answer
  • Your mother is sure that you were driving too fast because she knows
    10·2 answers
  • What should be a technicians first step in an A/C system
    15·1 answer
  • In a fully underwritten offering a firm sells 1 million shares of stock through a fully underwritten offering. Their banker char
    10·1 answer
  • What is the term that is used to describe a computer system that could store literary documents, link them according to logical
    10·1 answer
  • What type of values are typically stores in unweighted graphs
    5·1 answer
  • PLEASE HELP ILL MARK BRAINLIEST!!!
    10·1 answer
  • _____ drives are storage drives that contain both solid-state storage and hard disks in an attempt to gain the speed and power o
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!