Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago