Preview

Checkpoint Week 7 Chapter 5 Essay Example

Satisfactory Essays
Open Document
Open Document
349 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Checkpoint Week 7 Chapter 5 Essay Example
Analysis:

Process: 1. Open “GRADES” file 2. Display StudentName 3. Display TestScores 4. Add TestScores 5. Display Sum

Input:

StudentName As String Test1 As Integer Test2 As Integer Test3 As Integer Sum As Integer

Output:

Display all three TestScores and the Sum

Problem 1:
Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form: student(string), test1(integer), test2(integer), test3(integer). In this file, all test scores should b e set equal to 0.

Main Module

Declare StudentName As String Declare Test1, Test2, Test3 as Integers Open “GRADES” Call WriteGrades Module Close “Grades”

End Main Module

WriteGrades Module Declare StudentName As String Declare Test1 As Integer Declare Test2 As Integer Declare Test3 As Integer Open “GRADES” For Output As TestScores Set Test1, Test2, Test3 = 0 Display “Enter student’s name and test scores separated by a comma.” Display “Enter ZZZ for student’s name when you are finished.” Display “ To move on to the next student entry hit the enter key.” Input StudentName, Test1, Test2, Test3 While StudentName <> “ZZZ” Display TestScores, StudentName, Test1, Test2, Test3 Display “Enter student’s name and test scores separated by a” Display “comma” Display “Enter ZZZ when you are finished.” Input “ZZZ”
End While
Close TestScores

End WriteGrades Module

Problem 2:
Display the contents of the file GRADES created in Problem 1. Each student’s record should appear on a separate line and include the total score (the sum of the three tests) for that student. For example a line output might be:

R. Abrams 76 84 82 242

Main Module Declare StudentName As String Declare Test1, Test2, Test3 As Integers Declare Sum As Integer Open “GRADES” Call ComputeSum Module
Call DisplayGrades Module Close “GRADES”

End Main Module

ComputeSum Module Sum =

You May Also Find These Documents Helpful

  • Satisfactory Essays

    A new product on the market must have its own place and need. A wireless satellite system for entertainment purposes will allow the customers to serve multiple units within the same house without the need to run new wires. The focus will be the consumer and how this product will alleviate certain burdens on them.…

    • 346 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Acc/531 Week 4

    • 646 Words
    • 3 Pages

    grade in his course. She proposed a multiple regression model, where y is the final grade (out of 100), x1 is the number of lectures skipped, x2 is the number of late assignments, and x3 is the mid-term test grade (out of 100). The professor recorded the data for 50 randomly selected students. The regression equation is:…

    • 646 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    ElizabethFlaimFP

    • 1289 Words
    • 7 Pages

    Problem Definition: Design a program that allows a user to input a list of family members, along with their age and the state where they live. The program will determine and print the average age of the user’s family. The program will also print the names of any family member that lives in Texas. The program design should also allow the user to enter at least 50 family members.…

    • 1289 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Assignment

    • 256 Words
    • 2 Pages

    Write a program to read the name of 5 students through keyboard and store them in a file “name.txt”.…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 8 Problem 1

    • 175 Words
    • 2 Pages

    Analysis: The problems required output is the students name with scores from three tests. Each student and scores shall be listed on separate lines. The input variables needed for this program include Test1, Test2, Test3, and Student.…

    • 175 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It 210 Week 7

    • 286 Words
    • 2 Pages

    2. Display the contents of the file GRADES created in Problem 1. Each student’s record should appear on a separate line and include the total score (the sum of the three tests) for that student. For example, a line of output might be as follows:…

    • 286 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CMIS 102 Homework 3

    • 342 Words
    • 3 Pages

    Program Description - This program will allow a user to input their name and final grades from their courses and calculate their GPA accordingky. The amount of students as well as the amount of classes each student is taking, are undetermined.…

    • 342 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    Step 1: This program is most easily solved using just a few variables. Identify potential problems with the following variables declared in the pseudocode. Assume that the college has the ability to offer half credits. (Reference: Variable Names, page 39-40).…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    what ever

    • 1175 Words
    • 5 Pages

    Be sure your output file contains user prompts and what was entered by the user .in addition to the results of your program processing. Run with above listed data. The instructor will give you additional data to test.…

    • 1175 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Name and Example Output

    • 492 Words
    • 2 Pages

    1) Display the the name of each student and what zipcode they live in. sort them by last and then first name in ascending order…

    • 492 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Lab 8 Student

    • 2441 Words
    • 15 Pages

    Step 4: Open either your Lab 6-4.rap flowchart or your Lab 6-4.py Python code. This program allowed a teacher to enter any number of test scores and then calculated the average score. Examine the program and identify at least two potential input errors.…

    • 2441 Words
    • 15 Pages
    Good Essays
  • Good Essays

    Intro to programming

    • 534 Words
    • 3 Pages

    Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 534 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Psych 218

    • 1246 Words
    • 5 Pages

    1. Perform a simple regression analysis using the frequency with which students took notes ('notes') to predict their mean grade ('meangrade'). [8 points]…

    • 1246 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Online Grading System

    • 2167 Words
    • 9 Pages

    Moreover, STI College Koronadal uses MS Excel Spreadsheet for computing the grades. However, Excel is incapable of collecting all the records of each student and their classes. Thus results in the difficulty of giving summary of the students’ current status on their entire subject unless all of the individual records of each instructor per subject were reviewed.…

    • 2167 Words
    • 9 Pages
    Better Essays
  • Powerful Essays

    Grading System

    • 1124 Words
    • 5 Pages

    The National Statistics Office (NSO) is the major statistical agency responsible in collecting, compiling, classifying, producing, publishing, and disseminating general-purpose statistics in the Philippines.It coverings of areas from leyte specially tacloban,capoocan , abuyog ,etc. The main objective of this paper is to propose an effective and friendly used grading system in DATAMEX. It shows the final grades of a student and the computation of the grade both midterm and finals. This proposal helps the student to be aware to their grade if he/she is failed or pass the specific subject…

    • 1124 Words
    • 5 Pages
    Powerful Essays