Kassem Mustafa Bagher 0713600_2

Kassem Mustafa - "%d"&number_emp while(count_emp<number_emp printf"Hours>" scanf"%lf"&hours

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Kassem Mustafa Bagher 0713600 #include <stdio.h> int main( void ) { double total_pay = 0.0 , hours , rate , pay; int count_emp = 0 , number_emp; system( "title Kasem Mustafa Bagher - 0713600" ); printf( "*--------------------------------*\n" ); printf( "| Kasem Mustafa Bagher - 0713600 |\n" ); printf( "*--------------------------------*\n\n" ); printf( "Enter Number Of Employees> " ); scanf(
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "%d" ,&number_emp); while (count_emp<number_emp) { printf( "Hours> " ); scanf( "%lf" ,&hours); printf( "Rate> " ); scanf( "%lf" ,&rate); pay = hours * rate; printf( "Pay Is $%6.2f\n\n\a" ,pay); total_pay += pay; count_emp++; } printf( "--- All Employees Processed ---\n\n" ); printf( ">> Total Payrol Is $%8.2f <<\n\n\a" ,total_pay); }...
View Full Document

This note was uploaded on 01/15/2011 for the course FCIT 202 taught by Professor Danial during the Spring '07 term at King Abdulaziz University.

Ask a homework question - tutors are online