Securing Higher Grades Costing Your Pocket? FLAT 25% OFF on all orders
loader

Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!

Stuck on Your Question?

Get 24x7 live help from our Top Tutors. All subjects covered.

Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

loader
250 words

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Students Who Viewed This Also Studied

67 Pages
Benefits of an Aged Care Facility

1 Student name Department, University Course name Professor name Due date 2 Introduction Mabel Winter, a 90 -year -old widowed lady, was hospitalized following ...

Course

INFT2060

Subject

Programing

University

The University of Newcastle

Season

Fall

72 Pages
Object oriented Paradigm

Now r ec ru it in g Na vy C om munic a tio n, I T & A PPLY N OW P yth on b re a k , c on tin ue, p ass s ta te m en ts w it h E xa m ple s Th e c o n ce p t o f l o op s i s a va il a b le ...

Course

MIS501

Subject

Programing

University

Torrens University

Season

Spring

6 Pages
Diagrams And Coding

MI S501 Principles of Programming The Assignment required the following ways Pseudocode Flow Chart UML Diagram Flow Chart Detail’s Link Share: Python break, continue, ...

Course

MIS501

Subject

Programing

University

Torrens University

Season

Spring

63 Pages
Meet Business Needs

1 MIS501 Principles of Programming Assessment 2 – Business Case Study Case Scenario COMP101 Foundations of Computer Systems is a first -year introductory subject in both the Bachelor ...

Course

MIS501

Subject

Programing

University

Torrens University

Season

Spring

COS10003 Computer and Logic Essentials

Question

Answered

Question:

Aim

This assessment task allows you to demonstrate your problem solving ability on problems covering counting, algorithms, complexity and graphs.

Questions

Counting

For all parts of this question, working is required, including combinatoric/factorial notation as needed as well as final answers. An answer consisting of solely an integer will be awarded 0 marks.

** [2 + 2+ 2 = 6 marks] A committee of 9 persons is to be chosen from 7 lecturers and 10 students so as to contain at least 2 lecturers and 5 students. Find the number of ways a committee can be formed

i. containing at least 2 lecturers and 5 students

ii. if 5 particular students are always present in the committee

iiii. when 5 particular students are never together

** [2 + 2 = 4 marks] A traveller forgets their passcode consisting of four digits. However, he remembers that his passcode has the following digits in it: 3, 2, 7, 4. Find the total number of trials necessary to obtain the correct passcode:

if a number is repeated

if a number is not repeated

[2 marks] ** Four dice are rolled. Find the number of possible outcomes in which at least one die shows a 6.

[2 marks] ** There are twelve units titled COS1, COS1, COS3,...COS12. Out of the twelve units, six units are to be arranged in such a way COS1 must occur whereas COS4 and COS5 do not occur. Find the number of such possible arrangement.

[1 mark] * There are seven pens in drawer A and seven notebooks in drawer B. You have been asked to match each pen in drawer A with a notebook in drawer B. What is the total number of ways this can be done?

Algorithms

[7 marks] You have been given a file with two columns containing the names of students and the grade they got in a Computer Science course. The grading has the following rules: HD (score is greater than 79), D (Score is greater than 69), C (score is greater 59), P (score is greater than 49), and F (score is less than 50). The file will look something like:

Aakaansh 87

Aaron 69

Erika 80

Linh 71 ...

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

  1. * [3 marks] Draw a flowchart (following the conventions used in class) that reads the file and then calculates and prints the number of students that scored HD, D, C, P, and F.
  2. * [2 marks] Draw a flowchart that reads the file and then calculates and prints the average score in the course.
  3. ** [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.
** [5 marks] Write a recursive function decimalToBinary(n), using the pseudocode principles covered in the lecture, to convert a decimal number to its binary equivalent.

You may also assume that n will be greater than 0 – error checking is not needed. 

Submission of actual code (e.g., in Ruby or Python or any other programming language) will be awarded zero marks – we are seeking pseudocode. Answers using iteration will be marked on pseudocode alone and cannot receive full marks.

Graphs and trees

[7 marks] Using the following graph representation (G(V,E,W)):

  • V= {6, 7, 8, 9, 10, 11, 12}
  • E= {{6, 8}, {6, 10}, {6, 12}, {7, 8}, {7, 9}, {7, 11}, {8, 9}, {8, 10}, {8, 12}, {10, 12}, {11, 12}}

  • W(6, 8) = 7, W(6, 10) = 12, W(6, 12) = 24

  • W(7, 8) = 17, W(7, 9) = 14, W(7, 11) = 21

  • W(8, 9) = 9, W(8, 10) = 10, W(8, 12) = 25 W(10, 12) = 23, W(11, 12) = 16 
  1. * [3 marks] Draw the graph including weights.
  2. ** [2 + 2 = 4 marks] Given the following algorithm for finding a minimum spanning tree for a graph: Given a graph (G(V,E)) create a new graph (F) with nodes (V) and no edges

Add all the edges (E) to a set S and order them by weight starting with the minimum weight While S is not empty and all the nodes V in F are not connected:

Remove the edge s from set S with the lowest weight

When s is added to F:

If it does not cause a cycle to form, keep it

Else discard it from F

Using your graph from a) as G,

  • Provide the order of the edges as they are removed from S, and note whether it is kept or discarded.
  • Draw the resulting spanning tree F.

Probability

[6 marks] Show your workings on how you arrived at the final solution

[1+1+1+1 = 4 marks] * Two dice are rolled, find the probability that the sum is I. Greater than 1

  1. Equal to 7
  2. Equal to 13
  3. Less than 5
[2 marks] ** In a particular chemistry experiment, the probability of success is thrice the probability of failure. Find the probability of at least six successes in eight trials.

Use counting notation as part of your working.

COS10003 Computer and Logic Essentials

Answer in Detail

Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

26 More Pages to Come in This Document. Get access to the complete answer.

More COS10003 COS10003 Computer and Logic Essentials: Questions & Answers

Q
icon

We aren't endorsed by this University

Benefits of an Aged Care Facility

1 Student name Department, University Course name Professor name Due date 2 Introduction Mabel Winter, a 90 -year -old widowed lady, was hospitalized following a fall that culminated in a fracture on the right hip. An examination of her personal life at h ...

View Answer
Q
icon

We aren't endorsed by this University

Object oriented Paradigm

Now r ec ru it in g Na vy C om munic a tio n, I T & A PPLY N OW P yth on b re a k , c on tin ue, p ass s ta te m en ts w it h E xa m ple s Th e c o n ce p t o f l o op s i s a va il a b le i n a lm ost a ll p ro gra m min g l a n gu age s. P yth on l o op s h elp t o it e ra te o ve ...

View Answer
Q
icon

We aren't endorsed by this University

Diagrams And Coding

MI S501 Principles of Programming The Assignment required the following ways Pseudocode Flow Chart UML Diagram Flow Chart Detail’s Link Share: Python break, continue, pass statements with Examples (guru99.com) Submission of Assignment 2 today Posted on: S ...

View Answer
Q
icon

We aren't endorsed by this University

Meet Business Needs

1 MIS501 Principles of Programming Assessment 2 – Business Case Study Case Scenario COMP101 Foundations of Computer Systems is a first -year introductory subject in both the Bachelor of Information Technology and Diploma of Information Technology course at ABC Universi ...

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.io then please raise the content removal request.

Choose Our Best Expert to Help You

icon

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile Chat Now
Have any Query?
close
Subtraction Payment required!

Only one step away from your solution of order no.