main.c Custom Input Output Tests Executions 10. Lucky Customer by Jay Vince Serato CE Run Tests We have a special promo here in our convenience store for our loyal customers! Test Cases If you have...


Lucky Customer


Code in C Language


main.c<br>Custom Input<br>Output<br>Tests<br>Executions<br>10. Lucky Customer<br>by Jay Vince Serato<br>CE Run Tests<br>We have a special promo here in our convenience store for<br>our loyal customers!<br>Test Cases<br>If you have visited our store for a specified number of<br>times, you get yourself a prize!<br>O Test Casel<br>Given a set of numbers representing the customers visiting<br>Input<br>the store and a number n, print all the customer numbers<br>60<br>that has visited the store n times. If there isn't any, print<br>15<br>

Extracted text: main.c Custom Input Output Tests Executions 10. Lucky Customer by Jay Vince Serato CE Run Tests We have a special promo here in our convenience store for our loyal customers! Test Cases If you have visited our store for a specified number of times, you get yourself a prize! O Test Casel Given a set of numbers representing the customers visiting Input the store and a number n, print all the customer numbers 60 that has visited the store n times. If there isn't any, print 15 "No lucky customer" instead. 1 15 15 Input 3 The first number represents the count of customers visiting the store. Your No Output The succeeding numbers are the customers of the store Output represented by numbers 0 to 99. The last number is the lucky number n. Expected 15 Output 5 60 15 1 O Test Case 2 15 3 O Test Case 3 Output O Test Case 4 Hidden The customers that have visited the store n times. If there's more than one customer, print them numerically in new lines. If there isn't any, print "No lucky customer". O Test Case 5 Hidden 15

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here