Define the following modules below the main function:
a function to determine the ticket price based on the received seating section code.(7)
a void function to accumulate total amounts made per sitting section(5)
a void function that will generate 5 numbers to represent winners, ensure that the
function does not duplicate numbers and store the winning numbers in an array called
luckyCust. (
//Void (NonValue-returning) function definition syntax: including header and body
void functionName(dataType& variable, dataType& variable) //function header
{
//function body
statements...
//void (nonvalue-returning) function can still use return statement
//but, does not return any values...
return;
}
Comments
Leave a comment