a) Write pseudocode to set up a text file to store records like this, with one record
Question:
a) Write pseudocode to set up a text file to store records like this, with one record on every line.
b) Write pseudocode to append a record.
c) Write pseudocode to find and delete a record.
d) Write pseudocode to output all the records.
Transcribed Image Text:
TYPE TstudentRecord DECLARE name STRING DECLARE address : STRING DECLARE ClassName : STRING ENDTYPE
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (4 reviews)
a Open the text file for writing Create a student record type Declare variables for name address and ...View the full answer
Answered By
Churchil Mino
I have been a tutor for 2 years and have experience working with students of all ages and abilities. I am comfortable working with students one-on-one or in small groups, and am able to adapt my teaching style to meet the needs of each individual. I am patient and supportive, and my goal is to help my students succeed.
I have a strong background in math and science, and have tutored students in these subjects at all levels, from elementary school to college. I have also helped students prepare for standardized tests such as the SAT and ACT. In addition to academic tutoring, I have also worked as a swim coach and a camp counselor, and have experience working with children with special needs.
0.00
0 Reviews
10+ Question Solved
Related Book For
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams
Question Posted:
Students also viewed these Computer science questions
-
Gary Farmer had the following Section 1231 gains and losses during the 2016 tax year: Sold land acquired on December 3, 2005, at a cost of $24,000, for $37,000 on January 5, 2016. The cost of selling...
-
A file has r=20,000 STUDENT records of fixed-length. Each record has the following fields: NAME (30 bytes), SSN (9 bytes), ADDRESS (40 bytes), PHONE (9 bytes), BIRTHDATE (8 bytes), SEX (1 byte),...
-
Find a, b, c and d if (a) (b) (c) (d) a b b-c 3 1 2 2
-
Rice and Flower were partners sharing profit and loss equally. Statement of Financial Position as at 31 December 2020. Non current Assets Premises Machinery Vehicles Fittings Current Assets Inventory...
-
How much does a sleeping bag cost? Lets say you want a sleeping bag that should keep you warm in temperatures from 20F to 45F. A random sample of prices ($) for sleeping bags in this temperature...
-
1. Is the oral agreement enforceable? Why or why not? 2. Could the parole evidence rule apply here?
-
There are 2 cards of each type. Involve the board game Clue, which involves a deck of 21 cards: 6 suspects, 6 weapons, and 9 rooms. At the beginning of the game, 1 card of each of the 3 types is...
-
EFN the most recent financial statements for Last in Line, Inc., are shown here: Assets and costs are proportional to sales. Debt and equity are not. A dividend of $1,560 was paid, and the company...
-
2 What is the focus of the parabola y = -4x - 1? Simplify any fractions. DO Submit
-
Dwight Donovan, the president of Donovan Enterprises, is considering two investment opportunities. Because of limited resources, he will be able to invest in only one of them. Project A is to...
-
Explain, using diagrams, the process of reversing a queue using a stack.
-
Data is stored in the array NameList [1:10]. This data is to be sorted using a bubble sort: a) A special case is when NameList is already in order. The algorithm above is applied to this special...
-
A corporation issued $2,000,000 of common stock in exchange for $2,000,000 of fixed assets. Where would this transaction be reported on the statement of cash flows?
-
Find f'(x) for f(x) = (x + 2)(2x - 3)
-
How would these advantages differ from the advantages of using a long term perspective in managing our resources ?
-
You have a stock bottle of 3mM tetrodotoxin solution, but your protocol states that you need 6ml of 1mM tetrodotoxin (MW-319.27 g/mol). How much of your 3mM stock solution (liquid) should you use to...
-
Suppose that Britain pegs the pound to gold at 7 pounds per ounce, whereas the exchange rate between pounds and U.S. dollars Is $1 = 0.14 1. What would an ounce of gold be worth In U.S. dollars...
-
U.S. Telephone Cellular sells phones for $100. The unit variablecost per phone is $50 plus a selling commission of 15% (based onthe unit sales price per phone). Fixed manufacturing costs total$1,180...
-
Airlines sometimes find themselves in price wars. Consider the following game: Delta and United are the only two airlines flying the route from Houston to Omaha. Each firm has two strategies: charge...
-
How does health insurance risk differ from other types of insurance risk (e.g., automobile or homeowners insurance)? What is the difference between cost sharing and cost shifting? Is retiree health...
-
Consider the following recursive mergesort algorithm (another classic divide and conquer algorithm). Mergesort was first described by John Von Neumann in 1945. The basic idea is to divide an unsorted...
-
Matrix multiplication plays an important role in a number of applications. Two matrices can only be multiplied if the number of columns of the first matrix is equal to the number of rows in the...
-
Consider the following portions of two different programs running at the same time on four processors in a symmetric multicore processor (SMP). Assume that before this code is run, both x and y are...
-
On 01 July 2020 Warne Ltd acquired 100% of the issued voting shares of Dhoni Ltd for consideration of $460,000. At the date of acquisition Dhoni Ltd equity balances were as follows: Issued capital...
-
How would the granting of stock options by an employer to a California resident be treated for federal and for state tax purposes? a. The granting of stock options is included in income for federal...
-
Following the completion of the inventory count, a business with a calendar year end adjusted the perpetual inventory records to the inventory count and prepared the year-end financial statements....
Study smarter with the SolutionInn App