Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer both questions (a) and (b) below: Considering grade letter calculator to determine the letter grade based on numerical mark. (a) Fill in the blanks

image text in transcribed
Answer both questions (a) and (b) below: Considering grade letter calculator to determine the letter grade based on numerical mark. (a) Fill in the blanks (--- 8 blanks) in the C# code below. (4 marks-0.5 marks each blank) double mark = Convert. ----B1- (lblResult.Text); string letterscade if (mark > 85) { letterGrade - "High Distinction"; } else if (mark > 75) { B2-= "Distinction"; } else if (---B3- > 60) { letterGrade "Credit"; } else -B4-- (mark > 50) { letterGcade -B5- } B6- { letterGrade - "Fail"; } Label1. -B7- B8-; (b) What is the purpose of using C# decision making statements (if/else) (1 mark)? Give an example of using if-else statement (1 mark)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions