Question
Open the file Cybersecurity
* Courses.txt and read in all of the USF
cybersecurity core courses.
*
* Create a linked list with each node
* containing the following variables:
* courseID, courseName, taken, next.
*
* Ted has completed the following courses:
* IT Concepts, Foundations of
* Cybersecurity, Human Aspects of
* Cybersecurity, Human Computer Interfaces,
* and Web Systems for IT
*
* Mark each of these courses as being
* "taken" in the linked list.
*
* Traverse the linked list and print out
* all of the courses that Ted still needs
* to take in order to graduate.
(picuture below is the txt file )
SAVE
AI-Generated Solution
info
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution
to generate a solution
Click the button to generate
a solution
a solution
Knowledge Booster
Similar questions
- The file LabChapter7Problem3.txt has 100 records and is formatted as follows: Emp ID Title First Name Middle Initial Last Name Mother's Maiden Name Age in Yrs. Create a Structure with the file’s information: Employee Number, Title, First Name, Middle Initial, Last Name, Mother’s Maiden Name and Age. Sort the Structure through ascending values of the Age variable using the Enhanced Bubble Sort Algorithm Show on screen sorted records 55-65 and create a new file with all sorted records called LabChapter7Problem3SortedRecords.txt. Use the following format for both the screen output and the file created: ------------------------------------------------------------------ | Employee Number | Full Name | Age | ------------------------------------------------------------------ | 123456 | Mr. Ranma P Saotome Tendo | 21 | ------------------------------------------------------------------ | 654321 | Mr. Goku A Son Kakarot…arrow_forwardMid_Exam I (page 3 of 37) qc.ca/mod/quiz/attempt.php?attempt=350270&cmid=76128&page=2 English (en) - Question 3 Not yet answered Marked out of 1.00 P Flag question Previous page X + - Quiz 1 Describe what is wrong with the following code: CREATE TABLE CUSTOMER (ID NUMERIC (2) PRIMARY KEY, NAME CHAR (5), ADDRESS VARCHAR (100)); INSERT INTO CUSTOMER VALUES (123, JOHN', 'MONTREAL) INSERT INTO CUSTOMER VALUES (123, JOHN SMITH', 'MONTREAL) 1 A- B I E E Jump to... 95 E D210 ➜ Time left 1:12:53 Next pagearrow_forward2. Each student at Middlesex County College takes a different number of courses, so the registrar has decided to use linear linked lists to store each student's class schedule and an array to represent the entire student body. A portion of this data structure is shown below: link Sec cr CSC16213 →HISHO 24 $||1|| 1/1234 2/2 357 CSC236/4 37 These data show that the first student (ID: 1111) is taking section 1 of CSC162 for 3 credits and section 2 of HIS101 for 4 credits; the second student is not enrolled; the third student is enrolled in CSC236 section 4 for 3 credits. s Write a class for this data structure. Provide methods for creating the original array, inserting a student's initial class schedule, adding a course, and dropping a course. Include a menu-driven program that uses the class.arrow_forward
- Describe a situation where an array is more suitable than a linked list in terms of access and retrieval efficiency. Justify your choice.arrow_forwardPlease help me write the following function (see the photos for context of the problem): follow_trail(filename, treasure_map, start_row, start_col): Takes as inputs a string corresponding to a filename, a list of lists corresponding to a treasure map, and two non-negative integers representing a row and column index. Follows the trail in the given treasure map, starting at the given row and column index. Following the trail means to look at each character of the trail and perform the appropriate operation for that character: '>', '<', 'v', ' ∧': Continues following the trail by moving to the character to the right, left, below or above the current trail character, respectively. '.': Creates a new map file, with 'new_' prepended to the current map filename, and stores the same treasure map but with an X at the current position. Then, returns a tuple of three elements: the first being -1, and the latter two being the current row and column index. '*': Returns a tuple of three…arrow_forwardSuppose you have the following information: Name ID GPA sami 102 90 sara 550 66 A. Define a CLIPS template "student" to represent the elements name, id, gpa. B. Add the two records to the database. Your answerarrow_forward
- program9_1.pyThis assignment requires you to create a dictionary by reading the text file created for the Chapter 6 assignment. The dictionary should have player names for the keys. The value for each key must be a two-element list holding the player's goals and assists, respectively. See page 472! Start with an empty dictionary. Then, use a loop to cycle through the text file and add key-value pairs to the dictionary. Close the text file and process the dictionary to print the stats and determine the top scorer as before. In fact, much of the code used in program6_2.py can be copied and used for this program. Printing the stats for each player is the most challenging part of this program. To master this, refer to the examples in the zip file that can be downloaded from the "Dictionary values can be lists" link in the "Learn Here" part of this module. NOTE: you do not need to submit the text file. Submit just this program. The required output should be the same well-formatted table as…arrow_forwardWhat is associated performance of merge sort?arrow_forward
arrow_back_ios
arrow_forward_ios