Question: A store will give a 20% discount to 1 randomly selected customer from customers who shop for 1000 TL or more. Accordingly, write a C

A store will give a 20% discount to 1 randomly selected customer from customers who shop for 1000 TL or more. Accordingly, write a C program that reads the amount of each of the 10 customers who come to the store from the keyboard and displays the customer who earns a discount and the amount to be paid. Random selection must be done in a user-defined function named musteriSec. Customers entering the lottery and their shopping amounts should also be written on the screen in the function. The customer should be returned to the main function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!