Thread: Confused with displaying student passing exams

  1. #1
    Registered User
    Join Date
    Aug 2017
    Posts
    1

    Unhappy Confused with displaying student passing exams

    Write a complete C program that will read the exam marks for 20 students. The program should also read the names for every student. The program will then count and display the number of students passing and failing the exam. A student needs to score at least 50 marks in order to pass an exam. The program should also print the names for those scoring 50 and above.
    Sample input /output as below:
    Input
    Name : Ahmad
    Exam Marks: 56
    Name : Helen
    Exam Marks: 90
    Name : Maria
    Exam Marks: 45
    …….
    There are 10 students passing the exam and their names are:
    Ahmad
    Helen
    ………

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Good for you, now read this -> https://cboard.cprogramming.com/c-pr...uncements.html
    You need to show some actual effort, not just a copy/paste of your assignment.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 17
    Last Post: 11-16-2013, 06:18 PM
  2. Lost and confused Computer Science Student
    By Frankie15 in forum General Discussions
    Replies: 14
    Last Post: 10-11-2011, 03:42 PM
  3. Replies: 3
    Last Post: 06-06-2011, 03:46 AM
  4. String + Array = Confused student
    By Dellema in forum C++ Programming
    Replies: 12
    Last Post: 05-03-2010, 07:24 AM
  5. Confused Student
    By verd in forum C Programming
    Replies: 27
    Last Post: 01-25-2005, 11:33 AM

Tags for this Thread