Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

salary Salary Lab Write a C program, salary.c, which performs the following operations (be sure to give all numeric output to two decimal places) Assigns

image text in transcribed

salary

image text in transcribed

Salary Lab Write a C program, salary.c, which performs the following operations (be sure to give all numeric output to two decimal places) Assigns a value (38.5) representing the number of hours worked Assigns a value (18.50) representing the hourly payrate of an employee Computes the wages earned by the employee (wages = hours payrale) Note: Do not perform your own calculations and have your program output the results. All of the calculations for the lab should be performed within your program. Use the following guidelines to develop your program: Declare your variables with appropriate data types. Assign values to your variables. Perform your calculations. Generate appropriate output. Points to Remember: Make sure you are creating a C program and not a C++ program. The .c suffix to your source code will invoke the C compiler while the .cpp suffix will invoke the C++ compiler. As this is a class in C and not C++, please make sure your source code uses the .c suffix. You should not be using any global variables in your program. A global variable is a variable declared outside of main(). Output from your program should be sent to the terminal window (your screen) as well as the requested csis.txt output file. Be sure to read the document on Capturing Program Output. Your full name must appear as a comment in the source file that contains main(). Be sure to include the esis.txt output file in your zip archive. Page 70 Focus on Fundamentals of Programming with C Temperature Lab Write a C program, temp.c, which performs the following operations Assigns a value (72) representing the temperature in degrees Farenbe S Farenheit. nd then dividing Converts the temperature to degrees Celsius. Converting from Farenheit Celsius requires subtracting 32 from the Farenheit temperature and then di the difference by 1.8. Be sure to give all numeric output to one decimal p Converts the Celsius temperature to degrees Kelvin. Converting from Celsi Kelvin requires adding 273 to the Celsius temperature. Be sure to give all numeric output to one decimal place. Note: Do not perform your own calculations and have your program output the results. All of the calculations for the lab should be performed within your program. Use the following guidelines to develop your program: Declare your variables with appropriate data types. Assign values to your variables. Perform your calculations. Generate appropriate output. Points to Remember: Make sure you are creating a C program and not a C++ program. The .csum to your source code will invoke the C compiler while the .cpp suffix will invoke the C++ compiler. As this is a class in C and not C++, please make sure your source code uses the .c suffix. You should not be using any global variables your program. A global variable is a variable declared outside of main(). Output from your program should be sent to the terminal window (your scre as well as the requested csis.txt output file. Be sure to read the docume Capturing Program Output. Your full name must appear as a comment source file that contains main(). Be sure to include the csis.txt outpu your zip archive the document on as a comment in the 8.txt output file in Focus on Fundamentals of Programming with C Page 71

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

How does technology affect the structure of an organization?

Answered: 1 week ago

Question

What is the difference between r2 and adjusted r2?

Answered: 1 week ago