programming in c++

a program in c++ that accepts exam marks for 10 students and stores them in an array.the program should then calculate and utput the average marks for the class.and give an account of marks below average and output all marks above average.

  1. 👍 0
  2. 👎 0
  3. 👁 132
asked by vivian
  1. You're welcome to post your pseudocode and ask specific questions so we know where help would be needed.

    1. 👍 0
    2. 👎 0
  2. I need some help and guidance to solve this problem.
    Week 4 CheckPoint – Repetition and Decision Control Structures

    In one of the week 3 discussion questions we discussed the algorithm that would be required to make a peanut butter sandwich. In this CheckPoint you will need to take that one step further and create a program design to make a peanut butter sandwiches. Below you will find a partial program design; you need to complete it by adding the pseudocode in the required areas. You need to add one repetition (loop) control structure and one decision control to complete the program design. The user will decide how many sandwiches are made; this is where the loop will be used. The user will decide if the sandwich includes jelly, and, if it does, what flavor of jelly; to keep it simple we are only allowing grape or strawberry jelly.


    1. Ask user how many sandwiches to make
    2. Ask user if they want jelly on their sandwich
    3. If jelly is requested, ask user what flavor (grape or strawberry) of jelly they would like
    4. Make peanut butter and, if required, jelly sandwiches

    NumberOfSandwiches (integer)
    IncludeJelly (string; values Yes/No)
    TypeOfJelly (string; values Grape/Strawberry)



    Main Module

    Declare NumberOfSandwiches as integer
    Declare IncludeJelly as string
    Declare TypeOfJelly as string
    Declare Continue as Boolean
    Set Continue to true

    Do While Continue = true
    Call InputModule

    End Main Module


    Display "How many sandwiches would you like to make? Enter 0 to end program."
    Input NumberOfSandwiches

    If NumberOfSandwiches = 0
    Set Continue = false
    Display "Do you want jelly on your sandwiches?"
    Input IncludeJelly

    If IncludeJelly = “Yes”
    Display “What type of jelly; Grape or Strawberry?”
    Input TypeOfJelly

    **** Students – add a loop here to create the number of sandwiches requested by the user – within the loop you need to invoke (call) the SandwichModule to create the sandwiches. Do not over think this one; the loop should loop over the NumberOfSandwiches and reduce the value each time a sandwich is made until NumberOfSanwiches is equal to zero.

    Make sure you review the given code in this assignment, you do not want to repeat steps that are already done.


    End InputModule


    Get bread
    Spread peanut butter on bread

    **** Students – add decision control structure here to add jelly to the sandwich if the user requested it. Hint: you will want to use a nested decision control structure.

    End SandwichModule

    1. 👍 0
    2. 👎 0
    posted by Christy
  3. write a programm 100kg is made per passenger ,25kg perbag ,add functionality to to the class and carrying weigh(passenger+ bags) c++.

    1. 👍 0
    2. 👎 0
    posted by ruphin

Respond to this Question

First Name

Your Response

Similar Questions

  1. programming

    user to enter the student’s marks on four exams (use double and one exam is over 20). The Write a program that asks the program should display the four exam’s marks, the sum and the average.(Use also the header file iomanip)

    asked by Anonymous on June 2, 2012
  2. Maths

    There are fifty students in a class. In a 100 marks exam, 20 students scored less than 30 marks, 5 students scored more than 70 marks and the remaining scored between 30 and 70 marks. If passing score is 55 marks and 40% students

    asked by Muhammad on July 13, 2017
  3. maths, statistics

    Marks in an examination are distributed normally with a mean of 55 and standard deviation of 15. 200 students sit the exam. (a) If the passing mark is 40, what is the number of students expected to fail? (b) If you score 75 marks

    asked by eimear on April 3, 2017
  4. visual basic programming

    Write a Visual Basic program that will calculate the assessment marks of a student taking the Computer Programming subject in College. The program must be able to determine the total result and finally display the grade of that

    asked by diana on August 14, 2014
  5. Ib math

    The marks of 2376 students in an IB exam are normally distributed with mean 49 marks and variance 225 A) if the mark is 45 estimate the number of candidates who passed the exam? B) if top 7% of students are awarded a 7, find the

    asked by sara on April 9, 2015
  6. Stats, Statistics, Math

    A Statistics professor assigned 10 quizzes over the course of the semester. He wanted to see if there was a relationship between the total mark of all 10 quizzes and the final exam mark. There were 229 students who completed all

    asked by Papi on September 24, 2016
  7. maths

    The data in table below gives marks for an exam of a particular tutors students in 2005 and 2006. Year students marks on the exam 2005 75 86 91 65 83 75 88 90 66 99 2006 60 78 75 98 79 90 80 88 81 90 from the following choose two

    asked by angel on May 19, 2007
  8. science computer

    The program will accept the final marks of a group of students in a class. The lecturer can choose '1' to finds the highest and lowest marks in the class. The lecturer choose '2' to find the average marks of that class. If user

    asked by hisham on March 29, 2016
  9. c++

    C++ Program to read, print name and other details of 50 students ? Problem Statement : The annual examination is conducted for 50 students for three subjects. Write a program to read the data and determine the following: (a) Total

    asked by tadesse on June 12, 2014
  10. Statistics

    In Professor White’s statistics course the correlation between the students’ total scores before the final examination and their final examination scores is r = 0.9. The pre-exam totals for all students in the course have mean

    asked by Kevin on October 21, 2012

More Similar Questions