Question: (4 points) Write a program that reads the following information and prints a payroll statement: Employees name (LastName,FirstName) Number of hours worked in a week
(4 points) Write a program that reads the following information and prints a payroll statement:
Employees name (LastName,FirstName)
Number of hours worked in a week (e.g., 10)
Hourly pay rate (e.g., 9.75)
Federal tax withholding rate (e.g., 0.1)
State tax withholding rate (e.g., 0.03)
Format your output using printf statements. Pay attention to display reversed name (i.e., firstName, lastName in the output.
A sample run is shown below:
(3 points) Assume that a TN vehicle plate number consists of an uppercase letter, followed by two digits, followed by -, followed by two digits, and another uppercase letter. A sample plate number looks like: A12-34B. Write a program to randomly generate and display a TN plate number.
Here is a sample run of the program:
(3 points) Using Printf statement you learned in this chapter, write an application that calculates the squares and cubes of the numbers from 1 to 10 and print the resulting values in table format, as shown below.
(Optional - Extra Credit: 3 points) ISBN-10 is a standard for identifying books. It uses 10 digits d1d2d3d4d5d6d7d8d9d10. The last digit. , is a checksum, which is calculated from the other nine digits using the following formula:
(d1*1 + d2*2 + d3*3 + d4*4 + d5*5 + d6*6 + d7*7 + d8*8 + d9*9) % 11
If the checksum is 10, the last digit is denoted as X according to the ISBN-10 convention.
Write a program that prompts the user to enter the first 9 digits as a string and displays the 10-digit ISBN (including leading zeros). Your program should read the input as a string.
Here are some sample runs:
2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
