Examlex

Solved

Rewrite the Following Set of If Statements Using a Nested

question 24

Essay

Rewrite the following set of if statements using a nested if-else structure.
if (score >= 90) grade = 'A';
if (score >= 80 && score < 90) grade = 'B';
if (score >= 70 && score < 80) grade = 'C';
if (score >= 60 && score < 70) grade = 'D';
if (score < 60) grade = 'F';


Definitions:

Carrying Amount

The net value of an asset or liability according to a company's balance sheet, also known as book value.

Cash Dividends

Distributions of a company's earnings to its shareholders in the form of cash.

Related Questions