编写一个C ++程序来存储和处理有关学生的一些信息. [英] Write a C++ program to store and process some information about students.

查看:99
本文介绍了编写一个C ++程序来存储和处理有关学生的一些信息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个C ++程序来存储和处理有关学生的一些信息.实施以下
功能:
¨创建一个存储以下学生信息的结构:姓名,卷号,专业
主题,电子邮件地址和CGPA(10分)
¨该大学仅开设三门主要课程.它们是物理,化学和数学.创建
代表这些主要主题的枚举(5分)
¨询问用户他想输入多少个学生.相应地创建一系列学生结构
¨创建一个函数inputvalues(),通过从
获取输入,将其传递给数组以填充其元素 用户.您应该对用户输入进行适当的检查(30分)
¨创建一个功能以打印已获得最高CGPA的学生的所有信息
(20分)
¨创建一个函数来查找系统中是否存在学生.如果他存在,请打印信息
学生的分数(20分)
¨创建一个功能以打印所有学生的信息(15分)
¨您的代码应正确格式化并对齐.如果
整个代码的格式正确,并且具有良好且友好的用户界面.

Write a C++ program to store and process some information about students. Implement the following
functionality:
¨ Create a structure to store the following information of a student: Name, Roll Number, Major
Subject, email address, and CGPA (10 marks)
¨ The university offers only three major subjects. They are Physics, Chemistry, and Math. Create
an enumeration to represent these major subjects (5 marks)
¨ Ask user how many students he wants to input. Create an array of student structures accordingly
¨ Create a function inputvalues() passing it the array to fill its elements by taking input from
the user. You should implement appropriate checks on user inputs (30 marks)
¨ Create a function to print all the information of the student who has acquired the highest CGPA
(20 marks)
¨ Create a function to find if a student exists in the system or not. If he exists, print the information
of the student (20 marks)
¨ Create a function to print information of all the students (15 marks)
¨ Your code should be properly formatted and aligned. 10 additional marks will be given if the
whole code would be properly formatted and having good and friendly user interface.

推荐答案

没有人会为您做作业.您是否尝试过自己完成此操作?请您自己尝试一下,如果您做不到,请阅读一些有关基本C ++编程的书.
Nobody will do the homework for you. Have you tried to complete this yourself? Please try something yourself and if you cannot do that read some books on basic C++ programming.


这篇关于编写一个C ++程序来存储和处理有关学生的一些信息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆