Your program must use the coldfusion built-in function


Design a program that uses a CFSwitch and CFCase structure.

Your program must use the ColdFusion built-in function RandRange() to generate a random number between the ranges of 1 and 4, and assign this value to a variable called score. ##Your program must now display a separate message depending on the value of this score as generated by the RandRange function. If the value is 4, display the message "Your grade is an A" If the value is 3, display the message "Your grade is B" If the value is 2, display the message "Your grade is C" If the value is 1, display the message "Your grade is D" Hint: The RandRange() function returns an integer between two specified numbers.

The syntax to use the RandRange function is RandRange(num1, num2). Example - RandRange (1,4) will give random values between 1 and 4

Solution Preview :

Prepared by a verified Expert
Programming Languages: Your program must use the coldfusion built-in function
Reference No:- TGS01528571

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)