FAQ |
Calendar |
![]() |
|
Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman. |
![]() |
|
Thread Tools |
#1
|
|||
|
|||
![]()
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. ![]() Terkait:
|
![]() |
|
|