Write a C program to calculate the salary of each employee
in your company. You
need to input the hours worked and the hourly rate. The
company pays 1.5 times
the hourly rate for all hours worked in excess of 48 hours.
Use the formulas below
to calculate the salary:
if employee worked less than 48 hours
salary = hours * rate;
if employee worked more than 48 hours
salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5;
You are required to use a loop to produce the sample output
as given below.

Answer Posted / rakesh patil

write a c++ program to calculate employee salary using
structure

Is This Answer Correct ?    28 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the compiler and the preprocessor?

720


write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters

4939


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2161


What do you mean by function overriding & function overloading in c++?

687


How many types of scopes are there in c++?

663






What is the real purpose of class – to export data?

718


Explain terminate() and unexpected() function?

700


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

653


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

713


What is the best c c++ compiler for windows?

649


Explain linked list using c++ with an example?

718


Is swift faster than c++?

648


Which is the best c++ compiler for beginners?

651


Write about a nested class and mention its use?

721


Who discovered c++?

656