Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Darkc0der Darkc0der is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 598
Rep Power: 14
Darkc0der mempunyai hidup yang Normal
Default 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.





Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 11:09 PM.


no new posts