Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 180 Introduction to Computer Science Lab Practical 2 Problem description You are to write a program, called pay_calculator.c that will determine your The following

image text in transcribed
image text in transcribed
CSCI 180 Introduction to Computer Science Lab Practical 2 Problem description You are to write a program, called pay_calculator.c that will determine your The following base pay, commission and bonus are For weekly sales at or below 52,000 per week, your base salary is $300, and you evaluated on the following intervals bonus. For weekly sales above $2000 and up to and including $20,000, your base salary is $350, and you get 1.5% commission. As long as you have not work 3 or more years for the company, you get an incentive bonus of $150. For weekly sales over $20,000 your base salary is S 2.500, and you get 35% commission Your bonus is dependent on your sales code, either 'd' for domestic or Y for imported. If code is 'd, your bonus ls 900lf the code is T, your bonus is SS50, The flow chart and additional boundary value test cases are shown on the next page of this document. When your program runs it should look exactly like the following Enter you week's sales: 19438 fetar nuaber st fvit vears with the conpany Enter youweek's sates: 1798 4.5 years, enter 4 Your week's sates:1798.e0 Your veek's salarys 300.0 Your week's sales:&19438. Your week's salary:358. Your veek's bonusi Your week's connissionss Your week's gross pay; S .00 300 Your week's commission: 291.57 Your veek's gross pay: 791.57 Progran is terminat ing Progran is terminating or Enter you week's sates: 38898 Enter you sales code d' for donestic, for isported:d Your week's sates: 58098.00 Your week's salary: 25e0.00 Your week's bonus: s980.0 Your week's commission: 2033.43 Your week's gross pay: 5433.43 Progran is terminating On the last page is a grading criteria that will let you know how you will be evaluated on this problem. Use this to make sure you have included everything that will be evaluated. If you complete the assignment before the end of the period and have the instructor sign off on your program, you will earn 10 bonus points. Iif you get your program evaluated, DO NOT submit your code

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

Students also viewed these Databases questions

Question

Azure Analytics is a suite made up of which three tools?

Answered: 1 week ago