Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   bantuin gan, pliss.. (https://forum.ceriwis.com/showthread.php?t=573208)

Darkc0der 20th November 2011 01:24 AM

bantuin gan, pliss..
 

master master programmer,,need help dong nih. bantuin coding C dong,,ini nih clue nya gan,,

"You are required to create customer�s bill for Nur Kasih Carpet Sdn. Bhd. based on

the following information:



� the length and the width of the carpet in feet

� the carpet price per square foot

� the percent of discount for each customer



The labor cost is fixed at RM0.50 per square feet. The labor cost must be defined as a

constant. However, as Nur Kasih is celebrating their 10th anniversary, the percent of discount will be randomly generated by the program from 25% until 45%.



main() should display the salam greeting and capture some input data. The input data

consists of two integers representing the length and width of the room to be carpeted

and a real number representing the unit price of the carpet. The following are the user-defined functions that MUST be used in the program:



� fnDisplayMeasurement( )

Accepts length, width and area from main( ). Then, it will print the carpet

measurements.



� fnCalculatePrice( )

Accepts area and unit price of carpet from main( ). Then, calculates carpet

cost, labor cost, and installed price. The installed price is the total cost of the

carpet and the labor. Discount calculations are based on the rand( ) and the

total price. After that, fnCalculatePrice( ) calls fnDisplayCharges().



� fnDisplayCharges( )

Prints the charges details.



TASK: You are required to write the complete program"



nah ini sample outputnya gan,,need help plis.

http://u.kaskus.us/2/lgz3lylf.jpg

</div>


All times are GMT +7. The time now is 02:13 PM.