Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please show all code if possible this is in C++ Part 1: Write a program that takes a persons name, Job Title, and salary from

please show all code if possible
image text in transcribed
this is in C++
Part 1: Write a program that takes a persons name, Job Title, and salary from the user. Give them a message on at least 2 different lines using the endl to welcome them to work with their job title. Then, give them a 3% raise. A line or two below that give another message over at least two different lines with the escape character telling the person with their name and job title that they have been working for a year and their new salary. You can calculate their new salary and store it in a variable or do it as you print it for the user, either way is fine for the first part. Part 2: Write a program that takes four different numbers one at a time from the user. Add them up and tell the user what the total is, make sure the total variable is a float or a double for the next operation. Then find the real average by dividing this number by 4 and tell the user that. Then find the whole number average by dividing by 4 and putting the answer into an integer (or cast the average as an integer when you print it for the user if you know how to do that already). Finally, show the user what the remainder would be from this whole number average by using the total and the Modulus operator with 4 a final time and show this value to the user

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

Define Administration and Management

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago