Knowee
Questions
Features
Study Tools

Write a code in c\ #### Mr. Raj wishes to lay decorative tiles for his rectangular study room floor. The cost of laying the tiles is Rs. C / Sq. m. Find the total cost Rs. T of laying the tiles. The contractor offers a discount of Rs. D % for the work if T is greater than or equal to Rs. M. (i.e. minimum cost value to get discount).Find the total cost after the discount if any.Note: Area of the rectangular room = length *breadthInput FormatRead the length of the room (Integer)Read the breadth of the room (Integer)Read the cost of laying the sheet per square meter (Integer)Read the minimum cost value to get a discount (Integer)Read the discount percentage (Float)Output FormatArea of the room (Integer)Total cost of the work (Float)You are eligible for discount/ You are not eligible for discountDiscount amount on the total cost (Float)Total cost to be paid (Float)Sample Input55352520007Sample OutputArea of the room 1925Total cost of the work 48125.00You are eligible for discountDiscount amount 3368.75Total cost to be paid 44756.25

Question

Write a code in c\ #### Mr. Raj wishes to lay decorative tiles for his rectangular study room floor. The cost of laying the tiles is Rs. C / Sq. m. Find the total cost Rs. T of laying the tiles. The contractor offers a discount of Rs. D % for the work if T is greater than or equal to Rs. M. (i.e. minimum cost value to get discount).Find the total cost after the discount if any.Note: Area of the rectangular room = length *breadthInput FormatRead the length of the room (Integer)Read the breadth of the room (Integer)Read the cost of laying the sheet per square meter (Integer)Read the minimum cost value to get a discount (Integer)Read the discount percentage (Float)Output FormatArea of the room (Integer)Total cost of the work (Float)You are eligible for discount/ You are not eligible for discountDiscount amount on the total cost (Float)Total cost to be paid (Float)Sample Input55352520007Sample OutputArea of the room 1925Total cost of the work 48125.00You are eligible for discountDiscount amount 3368.75Total cost to be paid 44756.25

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

No answer

Similar Questions

What will be the output of the following C code?

Suppose that in a C program snippet, followings statements are used

What will be the output of the following code?#include <stdio.h>int main() {    char str[] = "Programming";    printf("%s\n", str + 3);    return 0;}

Write a C program that prints exactly "Programming is like building a multilingual puzzle, followed by a new line.Use the function putsYou are not allowed to use printfYour program should end with the value 0

What will be the output of the following C program?#include <stdio.h>int main(){ char star[10]="HelloWorld"; printf("%c\n",star[5]); return 0;}Select one:ErroreWw

1/4

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.