Need Write Program C According Following Description Need Ask User Dimensions Carpet Assum Q37227267

Need to write a program in C according to the followingdescription:

You need to ask the user for the dimensions of the carpetassuming that it will be in the shape of rectangle ( remember thatsquare is also a rectangle with all sides of the same length.) Thecost of carpet is $20 per square units and there is a 10% discounton the price. Program needs to print the cost of carpet afterdeducting the discount.

Here are the functions that should be used in the code andshould be called from the main function-

  1. One function to ask for the length.
  2. One function to ask for width.
  3. One
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.