Question

Write a program that will compute a Giant Hockey player height from (90) inches into feet...

Write a program that will compute a Giant Hockey player height from (90) inches into feet and inches

Write a program that will display the payroll amount, number of hours worked and hourly rate.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

According to HOMEWORKLIB RULES i have to solve first question only.

Program:

#include <iostream>

#include <math.h>

using namespace std;

int main() {

int inches=90,feet; // variable declaration

cout << "Giant Hockey player height in inches: "<<inches<<endl;

feet = inches / 12; // feet calculation

inches = inches % 12; // inches calculation

cout <<"Giant Hockey player height in feet and inches is "<< feet << " Feet " <<inches<<" inchese"<<endl; // print feet and inches

}

Output:

Add a comment
Know the answer?
Add Answer to:
Write a program that will compute a Giant Hockey player height from (90) inches into feet...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Python Programming 4th Edition: Write a program that asks the user for the number of feet....

    Python Programming 4th Edition: Write a program that asks the user for the number of feet. The program converts those feet to inches by using the formula ’12 * feet’. Hint: Define main () program Get the number of feet from the user Define variables Call a function feet_to_inches(feet) The function receives the number of feet and returns the number of inches in that many feet. The output should look like as follows: Enter the number of feet: If the...

  • A successful basketball player has a height of 6 feet 7 inches, or 201 cm. Based...

    A successful basketball player has a height of 6 feet 7 inches, or 201 cm. Based on statistics from a data set, his height converts to the z score of 3.74. How many standard deviations is his height above the mean? The player's height is standard deviation(s) above the mean. (Round to two decimal places as needed.)

  • successful basketball player has a height of 6 feet 22 ​inches, or 188188 cm. Based on...

    successful basketball player has a height of 6 feet 22 ​inches, or 188188 cm. Based on statistics from a data​ set, his height converts to the z score of 1.951.95. How many standard deviations is his height above the​ mean? The​ player's height is nothing standard​ deviation(s) above the mean. ​(Round to two decimal places as​ needed.)

  • 3.3.1 Question Help A successful basketball player has a height of 6 feet 10 inches, or...

    3.3.1 Question Help A successful basketball player has a height of 6 feet 10 inches, or 208 cm. Based on statistics from a data set, his height converts to the z score of 4 81 How many standard deviations is his height above the mean? The player's height is standard deviation(s) above the mean (Round to two decimal places as needed)

  • use at least two functions in your program. . Write a program that calculates weekly payment....

    use at least two functions in your program. . Write a program that calculates weekly payment. The program will ask the user full name, ID number (make one up), and hours worked. An hourly worker’s gross pay is basically his/her work hours that week multiplied by his/her regular hourly pay rate. However, after the first 40 work hours of the week, each additional work hour is paid at an overtime rate that is 1.5 times of the regular hourly rate....

  • Design a program(Creating a RAPTOR flowchart) that will read a file of employee records containing employee...

    Design a program(Creating a RAPTOR flowchart) that will read a file of employee records containing employee number, employee name, hourly pay rate, regular hours worked and overtime hours worked. The company pays its employees weekly, according to the following rules: regular pay = regular hours worked × hourly rate of pay overtime pay = overtime hours worked × hourly rate of pay × 1.5 total pay = regular pay + overtime pay Your program is to read the input data...

  • Write a program that prompts the user to enter a length in feet and inches and...

    Write a program that prompts the user to enter a length in feet and inches and outputs the equivalent length in centimeters. If the user enters a negative number or a nondigit number, throw and handle an appropriate exception and prompt the user to enter another set of numbers. Using Python

  • Distance Walked Write a program to calculate how many mile, feet, and inches a person walks...

    Distance Walked Write a program to calculate how many mile, feet, and inches a person walks a day, given the stride length in inches (the stride length is measured from heel to heel and determines how far walk with each step], the number of steps per minute, and the minutes that person walks a day. Note that 1 mile is 5280 feet and 1 feet is 12 inches. In your program, there should be the follo constants: final Int FEET_PER_MILE...

  • Write a C++ program to compute the total volume of N cones, where N is a...

    Write a C++ program to compute the total volume of N cones, where N is a number entered by the user. Repeat the request for N until the user enters a positive number. For each cone, ask for the radius and height, compute the volume, and add that volume to the total. Each time you ask the user to enter either the height or the radius, if the user does not enter a positive number, display an error message and...

  • You are to write a program that will process employees and their pay. For each employee...

    You are to write a program that will process employees and their pay. For each employee the program will read in an employee’s name and hourly pay rate. It should also read in the number of hours worked each day for 5 days and calculate his or her total number of hours worked. You must read the hours using a loop. The program should output the employee’s name, gross pay, total withholding amount and net pay. Withholding is made up...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT