Thread: Does anyone know how to start this off?

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    1

    Does anyone know how to start this off?

    Write a program to compute the grade for every student of a class. In addition, your program needs to output a summary report showing the total number of students, and the number of students receiving each letter grade. To indicate that all students have already been processed, use a number larger than 100 for the first assignment score of the student as the sentinel.
    In other words, if the score for assign. #1 of a student is larger than 100; your program should report the collected summary and then terminate.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Yes, this gets asked on pretty much a monthly basis, so search the board.

    But I would suggest you start with working out the grade for just one student to begin with.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I'd say start with a flowchart, then implement the case for one student, then two, and then N students.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How start off with C++
    By Yumin in forum C++ Programming
    Replies: 4
    Last Post: 11-07-2007, 05:49 PM
  2. Where to Start?
    By sunkloto05 in forum C Programming
    Replies: 1
    Last Post: 08-28-2003, 02:34 AM
  3. Where to start?
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 07-31-2002, 01:29 AM
  4. Start?
    By Shakespeare in forum Game Programming
    Replies: 2
    Last Post: 07-30-2002, 04:11 PM
  5. Where to start...
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 07-19-2002, 01:43 PM