Preview

It/210 Chapter 8 Programming Problems

Good Essays
Open Document
Open Document
300 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
It/210 Chapter 8 Programming Problems
Programming Problems
For each of the following Programming Problems, use the top-down modular approach and pseudocode to design a suitable program to solve it.

1.
a. Input names of students from the user, terminated by ”ZZZ”,0,0,0, and create a data file grades with records of the following form: student (String), test1 (Integer), test2 (Integer), test3 (Integer)
b. Display the contents of the file grades created in Part a. 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:
R. Abrams 76 84 82 242
c. Modify the program of Part b so that at the option of the user, it displays either the entire contents of the file grades or just the record of a specified student. In either case, for each student displayed, also display his or her total test score.

2. Assume that a file named inventory, which contains the inventory of parts for the Legendary Lawn Mower Company (from Section 8.5), already exists with records of the following form: partNumber (Integer), partName (String), quantity (Integer)
Also assume that the records in this file are ordered by increasing part number. For each part of this problem, write a program that performs the indicated task.
a. Input a part number from the user and delete the corresponding record from the inventory file.
b. Input a part number and a quantity from the user and modify the record corresponding to that part number by changing the value of its last field to the quantity input.
c. Input a new part number, part name, and quantity from the user and insert the corresponding record in the proper place in the inventory

You May Also Find These Documents Helpful

  • Satisfactory Essays

    It133 Unit 9 Assignment

    • 455 Words
    • 2 Pages

    Microsoft Excel was a program that I was not looking forward to studying at all. I have never been good at math and numbers have always just given me a headache. Surprisingly after learning formulas for Excel and the ease the program gives you when dealing with numbers and keeping extensive records, I actually really like the program now. I like being able to keep a budget and really being able to track my spending and see really see where my money is going. I plan to continue to use Excel for keeping a budget after this class is over. I will use…

    • 455 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 8 Assignment 1

    • 1415 Words
    • 6 Pages

    This project used an Atmega644 microcontroller clocked at 20MHz in each of the two functional modules for processing. Memory storage is provided by a standard Secure Digital (SD) card. Xbee modules provide bidirectional wireless communication and we use the TLV5616 DAC chip for generating analog audio. The LM358 dual op amp provides active filtering to the output of the DAC. Music files can be added to the SD card using any computer with a multimedia card reader. Once the base station detects an SD card inserted into the holder, it awaits data requests from the portable module. The portable module requests data when required and feeds these values into the DAC. The DAC output is low-pass filtered by the op amp, which also buffers the DAC output before it reaches the audio output…

    • 1415 Words
    • 6 Pages
    Good Essays
  • 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
  • Satisfactory Essays

    1. Home use for a family of four people who have broadband Internet access (e.g., DSL or cable)…

    • 256 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 3 Assignment 1

    • 3299 Words
    • 14 Pages

    Magnifier will allocate a section of your screen (by default at the top) where it will display a magnified version of what is under your mouse. It is also possible to configure it to follow the keyboard focus instead of the mouse position.…

    • 3299 Words
    • 14 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 3 Assignment 1

    • 1244 Words
    • 5 Pages

    Analysis and explanation of the threat and vulnerability pairs and their likelihood of occurrence. The chart explains the aspects of the vulnerabilities and threats. b\Because we have no data on these threats on the amount of occurrences we cannot assign an impact rating or a probability rating in which is high medium an low (reference page 121 of book)…

    • 1244 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    NTFS is the newer filing system from Windows only Windows 2000 and higher use NTFS and FAT32. Which file system is intended primarily for use in large USB flash drives? I think it would be NTSF it a little more better an newer when it comes to the new OS out there like windows 8/7/ and maybe Vista XP just in case you have application that might run better on vista and XP. Plus since USB didn’t come out until Windows 98 well that when I first saw a USB port…

    • 462 Words
    • 2 Pages
    Satisfactory 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 1

    • 2136 Words
    • 9 Pages

    Sorting, Filtering, and Paging with the Entity Framework in an ASP.NET MVC Application ................... 55…

    • 2136 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IT302 assignment 5

    • 356 Words
    • 2 Pages

    d. If you want vsftpd to run in standalone mode, what do you need to set in vsftpd.conf?…

    • 356 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    IT321 Final Exam Paper

    • 1235 Words
    • 5 Pages

    A review guide is just that, a guide. It is not a blueprint of what you will be tested on. This guide will consist of key points that have a very high probability of being on the quiz/test/exam that you will see. I feel review guides are important because students new to the topic may waste time and study the wrong materials. This normally leads to frustration and concepts not covered that are deemed important in not only passing this course, but what would/could be asked of the student in a real world situation.…

    • 1235 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    The user domain contains the employees that will be accessing resources in the network. Users access systems, applications, and data within the rights and privileges defined by the acceptable use policy. The AUP must be followed at all time or the user may be terminated. There are threats ranging from lack of awareness to blackmail and extortion. All employees are responsible for their own actions when using the network. The users will all be expected to read and abide by the acceptable use policy. (Kim & Solomon, 2012)…

    • 539 Words
    • 3 Pages
    Good Essays
  • Good Essays

    pt2520 assignment 1

    • 466 Words
    • 2 Pages

    Let’s get the definition out the way, the standard meaning if you will SQL or “sequel” to some is a special-purpose programming language designed for managing data held in a relational database management system (RDBMS). Now that we got that out the way, let’s get to the first question.…

    • 466 Words
    • 2 Pages
    Good Essays
  • Good Essays

    In order to get any new technology out to the public there are certain procedures and documentations that a publisher must go through. I won’t be going over the entire process but instead I’ll be focusing on two areas which are Request for Comments (RFC) and an Internet Draft. Even the most popular networking technologies used today like IP and Ethernet had to go through these processes at some point. I’ll also be explaining the organizations that must produce the documentation and the processes to produce said documents.…

    • 634 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    COM 100 Exam 1

    • 1961 Words
    • 9 Pages

    You will have 60 minutes to complete the exam from the time it is distributed. You will have ample time to read each test item carefully and respond to each test item thoughtfully. Test items are not intended to be tricky, but rather to assess the depth of your understanding.…

    • 1961 Words
    • 9 Pages
    Powerful Essays