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. 👍
  2. 👎
  3. 👁
  1. You're welcome to post your pseudocode and ask specific questions so we know where help would be needed.

    1. 👍
    2. 👎
  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.

    Analysis

    Process:
    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

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

    Output:
    Sandwich

    Design

    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
    EndDo

    End Main Module

    InputModule

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

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

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

    **** 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.

    EndIf

    End InputModule

    SandwichModule

    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. 👍
    2. 👎
  3. write a programm 100kg is made per passenger ,25kg perbag ,add functionality to to the class and carrying weigh(passenger+ bags) c++.

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. Math Plz help

    survey about the student government program at a school finds that of 245 students: 218 students like the program 27 students think the program is unnecessary If a circle graph were made from this data, what would the measure of

  2. Math

    A survey about the student government program at a school finds the following results. 190 students like the program 135 students think the program is unnecessary 220 students plan on running for student government next year. If a

  3. programming

    Example Develop a pseudocode algorithm for a program that accepts each of the average marks of 10 students in a class and computes the sum and the average mark of the class. The program should display the average mark of the

  4. Computer science

    need help how do this program. Use the top-down modular approach and pseudocode to design a suitable program to solve it. Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she

  1. Statistics

    In Professor Smith's statistics course, the correlation between students' total scores before the final exam and their final exam scores is r = 0.67. The pre-exam totals for all students in the course have a mean of 275 and a

  2. 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

  3. stats

    scores on a University exam are normally distributed with a mean of 68 and a standard deviation of 9. use the 68-95-99.7 rule to answer the following questions 1) what proportions of students score between a 59 to 77? 2) what

  4. Pre-Algebra

    A survey about the student government program at a school finds the following results: 190 students like the program 135 students think the program is unnecessary 220 students plan on running for student government next year. If a

  1. programming

    write a program that will calculate the average of the total marks scored by 10 students, if each student has done 4 exams.

  2. Algebra

    A survey about the student government program at a school finds the following results: 190 students like the program 135 students think the program is unnecessary 220 students plan on running for student government next year. If a

  3. statistics

    the mean marks obtained by a group of 100 students was found to 49.46.THE mean marks obtained in the same examination by another group of 200 students was 52.32. Find the mean marks obtained by the both groups of students tken

  4. eced

    A correlatibas .82 was found betweenen number of hours studied and final exam scores. A.students who stuief less received a high exam scores. B.students who studied who studied received lower exam scores. C.studying caused studies

You can view more similar questions or ask a new question.