Preview

Chapter 8 Programming Problems

Satisfactory Essays
Open Document
Open Document
296 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Chapter 8 Programming Problems
Chapter 8 Programming Problems

IT/210

Chapter 8 Programming Problems
For each of the following problems, use the top-down modular approach and pseudocode to design a suitable program to solve it. 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(interger), test2 (interger), test3 (interger). In this file, all test scores should be set equal to 0.
Analysis
Process 1. Display input student name and test scores screen 2. Prompt for student name 3. Prompt scores 4. Perform calculations 5. Provide student names, scores and total
Input
1. Student Name 2. Test scores
Output
1. Display student name, scores, and total.

Declare Studentname as string
Declare Test1 as interger
Declare Test2 as interger
Declare Test3 as interger
Set Test1, Test2, Test3 = 0
Open “Grades” for output as TestScores
Write “Please input the students name”
Input Studentname
Write “Please input student scores.”
Input Test1, Test2, Test3
Write “Please input ZZZ for students name when done.”
While Studentname does not equal “ZZZ” Write TestScores, Studentname, Test1, Test2, Test3 Write “Please input the students name”
Input Studentname
Write “Please input student scores.”
Input Test1, Test2, Test3
Write “Please input ZZZ for students name when done.”
End While
Close TestScores

2. Display the contents of the file GRADES created in problem 1. Each student’s record should apper on a seprate line and include the total score (the sum of the three tests) for that student. For example, a line of output might be:
R. Abrams 76 84 82 242

Declare Sum as integer
Open “GRADES” for input as Test Scores
While Not (TestScores)
Input TestScores, studentname, Test1, Test2, Test3
Sum = Test1 + Test2 + Test3
Write Studentname, Test1, Test2, Test3, Sumn
End while
Close

You May Also Find These Documents Helpful

  • Good Essays

    Int1 114.1.1 Task 3

    • 2000 Words
    • 8 Pages

    After researching, I found two studies that are similar to my experiment. One study by Sean Boyd (2007) tested to see which brand of microwave popcorn yielded the least amount of un-popped kernels. Mr. Boyd tested five brands of butter flavored microwave popcorn: Aldi, Act II, Orville Redenbacher, Jolley Time and Pop-Secret. His experiment proved his hypothesis partially wrong. Mr. Boyd hypothesized that Orville Redenbacher would be the best and Aldi's would be the worst. His experiment proved that Act II produced the least amount of un-popped kernels while Aldi's did have the most un-popped kernels on average.…

    • 2000 Words
    • 8 Pages
    Good Essays
  • Good Essays

    ECET 370 Week 5 Lab 5

    • 650 Words
    • 3 Pages

    This work of ECET 370 Week 5 Lab 5 shows the solutions to the following problems:…

    • 650 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    When addressing system performance, a key element that is often overlooked is Disk Fragmentation. Even on a brand new system with plenty of RAM and processing speed, the performance of the hard disk may be a bottleneck causing issues. It takes time to load large data files into memory - issues become particularly noticeable when dealing with movies, video clips, database files or image files which may easily be several gigabytes in size. On a freshly formatted disk, these files load fairly quickly. Over time, however you may start to notice performance issues - caused by disk fragmentation.…

    • 356 Words
    • 1 Page
    Satisfactory 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

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

    • 349 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Programing Problems

    • 721 Words
    • 3 Pages

    IT 210 13 Programming Problems Pseudocode for chapter 2 checkpoint Frank T. Hartman IT 210 13 Programming Problems Pseudocode for chapter 2 checkpoint Frank T. Hartman Programming Problem 1 Main Module Declare SalesAmount As Real Declare CommissionRate As Real Declare CommissionEarned…

    • 721 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Comp 122 Week 1 Ilab

    • 662 Words
    • 3 Pages

    3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each input and to report each output.…

    • 662 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Please complete the following 7 exercises below in either Excel or a word document (but must be single document). You must show your work where appropriate (leaving the calculations within Excel cells is acceptable). Save the document, and submit it in the appropriate week using the Assignment Submission button.…

    • 971 Words
    • 4 Pages
    Better Essays
  • Good Essays

    c. Modify the program of Part b so that at the option of the user, it displays…

    • 300 Words
    • 2 Pages
    Good 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

    Cs Programming Chapter 1

    • 2450 Words
    • 10 Pages

    ____ data items may involve organizing or sorting them, checking them for accuracy, or performing calculations with them.…

    • 2450 Words
    • 10 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
  • Satisfactory Essays

    Name and Example Output

    • 492 Words
    • 2 Pages

    2) Write a query to display the Student id and the number of grades they have received ***…

    • 492 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psychology Assignment

    • 1556 Words
    • 7 Pages

    10. College XYZ wants to collect information from students concerning a plus/minus grading system (the college administration wants to add minus grades to the plus values…

    • 1556 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Course Code _____________________________ Session Code ____________________________ Date of Examination _______________________ Time _______________ Room ______________ PRINT LEGIBLY…

    • 915 Words
    • 4 Pages
    Satisfactory Essays