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
ReplyDeleteso that I can get more and more complete information.
ReplyDeleteZianefacdroitsp.
Funny Jokes
ReplyDeleteFunny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
Funny Jokes
I am glad to talk with you and you give me great help......Zianefacdroitsp
ReplyDeleteBuy Golden Teacher, Order Buy LSD Blotters online
ReplyDeletebuy Albino Penis Envynew-york, 5-Meo-DMT california, buy 5-Meo-DMT USA/">Buy Buy 4-Aco-DMT online
Best DMT Crystal Arizona,Best DMT Crystal Montana
Buy DMT Vape Pen online,Buy DMT Vape Pen online USA,Buy DMT Vape Pen online Wyoming
Buy Liberty Cap online canada,Buy Liberty Cap online UK, Buy Liberty Cap online USA
Buy MDMA (Ecstasy), MDMA (Ecstasy) molly , GPsilocybin Mushroom Chocolate Bar 26
Buy Psilocybe Cubensis USA
Buy Psilocybe Cubensis online Australia, UK, Canada, USA,Alaska
Buy Cheap Golden Teacher online
Buy quality Albino Penis Envyonline, USA, Idaho, Washington, new york
Buy Liberty Cap
Buy quality SIG SAUER P226 ELITE SINGLE ACTION SAO 9MM – NEW
Nice article. Well written!
ReplyDeleteIT Support
Geothermal Centrifuge Modeling
IT Support Singapore
Custom Centrifuge
MSP Singapore
IT Company
IT Services
SEO Singapore
Such a nice information ..Get the your website rank with Cityweb'sSEO Bangalore at your budget.
ReplyDeleteThis is Very very nice article. Everyone should read. Thanks for sharing. Don't miss WORLD'S BEST 4x4OffroadJeepCarRacingChampionsGame
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
Thank you so much! That was real helpful. I learnt a lot from it.............Zianefacdroitsp
ReplyDelete
ReplyDeleteThank you ever so for you article. .............Zianefacdroitsp
ReplyDeletebest custom writing website.............Zianefacdroitsp
I am glad to talk with you and you give me great help......Zianefacdroitsp
ReplyDeleteHi thanks for the helpful information shared. the article is really very helpful......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
I really like what you share ......
ReplyDeleteZianefacdroitsp
For the very first time, I read your blog and loved it. Your way of delivering content is amazing and appreciable. Hope you will continue this and provide new, unique, and strong content from your side. For me, it’s a five stars article. Vlone Hoodie
ReplyDeleteNice explanation and article. Continue to write articles like these, and visit my website at https://usacrack.info/ for more information.
ReplyDeleteIPVanish VPN Crack
Express VPN Crack
ESET Internet Security Crack
Quillbot Premium Crack
Teorex Inpaint Crack
Nice explanation and article. Continue to write articles like these, and visit my website at https://usacrack.info/ for more information.
ReplyDeleteKutools For Excel 25.00 Crack
SpyHunter 5 Crack
EaseUS MobiSaver 7.7.0 Crack
Enscape3D Sketchup Crack
EasyWorship 7.2.3.0 Crack
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.
ReplyDeleteNice explanation and article. Continue to write articles like these, and visit my website at https://usacrack.info/ for more information.
ReplyDeleteEnscape3D Sketchup Crack
Stellar Data Recovery Crack
Luminar Crack
IPVanish VPN Crack
ESET Internet Security Crack
Avast Cleanup crack
Modern CSV Crack
XYplorer Pro Crack
Thanks For Sharing such a great information ultimate suite for excel crack
ReplyDeleteThis information is really awesome thanks for sharing most valuable information. ................Zianefacdroitsp
ReplyDeleteThat's nice. Very Well Explained your Blog is just amazing and provides profound knowledge. ติดต่อสอบถาม igoal88
ReplyDeleteI need to to thank you for this wonderful post!
ReplyDeleteZianefacdroitsp
You do a great job, keep doing thank you for good work ฟิล์มกรองแสง อุบล
ReplyDeleteThis is a great post. I like this topic.This site has lots of advantage.
ReplyDeleteI found many interesting things from this site. It helps me in many ways.Thanks for posting this again................Zianefacdroitsp
I really like what you share ......
ReplyDeleteZianefacdroitsp
This post gives clear idea for the new visitors of blogging, that truly how to do blogging.
ReplyDeleteZianefacdroitsp
merci pour votre participation ..............Zianefacdroitsp
ReplyDeleteC 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
Hello, This article is genuinely nice and I have learned lot of things from it about blogging. thanks. ................Zianefacdroitsp
ReplyDeleteWow, amazing block structure! How long
ReplyDeleteHave 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!
vstpatch.net
FL Studio Crack
Waves 13 Complete Crack
FaBFilter Pro Crack
Kontakt 6 Crack
Wondershare Filmora 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.
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
Wow, amazing block structure! How long
ReplyDeleteHave 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
Drip Fx 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.
PhpStorm Crack
This content I think is good for me and others. 789betting สล็อต
ReplyDelete논산출장안마
ReplyDelete상주출장안마
ReplyDeleteGreat post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article.Read: business central price
ReplyDeleteMy response on my own website. Appreciation is a wonderful thing...thanks for sharing keep it up.
ReplyDeleteZennoDroid Crack
RadioBOSS Crack
My response on my own website. Appreciation is a wonderful thing...thanks for sharing .
ReplyDeleteRadioBOSS Crack
ScrapeBox Crack
ZennoDroid Crack
마산회원구애인대행 마산합포구애인대행 성산구애인대행
ReplyDelete영월군애인대행 평창군애인대행 정선군애인대행
일산애인대행 파주애인대행
ReplyDeleteThank you for sharing your wonderful ideas, Admin. To get the official crack, go to this link.
ReplyDeletePDFsam Basic Crack
startcrack.co
crackpropc.com
crackersoftwares.com
Wow, amazing block structure! How long
ReplyDeleteHave 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!
crackplus.org
Adobe Acrobat Pro Crack
Thank you for sharing your wonderful ideas, Admin. To get the official crack, go to this link.
ReplyDeleteCrack Software
Wow, amazing block structure! How long
ReplyDeleteHave 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!
crackplus.org
ESET Internet Security Crack
Wow, amazing block structure! How long
ReplyDeleteHave 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!
Buildbox Crack
Scrivener Crack
R-Studio Crack
SnagIt Crack
BeeCut Crack
Evolution Of Sound Hexagon Revolution Crack
Wordfast Pro Crack
TransMac Crack
If 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
Wow, amazing block structure! How long
ReplyDeleteHave 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!
iZotope Nectar Crack
Avid Media Composer Crack
Resolume Arena Crack
CherryPlayer Crack
VueScan Pro Crack
AngelicVibes Thump Multi Effects Crack
Antivirus Zap Pro Crack
AAS Strum GS Crack
장성출장샵
ReplyDelete통영출장샵
전주출장샵
김포출장샵
영동출장샵
예천출장샵
화성출장샵
안양출장샵
아산출장샵
충주출장샵
원주출장샵
ReplyDelete강릉출장샵
춘천출장샵
태백출장샵
공주출장샵
논산출장샵
계룡출장샵
보령출장샵
서산출장샵
아산출장샵