C# Program to find Student GPA and CGPA || Concept of ENUM in C#

C# Program to find Student GPA and CGPA || Concept of ENUM in C# - welcome to our blog Techno Live, now we will discuss information about the C# Program to find Student GPA and CGPA || Concept of ENUM in C#, our admins on this blog has been around to 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:

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,

You can also see our article on:


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 : , ,

38 Responses to "C# Program to find Student GPA and CGPA || Concept of ENUM in C#"

  1. 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.

    ReplyDelete
    Replies
    1. C Program To Find Student Gpa And Cgpa >>>>> Download Now

      >>>>> 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

      Delete
  2. 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/!

    ReplyDelete
  3. Programming 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

  4. Programming 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

    ReplyDelete

  5. Programming 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.

    ReplyDelete
  6. This is an excellent post visit us and please check our site web of our faculty

    ReplyDelete
  7. 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,Kaspersky Total Security

    ReplyDelete
  8. 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
    crackcool.com

    ReplyDelete

  9. Thank you ever so for you article. .............Zianefacdroitsp

    ReplyDelete

  10. best custom writing website.............Zianefacdroitsp

    ReplyDelete
  11. you are really the best...I really like what you share......Zianefacdroitsp

    ReplyDelete
  12. HD 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.
    Teamviewer Pro Activation Key
    AVG Antivirus Pro Activation Key
    Wondershare Filmora Pro Activation Key

    ReplyDelete
  13. 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.
    4uKey Pro Serial Key
    Bittorrent Pro Serial Key
    Luxion Keyshot Pro Serial Key

    ReplyDelete
  14. Nice explanation and article. Continue to write articles like these, and visit my website at https://usacrack.info/ for more information.
    Enscape3D Sketchup Crack
    XYplorer Pro Crack
    Luminar Crack
    ESET Internet Security Crack
    Avast Cleanup crack
    Modern CSV Crack

    ReplyDelete
  15. 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.

    ReplyDelete
  16. I need to to thank you for this wonderful post!
    Zianefacdroitsp

    ReplyDelete
  17. This post gives clear idea for the new visitors of blogging, that truly how to do blogging.
    Zianefacdroitsp

    ReplyDelete
  18. C Program To Find Student Gpa And Cgpa >>>>> Download Now

    >>>>> 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

    ReplyDelete
  19. 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.
    Very interesting blog.
    vstcrackpro.com
    NIK COLLECTION BY DXO Crack

    ReplyDelete

  20. Wow, 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

    ReplyDelete
  21. 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.

    Nexus Crack
    PUBLIC CRACK
    XYZ CRACK
    ZROOT CRACKEDZEE CHEAP

    ReplyDelete
  22. First of all, thank you for your post. 김제출장안마
    광양출장안마
    나주출장안마
    목포출장안마
    순천출장안마
    여수출장안마
    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

    ReplyDelete
  23. 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.

    ReplyDelete
  24. It'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
  25. 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/
    PhpStorm Crack
    Atomic Mail Sender Crack

    ReplyDelete
  26. 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.
    Very interesting blog.
    AdwCleaner Crack
    Outbyte Driver Updater Crack
    Rhinoceros Crack

    ReplyDelete
  27. After looking through a few blog articles on your website,
    we 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

    ReplyDelete
  28. 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.
    Very interesting blog.
    HitFilm Pro Crack
    Acronis True Image Crack
    Driver Toolkit Crack

    ReplyDelete
  29. 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.
    Very interesting blog.
    MiniTool Power Data Recovery Crack
    Avocode Crack
    ReFX Nexus VST Crack

    ReplyDelete
  30. 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.
    Very interesting blog.
    Origin Pro Crack
    ActivePresenter Professional Crack
    Audials One Platinum Crack

    ReplyDelete
  31. I love writing this so much, I love to read it so much and keep doing more of this work.hokabet เข้าสู่ระบบ

    ReplyDelete