The following question is related to C programming (struct and function) Task-1: Suppose you and your friends go to have breakfast in a restaurant. Each of you orders Paratha, Vegetable, and Mineral Water. Treat each of the ordered items as structures and each of the structures will have two properties which are: quantity and unit price. Each property of the structure will be taken as input from the user. After taking all the input
The following question is related to C
Task-1:
Suppose you and your friends go to have breakfast in a restaurant. Each of you orders Paratha, Vegetable, and Mineral Water. Treat each of the ordered items as structures and each of the structures will have two properties which are: quantity and unit price. Each property of the structure will be taken as input from the user. After taking all the inputs calculate what is the total bill and also, take input from the user on how many people are there in total. Lastly calculate how much each person will have to pay and print it (Note: This value will be a float).
Sample Input:
Quantity Of Paratha: 25
Unit Price: 10
Quantity Of Vegetables: 5
Unit Price: 20
Quantity Of Mineral Water: 20
Unit Price: 20
Number of People: 6
Sample Output:
Individual people will pay: 125.00 tk
Step by step
Solved in 2 steps with 2 images