This is about : C# Program to find Student GPA and CGPA || Concept of ENUM in C#
And this article : C# Program to find Student GPA and CGPA || Concept of ENUM in C#
Article Csharp, Article programs,
C# Program to find Student GPA and CGPA || Concept of ENUM in C#
C# Program to find Student GPA and CGPA
Program Statement:
Create a class of student which stores characteristcs of student like studentID, studentName, studentDOB, studentRollNo, studentEmail, studentGPA of last 5 semesters and other related information of the student. (You may set some properties Boolean and some readonly)
a. Calculate the CGPA of each student using function calculateCGPA(…).
b. Student with highest CGPA will be considerd CR of the class. There should be a function which will compare the CGPA of students and will declare a student having greater CGPA as CR.
c. Program should be able to take input of 5 students from user; definitely there will be a function which will take input from the user.
d. You have to use the Setter for setting the values of the data members of the class and and Getter function for getting the values of the data members of the class. (You can use property as alternative)
e. Default value for each student GPA should be 3.0. (You have to use an array for storing GPAs of last 5 semesters. You may simply initialize the array with 3.0 in constructor).
f. All data members should be private.
g. Member functions can be public.
h. Program must be able to add two objects i.e. if we add two students then all their corresponding data members will be added one by one. (Operator Overloading).
i. Program must contain explicitly definition of copy constructor.
j. StudentID and StudentGPA of last 5 semesters must be constant or readonly.
k. Value of studentGPA of last 5 semesters must be selected from ENUM which may contain values {1.0, 2.0, 3.0, and 4.0}.
Solution:
public void Question_45()
{
int len = 0, i = 0, count = 0 , R , copy_r;
Student[] obj;
Console.Clear();
Console.WriteLine("****A Program Calculate the Student Characteristcs****\n");
Console.Write("\nEnter the Size of Student Class : ");
len = Convert.ToInt32(Console.ReadLine());
obj = new Student[len];
for (int j = 0; j < obj.Length; j++)
obj[j] = new Student();
do
{
Console.Clear();
Console.WriteLine("****A Program Calculate the Student Characteristcs****\n");
Console.WriteLine("\n\t\t1.Input Student Data");
Console.WriteLine("\t\t2.CGPA of Student");
Console.WriteLine("\t\t3.CR of Class");
Console.WriteLine("\t\t4.Copy Contructor");
Console.WriteLine("\t\t5.Operator Overload + ");
choice = Convert.ToChar(Console.ReadLine());
switch (choice)
{
case '1':
Console.Clear();
Console.Write("\nRoll No. : " + obj[i].R);
Console.Write("\n\nEnter Name : ");
obj[i].N = Convert.ToString(Console.ReadLine());
Console.Write("\nEnter Father Name : ");
obj[i].F = Convert.ToString(Console.ReadLine());
Console.Write("\nEnter Email : ");
obj[i].E = Convert.ToString(Console.ReadLine());
Console.Write("\nEnter Date of Birth : ");
obj[i].D = Convert.ToDateTime(Console.ReadLine());
Console.Write("\nEnter Smester : ");
obj[i].Sm = Convert.ToInt32(Console.ReadLine());
obj[i].Set_GPA();
i++;
count++;
break;
case '2':
if (count != 0)
{
int loc = -1;
Console.Clear();
Console.Write("\nEnter Roll No. of Student : ");
R = Convert.ToInt32(Console.ReadLine());
for (int k = 0; k < len; k++)
{
loc = obj[k].Check(obj, R);
if (loc != -1)
{
obj[loc].CGPA();
break;
}
}
if (loc == -1)
Console.WriteLine("\nInvalid Roll No.");
count++;
}
break;
case '3':
if (count != 0)
{
Console.Clear();
obj[0].CR(obj);
count++;
}
break;
case '4':
if (count != 0)
{
Console.Clear();
Console.Write("\nEnter the No. for Copy (i.e < 5/len) : ");
copy_r = Convert.ToInt32(Console.ReadLine());
Student copy = new Student(obj[copy_r-1]);
copy.Show();
count++;
}
break;
case '5':
if (count != 0)
{
Console.Clear();
Console.Write("\nEnter 2 Object No. for Adding (i.e < 5/len) : ");
Console.Write("\nEnter the Object No. for Adding : ");
R = Convert.ToInt32(Console.ReadLine());
Console.Write("\nEnter the Object No. for Adding : ");
copy_r = Convert.ToInt32(Console.ReadLine());
obj[R] = obj[R-1] + obj[copy_r-1];
obj[R].Show();
count++;
}
break;
}
Console.Write("\nIf Run Again (Y/N) ? ");
choice = Convert.ToChar(Console.ReadLine());
if (choice != 'Y' && choice != 'y')
{
Console.WriteLine("\nSee you Next Time");
Main_Fun();
break;
}
} while (true);
}
Articles C# Program to find Student GPA and CGPA || Concept of ENUM in C# finished we discussed
A few of our information about the C# Program to find Student GPA and CGPA || Concept of ENUM in C#, I hope you can exploit carefully
No've You've finished reading an article on C# Program to find Student GPA and CGPA || Concept of ENUM in C# and many articles about modern home in our blog this, please read it. and url link of this article is https://liveeconcerts.blogspot.com/2014/01/c-program-to-find-student-gpa-and-cgpa.html Hopefully discussion articles on provide more knowledge about the world of tech gadgets.
Tag : Csharp, programs,
I didn't like my program in this language at the university. Although i was a student with a technical mindset and pay research paper, i could not learn this language with the program that we had at the university.
ReplyDeleteC Program To Find Student Gpa And Cgpa >>>>> Download Now
Delete>>>>> Download Full
C Program To Find Student Gpa And Cgpa >>>>> Download LINK
>>>>> Download Now
C Program To Find Student Gpa And Cgpa >>>>> Download Full
>>>>> Download LINK UY
Excellent program. I am a programer too and I think that you code is clear. As fr me it is easy to read such posts than to read humanitarian articles as https://www.iiste.org/tag/domyessay/!
ReplyDeleteProgramming is really hard. If you know how to program then most likely you do not know how to write essay. But there are services that are advertised in the article with tips how to write good essay fast that will help people who do not know how to write essay but know how to program.
ReplyDelete
ReplyDeleteProgramming is probably one of the most difficult areas. If you want to get closer to it, then it's better to work in marketing (read the article about marketing) than to learn how to program
ReplyDeleteProgramming by people who usually do not have the ability for humanitarian assignments. But it's good that there are services such as the service advertised in the article about top chemists and about service, which helps with chemistry homework that can help with humanitarian homework.
This is an excellent post visit us and please check our site web of our faculty
ReplyDeleteThis is about : C# Program to find Student GPA and CGPA || Concept of ENUM in C#
ReplyDeleteAnd this article : C# Program to find Student GPA and CGPA || Concept of ENUM in C#
Article Csharp, Article programs,Kaspersky Total Security
collect information you are looking for so that we usakan to display complete information for you, and in this blog, you can also search for other information, ok please continue reading may be easily understood
ReplyDeletecrackcool.com
ReplyDeleteThank you ever so for you article. .............Zianefacdroitsp
ReplyDeletebest custom writing website.............Zianefacdroitsp
you are really the best...I really like what you share......Zianefacdroitsp
ReplyDeleteHD Tune Pro Activation Key is an effective tool to improve your program. Improves the efficiency of the program. It provides a very easy and useful atmosphere to manage.
ReplyDeleteTeamviewer Pro Activation Key
AVG Antivirus Pro Activation Key
Wondershare Filmora Pro Activation Key
Maxon CINEMA 4D Pro Serial Key is a 3D design software from Maxon. It is a creative tool that allows the user to create impressive graphics and special effects.
ReplyDelete4uKey Pro Serial Key
Bittorrent Pro Serial Key
Luxion Keyshot Pro Serial Key
Nice explanation and article. Continue to write articles like these, and visit my website at https://usacrack.info/ for more information.
ReplyDeleteEnscape3D Sketchup Crack
XYplorer Pro Crack
Luminar Crack
ESET Internet Security Crack
Avast Cleanup crack
Modern CSV Crack
The Live Earth Map - Voice Navigation Satellite View provide Navigate around the world with ease! Feel more like a local your own city than a tourist when you travel. Have instant knowledge about the nearby places, destinations, and more, or easily plan your next city in the world or bike & car route. All is possible with Live Earth Map - Voice Navigation Satellite View.
ReplyDeleteThanks For Sharing such a great information ultimate suite for excel crack
ReplyDeleteI need to to thank you for this wonderful post!
ReplyDeleteZianefacdroitsp
You do a great job, keep doing thank you for good work ฟิล์มกรองแสง อุบล
ReplyDeleteThis post gives clear idea for the new visitors of blogging, that truly how to do blogging.
ReplyDeleteZianefacdroitsp
C Program To Find Student Gpa And Cgpa >>>>> Download Now
ReplyDelete>>>>> Download Full
C Program To Find Student Gpa And Cgpa >>>>> Download LINK
>>>>> Download Now
C Program To Find Student Gpa And Cgpa >>>>> Download Full
>>>>> Download LINK
I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
ReplyDeleteVery interesting blog.
vstcrackpro.com
NIK COLLECTION BY DXO Crack
the best place for all psychedelic products
ReplyDeleteBuy quality DMT carts online
Buy DMT crystals here
Buy quality LSD vials here
Buy ketamine crystals here
Buy penis envy mushrooms here
ReplyDeleteWow, amazing block structure! How long
Have you written a blog before? Working on a blog seems easy.
The overview of your website is pretty good, not to mention what it does.
In the content!
vstkey.com
PUSH Video Wallpaper Crack
FL Studio Crack
LD Player Crack
Enscape 3D Crack
IDM Crack
PhpStorm Crack
Redshift Render Crack
This content I think is good for me and others. 789betting สล็อต
ReplyDeleteIf you are interested in Android Apps, PC Software and MAC Applications then you can visit our official websites for registered applications that you can download full free without paying any charges.
ReplyDeleteNexus Crack
PUBLIC CRACK
XYZ CRACK
ZROOT CRACKEDZEE CHEAP
First of all, thank you for your post. 김제출장안마
ReplyDelete광양출장안마
나주출장안마
목포출장안마
순천출장안마
여수출장안마
Your posts are neatly organized with the information I want, so there are plenty of resources to reference. I bookmark this site and will find your posts frequently in the future. Thanks again
AnyDesk Premium Crack
ReplyDeleteSolidWorks Crack
Adobe Photoshop CC Full Crack
TeamViewer Crack
AVG PC TuneUp Crack
Jitbit Macro Recorder Crack
Z3X Samsung Tool Pro Crack
Internet Download Manager Crack is used for Google Chrome, Firefox, Microsoft Edge, Opera, Safari, Internet Explorer, AOL, MSN, Maxthon, and different famous browsers well suited with IDM. Since 1999, we’ve been making browser extensions, and we have modern engineering options available.
ReplyDeleteIt's accessible in head shops, corner stores and tobacco stores and is sold as "incense." There are normally disclaimers on the bundling expressing that it is intended to be utilized as incense and isn't so much for human utilization; however that is precisely exact thing individuals are doing: smoking it.출장여대생
ReplyDelete출장여대생
출장여대생
출장여대생
출장여대생
출장여대생
출장여대생
I understand I am the one explicitly who came here to share my own personal knowledge. Prepare to have your cerebrum blown. I'm including my PC for basically the past 3 years, yet I knew close to nothing about settling several chief issues I do not know how to solve Crack Softwares Free Download But thankfully, I recently visited a website named crackprofessional.com/
ReplyDeletePhpStorm Crack
Atomic Mail Sender Crack
I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
ReplyDeleteVery interesting blog.
AdwCleaner Crack
Outbyte Driver Updater Crack
Rhinoceros Crack
After looking through a few blog articles on your website,
ReplyDeletewe sincerely appreciate the way you blogged.
We've added it to our list of bookmarked web pages and will be checking back in the near
future. Please also visit my website and tell us what you think.
vstkey.com
Tenorshare 4DDiG Crack
Sound theory Gullfoss Crack
plugin alliance all bundle Crack
Korg Triton VST Crack
CorelDRAW X3 Setup Crack
I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
ReplyDeleteVery interesting blog.
HitFilm Pro Crack
Acronis True Image Crack
Driver Toolkit Crack
I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
ReplyDeleteVery interesting blog.
MiniTool Power Data Recovery Crack
Avocode Crack
ReFX Nexus VST Crack
I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
ReplyDeleteVery interesting blog.
Origin Pro Crack
ActivePresenter Professional Crack
Audials One Platinum Crack
I love writing this so much, I love to read it so much and keep doing more of this work.hokabet เข้าสู่ระบบ
ReplyDeleteThey’re all definitely some great sites.
ReplyDeleteGTU