hi all,ıf you want to send an email about this question ,you have to use this email (bekoteki...@gmail.com)
Assume that a string is constructed only by numbers separated by spaces. For example: “1 2 3 4 5” Numbers are 1, 2, 3, 4 and 5 “10 19 3 200 14” Numbers are 10, 19, 3, 200 and 14 “1 0 90 200 8 88 29 320” Numbers are 1, 0, 90, 200, 8, 88, 29 and 320 In such a string a)Write a function that takes a string as a parameter and finds the sum of the maximum and the minimum number in this string. For repetition, your function should include for loop type. Input: “1 2 3 4 5” Input: “10 19 3 200 14” Input: “1 0 90 200 8 88 29 320” Output: 1 + 5 = 6 Output: 3 + 200 = 203 Output: 0 + 320 = 320 b)Write a function that finds the number of 3-digit numbers in the string. For repetition, your function should include for loop type. Input: “100 19 3 200 14” Output: There are 2 3-digit numbers. Input: “1 0 90 200 8 880 29 320” Output: There are 3 3-digit numbers. IMPORTANT: USING “LISTS” ARE NOT ALLOWED IN THE FIRST QUESTION. 2.Assume that by December 7, 2015, there are only 4 “Introduction to Algorithms” (written by Cormen et. al.) books left in a bookstore. 8 customers are planning to go to this bookstore on December 7, 2015 to buy this book. Customers do not know the number of books left. The arrival times of the customers are different from each other. Write a Racket program that takes the arrival times of the customers and finds the first 4 customers who arrive the bookstore and succeed in buying the book. The arrival times of the customer should be input with “hh:mm” format (see examples below). Each arrival time is a string and all the arrival times should be kept in a list. Compare the the arrival times of the customers by converting the input time to minutes. IMPORTANT: “LISTS” SHOULD BE USED to keep the arrival times of the customers. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.