Monday, October 22, 2012

Programming Assignment #1

1. ) Write a program that print the output like this using asterisk.

Sample Output:
use asterisk to write this

             I LOVE YOU


 2.) write a program the ask the user to input there information and the output is like this.
      
Enter your name: _____________
Enter your Address: ____________
Enter your Age: ___________
Enter your birthdate: __________
Enter your birthplace: ___________
Enter your Position:
Hobbies:
          1. _________
          2. _________
          3. _________

sample output is:
Name: Jaypee Cezar
Address: Makaty City
Age: 25
Birthdate : July 28, 1987
birthplace: Salvacion Ocampo, Camarines Sur
Position: IT Manager

Hobbies:
        1. watching movies
        2. playing badminton
        3. sleeping hehehe...

3.) Create a program that compute your net income or take home pay.
   
  Enter your name: _______________
 Enter your Position: ____________
 Rate Per Day : _________
 No. of Days: __________
Gross Income: _________

Deduction:
this is computation not inputing the numbers. it automatically show the result or computation
   SSS : _____________    computation: get  2% from the salary to get SSS
   PAG-IBIG: _____________ computation: get 2% from the salary to get PAG-IBIG
  Philhealth: ______________ computation: get 4% from the salary to get Philhealth
 TAX: ________________ computation : get 10% from the salary to get tax

Sample output:
Name: Jaypee Cezar
Position: IT Manager
Rate Per Day : 2727
No. of Days : 22
Gross Income: 60000

Deduction :
SSS: ____
PAGIBIG:___
PHILHEALTH: ____
TAX: _____
Total Deduction: ____


NET INCOME: ______


in the deduction please compute in the programs.

1 comment:

  1. If you are fed up of working in small offices and living in similar houses then Supertech Oxford Square Greater Noida West is the venture you should invest in

    ReplyDelete