Create a method called check value


Discuss the below:

Create a method called check Value that will meet the following criteria:

- Initializes total both to the default initialization value.

- Get input for the starting number (assume important statement is already present)

- Set total to the input above.

- Utilize a counter controlled loop to loop 10 times.

- Increment total by 2 for each loop iteration

- Return True if total is greater than 50.

- Return False if total is less than or equal to 50.

Create a method called check Value that will meet the following criteria:

- Receives a character as an argument

- Utilizes a switch statement utilizing above character

- Prints >=90 if character is either a or A

- Prints 80-89 if character is either b or B

- Prints 70-79 if character is either c or B

- Prints 60-69 if character is either d or D.

- Prints <60 for all other characters.

- Method does not return anything

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a method called check value
Reference No:- TGS01937459

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)