Q1. Corporate university wants to maintain the information about participants scores in various modules. Write a program to store the details of the marks scored in various modules. Task 1: Create a library project and define a class called Participant. Define the private members and public properties as follows: Empld, Name, Company Name, FoundationMarks, WebBasicMarks, DotNetMarks, Total Marks, ObtainedMarks, Percentage Initialise the Total Marks to 300. ObtainedMarks and Percentage are calculated fields. Task 2: Add 3 constructors, one Default, one parameterised to initialize the members and one static constructor to initialise the company Name to “Corporate Unniversity" Task 3: Add the following functions to the class: a. To calculate Total Marks. b. To calculate the percentage. c. To return the percentage Task 4: Create a console application to accept the data about participants, and create the object. The console application should call the appropriate functions to calculate the Total Marks and Percentage. And then Display the percentage. Task 5: Modify the class created above to valide the marks. Write the validators in properties. The valid range is 0 to 100. If any invalid value is passed, then assign 0 to that module. Later, you can create Exception classes and raise the exception in case of Invalid data.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

USE ONLY C # ( C SHARP ) AND CODE MUST GET COMPILED IN VISUAL STUDIO.

 

----------------------------------------------------------------------------------------------

QUESTION PROVIDED IN ATTACH IMAGE .

Q1. Corporate university wants to maintain the information about participants scores in various modules.
Write a program to store the details of the marks scored in various modules.
Task 1: Create a library project and define a class called Participant. Define the private members and public
properties as follows:
Empld, Name, Company Name, FoundationMarks, WebBasicMarks, DotNetMarks, Total Marks,
ObtainedMarks, Percentage
Initialise the Total Marks to 300. ObtainedMarks and Percentage are calculated fields.
Task 2: Add 3 constructors, one Default, one parameterised to initialize the members and one static
constructor to initialise the company Name to “Corporate Unniversity"
Task 3: Add the following functions to the class:
a. To calculate Total Marks.
b. To calculate the percentage.
c. To return the percentage
Task 4: Create a console application to accept the data about participants, and create the object. The
console application should call the appropriate functions to calculate the Total Marks and Percentage. And
then Display the percentage.
Task 5: Modify the class created above to valide the marks. Write the validators in properties. The valid
range is 0 to 100. If any invalid value is passed, then assign 0 to that module. Later, you can create Exception
classes and raise the exception in case of Invalid data.
Transcribed Image Text:Q1. Corporate university wants to maintain the information about participants scores in various modules. Write a program to store the details of the marks scored in various modules. Task 1: Create a library project and define a class called Participant. Define the private members and public properties as follows: Empld, Name, Company Name, FoundationMarks, WebBasicMarks, DotNetMarks, Total Marks, ObtainedMarks, Percentage Initialise the Total Marks to 300. ObtainedMarks and Percentage are calculated fields. Task 2: Add 3 constructors, one Default, one parameterised to initialize the members and one static constructor to initialise the company Name to “Corporate Unniversity" Task 3: Add the following functions to the class: a. To calculate Total Marks. b. To calculate the percentage. c. To return the percentage Task 4: Create a console application to accept the data about participants, and create the object. The console application should call the appropriate functions to calculate the Total Marks and Percentage. And then Display the percentage. Task 5: Modify the class created above to valide the marks. Write the validators in properties. The valid range is 0 to 100. If any invalid value is passed, then assign 0 to that module. Later, you can create Exception classes and raise the exception in case of Invalid data.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Development strategies
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education