千里打酱油 发表于 2014-11-22 13:16:12

作业求救

RT,电脑课的作业,说是一个project。
@@最近上课不是玩手机就是睡觉,还有用电脑玩4399.

完全没听课,求支援,告诉我一下应该用到include什么,还有用什么statement就可以了
TB奖励
Write a complete C++ program, including comments, to do the following:

You are to write a program which will assign and print a student's final grade in a course.The final grade will be based on grades received on two regular exams and the grade received on the final exam.

You are to proceed as follows:

a) Prompt the user to enter a given student's data from the keyboard.The data, to be entered on one line, consists of the student's ID, and the student's grades on the first, second, and final exams.The program should print the original information read.

A typical set of data could be 1234   95   82   91.

b) Each grade entered is to be checked.If the grade entered was negative, replace it by its positive equivalent (e.g., -75 becomes +75).If the grade was greater than 100, subtract 100 from the grade as many times as needed to bring the grade into the range 0...100.

c) The student's final numeric grade is to be calculated from the corrected grades.The final numeric grade will be computed on the following basis:each regular exam counts 35% and the final exam counts 30%.The program will call this value final_grade.

d) The program will them print the student's ID, the corrected grades on each exam, the final numeric grade, and an alphabetic grade based on the student's final numeric grade as follows:
       final grade    - >   alphabetic grade
          90...100   - >            A
         80...89      - >            B
         70...79      - >            C
         60...69      - >            D
            0...59       - >            F

e) Repeat the entire series of operations for each successive student until all students have been processed.Make it work for a variable number of students.

天狼 发表于 2014-11-22 13:17:01

不知道哦,加油。      

千里打酱油 发表于 2014-11-22 13:17:57

天狼 发表于 2014-11-22 13:17
不知道哦,加油。

:L,早知道就不选电脑了,算数学学分,学分算上下一年就够了,拿来没什么用

呵呵 发表于 2014-11-22 13:20:21

@@      反正我不会

我是路过的 发表于 2014-11-22 13:20:56

送分的{:5_190:}

撒旦撸啊撸 发表于 2014-11-22 13:48:10

comp sci AP 飘过,懒得做,你加油

千里打酱油 发表于 2014-11-22 13:57:49

撒旦撸啊撸 发表于 2014-11-22 13:48
comp sci AP 飘过,懒得做,你加油

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

lovew 发表于 2014-11-22 14:51:16

C++不懂matlab倒是做過差不多

-Glorybow- 发表于 2014-11-22 15:50:58

{:5_191:}{:5_191:}{:5_191:}{:5_191:}CS我们学校学的是JAVA

千里打酱油 发表于 2014-11-22 17:24:49

-Glorybow- 发表于 2014-11-22 15:50
CS我们学校学的是JAVA

@@看来就我学校教dev c++
页: [1] 2 3
查看完整版本: 作业求救