Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Traces that verify the following algorithm for the following test cases (trace.xlsx, trace.csv, or trace.ods): Adding a record to an empty list Adding a record

Traces that verify the following algorithm for the following test cases (trace.xlsx, trace.csv, or trace.ods):

Adding a record to an empty list

Adding a record to a list with two records (every accuont number is different form others, and the new record is to be inserted into the middle.)

Adding a record to a list with two records (the first existing record has the same account number as that of the new record)

image text in transcribed

In the following I'm writing both pseudocodes using terms from the given vocabulary as instructed Pseudocode: deleteRecord(start of the list) 1. 2. temp- start of the list while (temp is not equal to NULL) do temp2 = next field of record from temp a. b. delete record element temp temp temp2 c. 3. 4- done with while loop start of the list = NULL End of deleteRecord Pseudocode: addRecord (start of the list, the record element to be entered) 1. 2. temp- start of the list if temp is NULL a. temp new record element b. next field of new record is NULL 3. while ( next field of temp is not equal to NULL) do next record of temp pointed element a. temp2= b. if yearofbirth of new record is greater than or equal to temp2's same field i. 11. iii. next record of temp new record element next record of new record = temp2 exit from while loop c. else temp temp2 4. done with while loop End of addRecord In the following I'm writing both pseudocodes using terms from the given vocabulary as instructed Pseudocode: deleteRecord(start of the list) 1. 2. temp- start of the list while (temp is not equal to NULL) do temp2 = next field of record from temp a. b. delete record element temp temp temp2 c. 3. 4- done with while loop start of the list = NULL End of deleteRecord Pseudocode: addRecord (start of the list, the record element to be entered) 1. 2. temp- start of the list if temp is NULL a. temp new record element b. next field of new record is NULL 3. while ( next field of temp is not equal to NULL) do next record of temp pointed element a. temp2= b. if yearofbirth of new record is greater than or equal to temp2's same field i. 11. iii. next record of temp new record element next record of new record = temp2 exit from while loop c. else temp temp2 4. done with while loop End of addRecord

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

What are the broad approaches to improvement? L025

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago