Question
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 .



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 students 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.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

ˋ (Consider , as a function) you povide a student id Will retun you students mavsr ce be represented as U(stud enfid) ma KS e-g, UC,21123) 23

Add a comment
Know the answer?
Add Answer to:
I need to be done question 2 , but im posting both questions as you have...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Kindly solve this using C PROGRAMMING ONLY. 4. Write a program marks.c which consists of a...

    Kindly solve this using C PROGRAMMING ONLY. 4. Write a program marks.c which consists of a main function and three other functions called. readmarks , changemarks (, and writemarks() The program begins by calling the function readmarks () to read the input file marksin. txt which consists of a series of lines containing a student ID number (an integer) and a numeric mark (a float). Once the ID numbers and marks have been read into arrays (by readmarks () the...

  • Untitled - Notepad File Edit Format View Help Algorithms 1.You have been given a 1le with two columns: a name and an integer (whole number representing how many aquatics training sessions the per...

    Untitled - Notepad File Edit Format View Help Algorithms 1.You have been given a 1le with two columns: a name and an integer (whole number representing how many aquatics training sessions the person has attended in semester 1 between 0 and 24 inclusive. The 1le will look something like: Ada 22 Jordan 10 Anita 15 Xavier 24 are in the 1le, however the 1le will be terminated by It is not known at the outset how many rows EOF (end...

  • Matlab question Task 2 Download the ENG1060studentmarks.txt file from the Moodle. The file contains the following...

    Matlab question Task 2 Download the ENG1060studentmarks.txt file from the Moodle. The file contains the following information: 1. Column 1: Student ID 2. Column 2--11: Lab marks (/10) worth 2% each (20% total of final grade) 3. Column 12: Assignment mark (/10) worth 10% of the final grade 4. Column 13: Exam mark (100) worth 70% of the final grade a) Write a function that accepts a student's laboratory, assignment and exam marks as inputs to determine the final mark...

  • Must be in Python 3 exercise_2.py # Define the Student class class Student():    # Ini...

    Must be in Python 3 exercise_2.py # Define the Student class class Student():    # Initialize the object properties def __init__(self, id, name, mark): # TODO # Print the object as an string def __str__(self): return ' - {}, {}, {}'.format(self.id, self.name, self.mark) # Check if the mark of the input student is greater than the student object # The output is either True or False def is_greater_than(self, another_student): # TODO # Sort the student_list # The output is the sorted...

  • Part 1 Project description: You will need to select a material for “Frame of a Sport...

    Part 1 Project description: You will need to select a material for “Frame of a Sport Car" using the criteria explained in chapter 7 The project is a short formal report and should include the following: . Cover page (the grading tool above and must be e-signed) • Table of content, figures and tables • Introduction (1 paragraph) • Theory about the part and its application (1 paragraph) The four steps of selecting material: (max 3 pages) Step 1- Translation:...

  • 3. Suppose the University has two types of academics: students and lecturers. Both of these have...

    3. Suppose the University has two types of academics: students and lecturers. Both of these have names and ids, but students attend lectures while lecturers give them. class Student private: string name; string id; public: Student (string name, string id); string getName ); string getIDO; void attendLecture(); class Lecturer private: string name; string id; public: Lecturer(string name, string id); string getName; string getIDO; void giveLecture (); a) Write the header for a class called Academic and update the Student and...

  • Question 1. Consider these real-valued functions of two variables: (a) i) What is the maximal dom...

    Question 1. Consider these real-valued functions of two variables: (a) i) What is the maximal domain, D, for the functions f and g Write D in set notation (ii) What is the range of f and g? Is either function onto? ii) Show that f is not one-to-one iv) Find and sketch the level sets of g with heights: zo- 0, 0 2, 20 4 Note: Use set notation, and draw a single contour diagram.) v) Without finding Vg, on...

  • Files given in this assignment (right-click on the file to download) Assignment7.cpp (need to complete) Student.h...

    Files given in this assignment (right-click on the file to download) Assignment7.cpp (need to complete) Student.h (Given. Just use it, don't change it!) Student.cpp (Partially filled, need to complete) 1. Assignment description In this assignment, you will write a simple class roster management system for ASU CSE100. Step #1: First, you will need to finish the design of class Student. See the following UML diagram for Student class, the relevant header file (class declaration) is given to you as Student.h,...

  • #5 - Question 5 of 33 (1 point Question Attempt 1 of 1 Timo Remaining: 2:55:24...

    #5 - Question 5 of 33 (1 point Question Attempt 1 of 1 Timo Remaining: 2:55:24 Haley V O OO 10 12 33 The entire graph of the function is shown in the figure below. Write the domain and range of f using interval notation. (a) domain (b) range - (0,0) (0) (0,0) (c) © OVE -00 Submit Assignment Continue

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT