New Era University College of Computer Studies Department of Information System

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 8

New Era University

College of Computer Studies


Department of Information System

IS 113L Computer Programming 1 (Laboratory)

Take Home Quiz


Switch Case Input/output

Name: ESPERANZA, JEREMIAS C.


Date Submitted: September 15, 2015

MR. JEREMIAS C. ESPERANZA


Instructor

Rating:

Take Home Quiz


Provide Screen shots of your program with generated sample input/output:
Machine Problem 1: Create program KPI that computes call center agents performance
and evaluate its grade. (30 points)
Attendance is rated 20%, Productivity is 30%, QA is 40%, PMA is 10%.
Performance rating is marked as follows.
Grade
Remarks
5 to 4.1 Exceptional
4 to 3.1 Excellent
3
Satisfactory
Lower than 3 Need Coaching
Sample Input/Output:

Enter name: Alliver


Enter attendance grade: 5.0
Enter productivity: 4
Enter QA: 4
Enter PMA: 3
Alliver your performance grade is 4.1
Excellent performance this month

Input/Output:

Machine Problem 2: Create a program VatInclusive that includes value added tax of
12% on each purchase depending if senior, student or ordinary customer. Use the
following code:
Code
1
2
3
Other codes

Remarks
Ordinary customer
Senior citizen
Student
Considered ordinary customer

Senior receives 3% vat additional; students are vat exempt (30 marks)
Use switch case solution on this problem.
Sample Input/Output:
Enter item: Hard disk
Enter unit price: 1000.0
Enter quantity: 3
Enter customer code [1=Ordinary, 2=Senior, 3=Student] : 1
Price Summary of Hard disk
Customer is Ordinary
Gross Price: 3000.0
VAT: 360.0

Input/Output:

You might also like