Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to be done question 2 , but im posting both questions as you have to get the information from question 1 in order

I need to be done question 2 , but im posting both questions as you have to get the information from question 1 in order to answer question 2 .
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 t 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 14 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. 2. a. 1 mark] Using set notation, define the domain of the function as set S b. 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

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions