Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been given a file with two columns: a student id and an integer (whole number) mark for an assignment between 0 and 40

You have been given a file with two columns: a student id and an integer (whole number) mark for an assignment between 0 and 40 inclusive. The file will look something like:

123123 23

124124 25

143124 10

124234 13

It is not known at the outset how many assignment marks are in the file, however the file will be terminated by EOF (end of file).

a. Draw a flowchart (following the conventions used in class) that reads the file and then calculates and prints the number of students who received a mark higher than 20.

b. What is the likely complexity of your program using big-O notation? Clearly point out what the primary parameters are and define your terms.

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

Students also viewed these Databases questions

Question

=+ Be able to differentiate development from discipline.

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago