Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve all problems below 2. Write a program that uses parallel arrays to keep track of 5 courses. Each course will have a discipline code

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Solve all problems below

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
2. Write a program that uses parallel arrays to keep track of 5 courses. Each course will have a discipline code (like MTH or CS), a course number (use only integers), and a course title (like "Computer Science I"). There should be 5 functions: 1. intro ( ) - instructions about what is coming up 2. void fillCourses( ..... with parameters for the 3 arrays .... ) 3. int courseSearch( .... with parameter for the titles array and for a course title .... ) - the function returns -1 if the course title is not found; otherwise, it returns the element number of the array where the course title was found (There should be a prompt and input in the main() function, where the user enters a course title.) 4. void showCourses( .... with parameters for the 3 arrays ... ) 5. void showOneCourse( ... with parameters for the 3 arrays and for the element number of where the course searched for is found) - displays the discipline and course number of the course searched for. I SAMPLE RUNS:In a Layer 2 network, broadcasting refers to sending traffic to all nodes on a network. Layer 2 broadcast traffic stays within a local area network (LAN) boundary: known as the broadcast domain. Layer 2 broadcast broadcast traffic sent to the broadcast domain using a MAC address FF:FF:FF:FF:FF:FF. Every device in the broadcast doamin recognizes this MAC address and passes the broadcast traffic on to the other devices in the broadcast domain, if applicable. Broadcasting can be compared to unicasting(sending traffic to single node) or multicasting(delivering traffic to a group of nodes simultaneously). Layer 3 broadcast traffic, however is sent to all the nodes present in the network using a broadcast network address. Data-link layer frames are created for broadcasting purposes, which is used in following situations: 1) Address Resolution Protocol (ARP) uses broadcasting to map MAC addresses to IP addresses, ARP dynamically binds the IP address to the correct MAC address. Before IP unicast packets can be sent, ARP discovers the MAC address used by the Ethernet interface where the IP address is configured. 2) DHCP uses broadcasting to dynamically assign IP addresses to hosts on a network segment or subnet. 3) Routing Protocols use broadcasting to advertise routes. Excessive broadcast traffic can sometimes create a broadcast storm. A broadcast storm occurs when messages are broadcast on a network and each message prompts a receiving node to respond by broadcasting its own messages on the network. This, in turn, prompts further responses that create a snowball effect. The LAN is suddenly flooded with packets, creating unnecessary traffic that leads to poor network performance or even a complete loss of network service. In our question, a network frame, let it be framed originates from Netwrok Adapter A and is destined for Network Adapter AB1 and its source must be Computer A. A network frame, let it be frame2 originates from Netwrok Adapter C and is destined for Network Adapter BC2 and its source must be Computer C.Question 13 4 pts Which of the following would be an appropriate fiscal policy to deal with a high rate of inflation? Increase taxes Decrease taxes Decrease money supply O Increase government spending Question 14 14 ptsQuestion 16 2.5 pts The results of a study conducted by Dr. Burns indicated that the correlation between children's aggressive behavior and the number of friends they had was -.80. This correlation coefcient indicates that Q) The less aggressive the child is, the fewer friends a child has. 0 The more aggressive the child is, the fewer friends the child has. 0 A child's aggressive behavior and number of friends are not related. 0 The more aggressive the child is, the more friends the child has. SQL Questions: Write the following SQL queries: 1. Print the names of professors who work in departments that have fewer than 50 PhD students. 2. Print the name(s) of student(s) with the lowest gpa. 3. For each Computer Sciences class, print the cno, sectno, and the average gpa of the students enrolled in the class. 4. Print the course names, course numbers and section numbers of all classes with less than six students enrolled in them. 5. Print the name(s) and sid(s) of the student(s) enrolled in the most classes. 6. Print the names of departments that have one or more majors who are under 18 years old. 7. Print the names of students who are taking both a Computer Sciences course and a Mathematics course. 8. For each department that has one or more majors with a GPA under 1.0, print the name of the department and the average GPA of its majors

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

Students also viewed these Law questions

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago