Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

checking if the file is open correctly in the GenerateFrequencyTable function. checking the return value of aFile.open() to make sure the file was opened correctly.

image text in transcribedchecking if the file is open correctly in the GenerateFrequencyTable function. checking the return value of aFile.open() to make sure the file was opened correctly.

checking the return value of aFile.get() to make sure the file was read correctly.

checking if aFile.close() is successful in the GenerateFrequencyTable function.

checking the return value of aFile.close() to make sure the file was closed correctly.

The ClearTree function should also be checking if _curr is not null before trying to delete it.

checking the return value of aFile.seekg() to make sure the file was seeked to the correct position.

checking the return value of aFile.read() to make sure the file was read correctly.

checking the return value of bts.Write() to make sure the data was written correctly.

checking the return value of bis.Read() to make sure the data was read correctly.

checking the return value of aFile.write() to make sure the data was written correctly.

I need help with some checking pls i don't know where to start off to make sure that all this is being checked

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

Students also viewed these Databases questions