Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CODE IN C RUBRIC Assignment #2 Instructions: Through this programming assignment, the students will learn to do the following: 1. Learn to work with command

CODE IN C

image text in transcribedRUBRIC

image text in transcribedimage text in transcribedimage text in transcribed

Assignment \#2 Instructions: Through this programming assignment, the students will learn to do the following: 1. Learn to work with command line options and arguments 2. Gain more experience with Makefiles 3. Gain more experience with Unix Usage: salary [-p] -h hours [-b bonus] hourlyrate In this assignment, you are asked to do a salary calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program. You will need a few pieces of information. The hourly rate for the employee and the number of hours worked. Optionally, you can give a bonus and or a percentage increase (if it was a holiday week or something like that.) To figure the salary follow these steps: 1. Multiply the hourly rate by the number of hours. 2. If there is a precentage increase then multiply the previous result by 10%, which is done by multiplying by 0.10. 3. If there is a bonus then add it to the previous result. p is optional so there may or may not be the percentage increase. h is required and indicates the number of hours worked as an integer. It cannot be more than 80. - b is optional and would give an integer amount for a bonus. It should not be more than 50% of the calculated salary. You will print out the resulting payment amount as follows. Use rounding to keep money to two decimals and percentages to three decimals. "The salary for this period is \$\#\#,\#\#\#.\#\#" There should be no other output at all to the screen. Please submit your work through Canvas as one zip file called FirstnameLastnameA2.zip. Follow the instructions below carefully (to avoid unnecessary loss of grade). Include your source code and your Makefile in the zip file. I should be able to create the executable by typing 'make'. The Makefile should also contain a 'clean' target for cleaning up the directory (removing all object files). Make sure you don't include intermediate files: .0, executables, , etc., in your submission. (There'll be a penalty for including unnecessary intermediate files or any folders). Please make sure you submit homework before the deadline. There will be a late penalty as per the syllabus. If the program does not compile and do something useful when it runs it will not earn any credit. Assignment 2 Rubric Spring 2023 (1)

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions