Objective(s) This assessment item relates to the unit learning outcomes as in the unit descriptors. This checks your understanding about basic constructs of C# programming. Details & Problems In this...

Objective(s) This assessment item relates to the unit learning outcomes as in the unit descriptors. This checks your understanding about basic constructs of C# programming. Details & Problems In this assignment, you are required to develop TWO C# Console Programs to demonstrate your ability to use C# constructs including input/output via command line, C# primitive and built-in C# types, C# defined Objects, selection and looping statements, methods and various other C# commands. Your program must produce the correct results. Problem 1 (10 Marks) Write an application that inputs one number consisting of FIVE digits from the user, separates the number into its individual digits and prints the digit separated from one another by three spaces each. For example, if the user types in the number 42339, the program should print “4 2 3 3 9”. Assume that the use enters correct number of units. Problem 2 (40 Marks) You are required to develop a C# application Named PayCalculator.cs that will determine the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40 hours. You are given a list of the three employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your application should input this information for each employee and should determine and display the employee’s gross pay. Use the Console class’s ReadLine method to input the data. Victorian Institute of Technology Pty Ltd Semester 2– 2017 Software Development Fundamentals 3 a) Formulate the algorithm using pseudocode and top-down, stepwise refinement. Write down the top step, first step and second step of pseudocode. b) Write a C# application. Include the C# program code in your assignment submission. c) Test, debug and execute the C# application with 3 sets of employee data as given below to verify if your program calculates the pay correctly for each employee. Include the output in your assignment submission. OUTPUT Enter hourly rate: 7.25 Enter hours worked: 50 Pay for employee is $398.75 Enter hourly rate: 8.50 Enter hours worked: 40 Pay for employee is $340.00 Enter hourly rate: 10.00 Enter hours worked: 30 Pay for employee is $300.00 Enter hourly rate: 15 Enter hours worked: 0 Pay for employee is $0.00 Enter hourly rate: 6.50 Enter hours worked: 40 Pay for employee is $260.00 Enter hourly rate: 300 Enter hours worked: 60 Pay for employee is $21,000.00 Enter hourly rate: 18 Enter hours worked: 20 Pay for employee is $360.00 Victorian Institute of Technology Pty Ltd Semester 2– 2017 Software Development Fundamentals 4 Enter hourly rate: 12 Enter hours worked: 30 Pay for employee is $360.00 Enter hourly rate: 9 Enter hours worked: 40 Pay for employee is $360.00 Enter hourly rate: as Error : You should enter a number What to Submit. You should submit the source codes and a report. Source codes should be names as mentioned above. ➢ Following source codes you should publish. • Problem 1 – Five.cs • Problem 2 - PayCalculator.cs ➢ The report should contain following headings for each problem. • Introduction for both the programs • Flowcharts to depict each application logic • The test cases • Screenshots for sample inputs, outputs and errors.
May 21, 2020
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here