Question
If an employee get paid every week and earns $1250 each pay period, in a year, the employee will get paid 52 times. Write a
If an employee get paid every week and earns $1250 each pay period, in a year, the employee will get paid 52 times. Write a program that defines the following variables: salary This variable will hold the amount of pay the employee earns each week. Initialize the variable with 1250.00. weeks This variable will hold the number of pay periods in a year. Initialize the variable with 52. totalPay This variable will hold the employee's total annual pay, which will be calculated. The program should calculate the employee's total annual pay by multiplying the employee's salary by the number of weeks in a year and store the result in the totalPay variable Display the total pay amount on the screen. C++ programmiing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started