Database and Display-Computer Programming Basics-Lab Assignment, Exercises of Computer Engineering and Programming

This is lab assignment for Computer Programming course by Anushka Banton at Biju Patnaik University of Technology, Rourkela. It includes: Program, Functions, Display, Information, Calculate, Working, Hours, Amount, Prompt, Choice

Typology: Exercises

2011/2012

Uploaded on 07/12/2012

vishv
vishv 🇮🇳

4.4

(8)

32 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 Database and Display-Computer Programming Basics-Lab Assignment and more Exercises Computer Engineering and 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 ) 2 nd 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