Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Hi guys I need to be done question 3 I am posting question one and two just in case if you need them. Stars indicate

Hi guys I need to be done question 3
I am posting question one and two just in case if you need them. image text in transcribed
image text in transcribed
Stars indicate difficulty: *Should be straightforward based on lecture and tutorial material *Should be more challenging but still based on lecture and tutorial material. *Might require some further thought or extra research beyond lecture and tutorial material 1. 8 marks] 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. 6 marks] 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. 2 marks] What is the likely complexity of your program using big-o notation? Clearly point out what the primary parameters are and define your terms. 2. [4 marks) Using the information from question 1, a function for the obtaining a student's assignment mark for unit U given a student id can be defined * [1 mark] Using set notation, define the domain of the function as set S * [1 mark] Using set notation, define the co-domain of the function as set M c. 2 marks] Will this function be an injection or surjection or both or neither? Justify your answer in a sentence or two

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_2

Step: 3

blur-text-image_3

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students explore these related Databases questions