A phone call cost 10 cents per minute. Write a program that generates two random numbers for hours and minutes and calculate the cost of the call. Look at exercise 12.6page 224 that shows how to create a random number.(Note: there is no input from the user).
Button Make a call
When this button is clicked, two random numbers are generated. A call cannot be more than 5 hours long. The generated hours and minutes are displayed on labels. Calculate the cost of the call in minutes and display it on a label.
The use of correct types, formatting and constants will earn you marks.
Answer to : Question 13415