Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C# write the method CalculateScore o-clRP:Baic Programming 2: Working with Parameter Types Parameterized Constructor-Trainee (stringl 1, float D The constructor should initialize the member

In C# write the method CalculateScore
image text in transcribed
image text in transcribed
o-clRP:Baic Programming 2: Working with Parameter Types Parameterized Constructor-Trainee (stringl 1, float D The constructor should initialize the member variables TocusArea' and 'marks' with appropriate values CalculateScorefout float percentage,out char grade.out string message Jbool isRetest false) method . This method returns the total score and assigns the values of different parameters as per the rules mentioned . Score should be calculated as a sum of all focus area marks. If the value of isRetest parameter is true, thern a penalty of 10% should be applied on the total score For calculating the percentage, the maximum marks of each focus area should be considered as 100 . The value of the out parameters 'grade' and 'message' should be determined as per the rules mentioned Percentage -85 and -0 and

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions