Simple Questions 1-Computer Programming-Lab Assignment, Exercises of Computer Programming

Kusum Megana assigned this task in lab of Introduction to Computer Programming course at Biju Patnaik University of Technology, Rourkela. It includes: Employee, Private, Company, Computer, Program, Requirements, Functions, Total, Working, Hours, Prompt

Typology: Exercises

2011/2012

Uploaded on 07/13/2012

ekbal
ekbal 🇮🇳

3.3

(4)

46 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LAB TASK
Mr. X is an employee in a private company “Delta” where he is a part
time employee; there is a rule in company they pay their employees
according to working hours throughout the week per hour they pay 300
Rs., Mr. X wants to make a computer program from you which will take
the hours he worked through out week days and print the total earned
amount through out the week. Mainly some requirements are there from
the program that you will build as follows:
Program should have three functions 1st functions will just display
the information about that company (you can suppose any) 2nd
function will take the hours worked by the employee of all week
days e.g. Saturday, Sunday, Monday etc. one by one and will
calculate total working hours 3rd function will take these total
working hours from 2nd function and will calculate the total
earned amount (total working hours*300)
Program should first prompt the user to enter choice if user selects
„h/H‟ program will calculate earned amount other wise program
should display just the information of the company
docsity.com

Partial preview of the text

Download Simple Questions 1-Computer Programming-Lab Assignment and more Exercises Computer Programming in PDF only on Docsity!

LAB TASK

Mr. X is an employee in a private company “Delta” where he is a part time employee; there is a rule in company they pay their employees according to working hours throughout the week per hour they pay 300 Rs., Mr. X wants to make a computer program from you which will take the hours he worked through out week days and print the total earned amount through out the week. Mainly some requirements are there from the program that you will build as follows:  Program should have three functions 1st^ functions will just display the information about that company ( you can suppose any ) 2nd function will take the hours worked by the employee of all week days e.g. Saturday, Sunday, Monday etc. one by one and will calculate total working hours 3rd^ function will take these total working hours from 2nd^ function and will calculate the total earned amount ( total working hours*300)  Program should first prompt the user to enter choice if user selects „h/H‟ program will calculate earned amount other wise program should display just the information of the company

docsity.com