Home

About

Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network
FAQHELPSITE MAPCONTACT US


  Advanced Search  

 
March 23, 2008 ICS102: Prob. solving 2 1 Problem Solving 2
 

Summary: March 23, 2008 ICS102: Prob. solving 2 1
Problem Solving 2
March 23, 2008 ICS102: Prob. solving 2 2
- Q1: Multi-way if statement
Write a multi-way if-else statement that evaluates a
student academic performance on the following criteria:
A GPA 3.0, output Honor
A GPA 2.0, output Good Standing
A GPA < 2.0 and 1.5, output Poor
A GPA < 1.5, output Very Poor
March 23, 2008 ICS102: Prob. solving 2 3
- Q2: Salesman Commission
A salesperson is given commission on the following basis:
Write a program which reads SALES and prints the corresponding
commission.
SALES COMMISSION
Under 500 2 % of SALES
500 and under 5000 5 % of SALES
5000 and over 8 % of SALES
March 23, 2008 ICS102: Prob. solving 2 4

  

Source: Adam, Salah - Department of Information and Computer Science, King Fahd University of Petroleum and Minerals

 

Collections: Computer Technologies and Information Sciences