CIS245_Week2_Powershell_Quiz
.docx
keyboard_arrow_up
School
ECPI University, Greensboro *
*We aren’t endorsed by this school
Course
245
Subject
Computer Science
Date
Jan 9, 2024
Type
docx
Pages
5
Uploaded by corada5995
Question 1 Partially correct Mark 0.3 out of 10 Question 2 Correct Mark 1.0 out of 10 Question 3 Correct Mark 1.0 out of 10 Question 4 Incorrect Mark 0.0 out of 1.0 Question 5 Incorrect Mark 0.0 out of 10 Question 6 Incorrect Mark 0.0 out of 10 Write the PowerShell command used to list examples using the Get-EventLog cmdlet. Get-Eventlog \x | -Topics |x | -Examples |-/ ‘ Get-Command ” Where || ” Get-Help Your answer is partially correct. You have correctly selected 1. Open the detailed help for the Get-Content cmdlet. List the argument value type for the -Path p If the p has no select switch. ‘ Noun | | Switch HModuIes“ Verb | Your answer is correct. Open the detailed help for the Get-Content cmdlet. List the argument value type for the -Raw p . If the p [Modules ][ Noun | [ string [ verb | has no arg select switch. Use PowerShell help to find cmdlets related to the Write-Host command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. Write-Output|‘ Write-Error ||Write-Debug|‘ Clear-Host Your answer is incorrect. Write the PowerShell command used to list examples using the Resolve-DnsName cmdlet. Get-Command | x | -Examples | x |Reso|ve-DnsName| x I Where I | 4 l Your answer is incorrect. Get-Help ” -Topics Use PowerShell help to find cmdlets related to the Start-Transaction command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. x | Undo-Transaction ||Comp|ete—Transaction Get-Transaction ” about_Transaction Your answer is incorrect.
Question 7 Use the information on the Get-EventLog detailed help page to determine the argument type for the -Newest parameter. Correct g Mark 1.0 out of 1.0 | String ” DateTime || Switch || String Array Your answer is correct. Question 8 Open the detailed help for the Get-Content cmdlet. Use help to mach the parameter to its description Partially correct :";a;k 2.0outeef Specifies the number of lines from the end of a file or other item. Tai s v Ignores newline characters and returns the entire contents of a file in one string. -Include % | % Specifies, as a string array, the item or items that this cmdlet includes in the operation. -Raw s | % Specifies the path to an item. -Path : Specifies the delimiter that Get-Content uses to divide the file into objects while it reads. | -Delimiter = Question 1 Use PowerShell help to find cmdlets related to the Read-Host command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. Incorrect Mark 0.0 out of 1.0 Clear-Host ” After-Host H Write-Host Your answer is incorrect. Question 2 Use the information on the Get-EventLog detailed help page to determine the argument type for the -LogName parameter. Correct Mark 1.0 out of 1.0 Switch ” Int32 “ Modules Your answer is correct. Question 3 What command would you use to answer the question “What is an alias?” Partially correct [ Gettep Jv [ v x [ - 1] Mark 0.5 out of 10 Your answer is partially correct. You have correctly selected 1.
Question 4 Open the detailed help for the Get-Content cmdlet. List the argument value type for the -Delimiter parameter. If the parameter has no argument enter switch. Incorrect Mark 0.0 out of 10 | String ” Noun || Modules ” Verb | Your answer is incorrect. Question 5 Write the PowerShell command used to list examples using the Set-Location cmdlet. Partially correct Get-Help ]V l -Examples lx l Set-Location lx Mark 0.2 out of 10 | Where | | -Topics || . ” Get-Command Your answer is partially correct. You have correctly selected 1. Question 6 Use PowerShell help to find cmdlets related to the Set-Location command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. Incorrect . « Mark 0.0 out of 10 Get-Location Push-Location ||After—Location Your answer is incorrect. Question 7 What command would you use to answer the question “What is a PowerShell provider?” Correct | Get-Help | v | about_Providers | v Mark 0.7 out of 10 | Y4 ” providers* ” Get-Command Your answer is correct. Question 8 Open the detailed help for the Get-EventLog cmdlet. Use help to mach the parameter to its description Correct :";gk BOeHE Specifies, as a string array, user names that are associated with events. s v Specifies the event log. ogName s v Specifies the data and time that this cmdlet get events that occur before. s v Specifies a remote computer. : v Specifies the maximum number of events that this cmdlet gets. s v Specifies the data and time that this cmdlet get events that occur after. s v
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Hi i need an implementation on the LinkListDriver and the LinkListOrdered for this output :
please help me i need this to run
Enter your choice: 1Enter element: MaryList Menu Selections1. add element2_remove element3.head element4. display5.ExitEnter your choice: 3Element @ head: MaryList Menu Selections1-add element2-remove element3_head element4.display5-ExitEnter your choice:41. MaryList Menu Selections1. add element2. remove element3.head element4. display5. ExitEnter your choice:
LinkedListDriver
package jsjf;
import java.util.LinkedList;import java.util.Scanner;
public class LinkedListDriver {public static void main(String [] args){Scanner input = new Scanner(System.in);LinkedList<String> list = new LinkedList<String>();int menu = 0;
do {System.out.println("\nList menu selection\n1.Add element\n2.Remove element\n3.Head\n4.Display\n5.Exit");System.out.println();
System.out.print("Enter your choice: ");menu = Integer.parseInt(input.next());
switch (menu) {case…
arrow_forward
Which procedure in the link library displays “Press [Enter] to continue. . .” and waits for theuser to press the Enter key?
arrow_forward
.
arrow_forward
Given a list of employees, create a simple program that allows the user to insert, delete, display,
and search an employee. The program should input 10 full names of employees with employee
number as linked list. Also, a list of menus should be displayed.
These menus are Insert, Delete, Display and Search.
A. Insert - allows the user to insert one employee at a time with corresponding ID number
which serves as their link. All employees to be inserted must be inserted at the
end of the list.
B. Delete – allows the user to delete the employee from the list
C. Display – allows the user to display the list of employees
D. Search - allows the user to find a certain employee
These menus should be in loop once you test every operation based on the listed menu.
Use linked list as a data structure in generating a list of employees, and
Perform basic operations that can be applied in a linked list
arrow_forward
Create a chatbot that takes input questions from the user converts that input question to a list and then matches that question list with already saved appropriate (suitable) answer list.Try to save two to three appropriate answers in list for a single question then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with any of the answers present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear
**coding language python
**(hint) take the question as input from the user and then give answer for that question. You can make use of find function to see any matching words for which you are providing answers or can use any other similar method
***try using basic programming techniques in…
arrow_forward
here is the javascript code that has to be modified
window.addEventListener("DOMContentLoaded", function () {
document.querySelector("#fetchQuotesBtn").addEventListener("click", function () {
// Get values from drop-downs
const topicDropdown = document.querySelector("#topicSelection");
const selectedTopic = topicDropdown.options[topicDropdown.selectedIndex].value;
const countDropdown = document.querySelector("#countSelection");
const selectedCount = countDropdown.options[countDropdown.selectedIndex].value;
// Get and display quotes
fetchQuotes(selectedTopic, selectedCount);
});
});
function showAnonymousQuotes(count) {
let html = "<ol>";
for (let c = 1; c <= count; c++) {
html += `<li>Quote ${c} - Anonymous</li>`;
}
html += "</ol>";
document.querySelector("#quotes").innerHTML = html;
}
function fetchQuotes(topic, count) {
// TODO: Modify to use XMLHttpRequest
// TODO: Remove the call to showAnonymousQuotes()
showAnonymousQuotes(count);
}
function…
arrow_forward
Q2. Using comments on each line, generate the complete object code for the following SIC-XCprogram. NB: LDX = 04 LDA = 00 LDB = 68 STA = OC ADD = 18 TIX = 2C JLT = 38 RSUB = 4C Label Mnemonic OperandSUM START 0 LDX #0 LDA #0 +LBA #TABLE2 BASE TABLE2LOOP ADD TABLE, X ADD TABLE2, X TIX COUNT JLT LOOP +STA LOOP RSUB COUNT RESW 1TABLE RESW 2000TABLE2 RESW…
arrow_forward
astfoodStats Assignment Description
For this assignment, name your R file fastfoodStats.R
For all questions you should load tidyverse, openintro, and lm.beta. You should not need to use any other libraries.
suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(openintro))
suppressPackageStartupMessages(library(lm.beta))
The actual data set is called fastfood.
Continue to use %>% for the pipe. CodeGrade does not support the new pipe.
Round all float/dbl values to two decimal places.
All statistics should be run with variables in the order I state
E.g., "Run a regression predicting mileage from mpg, make, and type" would be:
lm(mileage ~ mpg + make + type...)
To access the fastfood data, run the following:
fastfood <- openintro::fastfood
Create a correlation matrix for the relations between calories, total_fat, sugar, and calcium for all items at Sonic, Subway, and Taco Bell, omitting missing values with na.omit().
Assign the…
arrow_forward
In python please
arrow_forward
in option 4 i want it to tell also which string is coming double it should show itOption 4. Searching for the substring iss in mississippi must display the followingmessage:The substring iss is found 2 time(s) in the input string.Option 7. This option will display the current content of the linked list reflecting possiblechanges as a result of menu options chosen by the user.
you can see picture for helppackage javaapplication2;
import java.util.*;
public class WordOp
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the word in lowercase letters :");
String word = sc.nextLine();
char c ;
String temp;
int count;
LinkedList<Character> linkedlist= new LinkedList<>();
while(true)
{
//ask the user for the choice of operation
System.out.print("\n*******Word Operations******\n1.Remove adjacent dupicate character\n2.create LinkedList Vowels\n3.delete occurence of character\n4.search substring\n5.Display the linked list in…
arrow_forward
In Dist.txt it will add vaccine in storage like how many vaccines are needed and from where is coming and Add search function in which from user it will check how many vaccines are available in storage this will be done in Vaccine.txt somewhat like in image given
#include <stdio.h>#include <stdlib.h>#include <string.h>
struct vacc{ char vaccName[15];
char vaccCode[2];
char country[15];
int qty;
float population;
}v[10];
// Function Declarations
void create_inventory();
void update_vacc_qty();
int search_vaccine();
void display_vaccine();
// Main Function starts here
int main()
{
//create_inventory();
//display_vaccine();
//search_vaccine();
update_vacc_qty();
return 0;
}
//Function to Create Vaccine.txt as per the given table
void create_inventory()
{
int option = 1;
// variables to collect data as per table given
char vaccName[15];
char vaccCode[2];
char country[15];
int qty;
float populaion;
//File definition
FILE *infile;
infile = fopen("Vaccine.txt","w");…
arrow_forward
JavaScript Please
//6. addButtonListeners//a. Selects all buttons nested inside the main element//b. If buttons exist://c. Loop through the NodeList of buttons//d. Gets the postId from button.dataset.postId//e. Adds a click event listener to each button (reference addEventListener)//f. The listener calls an anonymous function (see cheatsheet)//g. Inside the anonymous function: the function toggleComments is called with the//event and postId as parameters//h. Return the button elements which were selected//i. You may want to define an empty toggleComments function for now. Not all tests//will pass for addButtonListeners until toggleComments exists. I recommend//waiting on the logic inside the toggleComments function until we get there.function addButtonListeners() { }
arrow_forward
addButtonListenersa. Selects all buttons nested inside the main elementb. If buttons exist:c. Loop through the NodeList of buttonsd. Gets the postId from button.dataset.postIde. If a postId exists, add a click event listener to the button (referenceaddEventListener) - inside the loop so this happens to each buttonf. The listener calls an anonymous function (see cheatsheet)g. Inside the anonymous function: the function toggleComments is called with theevent and postId as parametersh. Return the button elements which were selectedi. You may want to define an empty toggleComments function for now. The listenertest will NOT pass for addButtonListeners until toggleComments is completed.Nevertheless, I recommend waiting on the logic inside the toggleCommentsfunction until we get there.
const addButtonListeners = function(){ const buttons = document.querySelectorAll("main")[0].querySelectorAll(`button`); buttons.forEach((button) => {…
arrow_forward
When it loads, the list of car objects should be created by reading from the above file. When Add Car
button is clicked the following screen should appear:
a Add a New Car
Model:
Year:
Çolor.
Mleage:
Cancel
Add
When the user fills out new car information and clicks "Add", the new car object is created, the form is
closed, so that the main form is shown again, and the newly created car object is added to the list of
cars. When "View cars" button is clicked, the following form shows, displaying all car objects currently in
the list (use Getlotel) function here. You will also have to send the list of cars from the main form to tis
form. To do this in the view form have a public variable for list of cars, and assign to it the list of cars
from the main form).
ag View Cars
Model: Accord, Year.20166 Year. 20166, Color: Blue, Mieage: 0
Model: Passat, Year:2014 Year: 2014, Color: White, Mileage: 20000
Close
arrow_forward
//18. refreshPosts//a. Dependencies: removeButtonListeners, deleteChildElements, displayPosts,//addButtonListeners//b. Is an async function//c. Receives posts JSON data as a parameter//d. Call removeButtonListeners//e. Result of removeButtonListeners is the buttons returned from this function//f. Call deleteChildElements with the main element passed in as the parameter//g. Result of deleteChildElements is the return of the main element//h. Passes posts JSON data to displayPosts and awaits completion//i. Result of displayPosts is a document fragment//j. Call addButtonListeners//k. Result of addButtonListeners is the buttons returned from this function//l. Return an array of the results from the functions called: [removeButtons, main,//fragment, addButtons]
Still fails help please
const refreshPosts = async (posts) => { if (!posts){ return undefined; } let buttons = removeButtonListeners(); let myMain = deleteChildElements(document.querySelector("main")); let…
arrow_forward
Direction: Continue the attached code below. It can
only insert a value to a linkedlist. Your goal is to
add new functionality to the linkedlist. You may
only choose 3 more functions:
1. getValue - this function should be able to display
a node by specifying its position(index).
2. clear - resets the linkedlist by assigning null to
head.
3. insertſewHead - this function can be used to
assign a new head to the linkedlist
4. insertAt this function can be used to insert a
node to a specific location.
S. displayAll this function will display all nodes
import java.util.Scanner;
class Mainll
{
public static void main(String() args) {
Scanner sc = new
Scanner(System.in);
Singlyll sll = new SinglyLL();
String msg = "Enter an action: (1)Insert
(2)Get an element, (3) clear, (0)Exit";
casel:
System.out.println("Enter a value:");
sll.insert(sc.next());
System.out.println("Successfully added a node!\n"
+ msg):
System.out.println(msg);
int choice = sc.nextInt();
while(choice != 0) {
switch(choice) {…
arrow_forward
PLEASE REFER TO THE IMAGES FOR INSTRUCTIONS
PLEASE USE STARTER CODE - CODE IN PYTHON3
### starter code
import random
def spider_web(web_map, starting_place, destination):
pass
def spider_web_rec(web_map, starting_place, destination, visited):
pass
def make_spider_web(num_nodes, seed=0):
if seed:
random.seed(seed)
web_map = {}
for i in range(1, num_nodes + 1):
web_map[f'Node {i}'] = []
for i in range(1, num_nodes + 1):
sample = random.sample(list(range(i, num_nodes + 1)), random.randint(1, num_nodes - i + 1))
print('sample', i, sample)
for x in sample:
if i != x:
web_map[f'Node {i}'].append(f'Node {x}')
web_map[f'Node {x}'].append(f'Node {i}')
return web_map
if __name__ == '__main__':
num_nodes, seed = [int(x) for x in input('Input num_nodes, seed: ').split(',')]
the_web = make_spider_web(num_nodes, seed)
print(spider_web(the_web, 'Node 1',…
arrow_forward
you have the listView and its inserted items..,
write in the box only the output without
other text (only the sum value)
do not write "the output is "or sum= just
number after press Buttonl (executing the
following code)
any
the listView name-->listViewl
ColumnHea... ColumnH... Column...
alio
-2
ali3
4
ali6
14
5
ali9
22
ali12
30
ali 15
38
For i = 2 To 3
Dim x As New ListViewItem(i)
x.SubItems.Add(i * 5)
x. SubItems.Add(CInt(i * 5/ 3))
ListView1.Items.Add(x)
Button1
Next
Dim sum As Integer
For i = 5 To ListView1.Items.Count - 1
sum += Val(ListViewl.Items (i).SubItems (0).Text) + Val(ListViewl.Items (i).SubItems (2).Text)
Next
MsgBox (sum)
Enter your answer
arrow_forward
Use Python Programming - restaurant reservation program. The application offers different reservation rate for adults and children. (see sample below)
RESTAURANT RESERVATION SYSTEMSystem Menua. View all Reservationsb. Make Reservationc. Delete Reservationd. Generate Reporte. Exit
2. When the VIEW RESERVATIONS is clicked, this will display all the reservations made:
# Date Time Name Adults Children 1 Nov 10, 2020 10:00 am John Doe 1 1 2 Nov 25, 202011:00 am Michelle Franks 2 1 3 Dec 10, 2020 9:00 am Ella Flich 1 1 4 Dec 21, 2020 12:00 pmDylan Cloze 2 1
3. If the user selects MAKE RESERVATION, the user needs to input the following:
a. Name (String)b. Date (String)c. Time (String)d. No of Adults (Integer)e. No of Children (Integer)
Note: Adult is 500 per head and Kids is 300 per head reservation, save the data in a text file.
4. If DELETE RESERVATION is selected, the user needs to input the reservation number to remove the existing reservation.
5. If the GENERATE REPORT is clicked,…
arrow_forward
Use Python Programming - restaurant reservation program. The application offers different reservation rate for adults and children. (see sample below)
RESTAURANT RESERVATION SYSTEMSystem Menua. View all Reservationsb. Make Reservationc. Delete Reservationd. Generate Reporte. Exit
2. When the VIEW RESERVATIONS is clicked, this will display all the reservations made:
# Date Time Name Adults Children 1 Nov 10, 2020 10:00 am John Doe 1 1 2 Nov 25, 202011:00 am Michelle Franks 2 1 3 Dec 10, 2020 9:00 am Ella Flich 1 1 4 Dec 21, 2020 12:00 pmDylan Cloze 2 1
3. If the user selects MAKE RESERVATION, the user needs to input the following:
a. Name (String)b. Date (String)c. Time (String)d. No of Adults (Integer)e. No of Children (Integer)
Note: Adult is 500 per head and Kids is 300 per head reservation, save the data in a text file.
4. If DELETE RESERVATION is selected, the user needs to input the reservation number to remove the existing reservation.
5. If the GENERATE REPORT is clicked,…
arrow_forward
Book reference: Windows PowerShell Step by Step 3rd Edition - Ed WilsonChapter 11
10. What is the use of the “Where” parameter in Select-Object?
Eg: $ $Query = "Select Name from Win32_Share where name = 'C$'"
11. What are some benefits of declaring a variable for a filter parameter?
Eg $Filter = "name='c$'"
arrow_forward
I'm not sure how to fix my error
import csv
#This is the classclass ConvertCSVToJSON: def __init__(self, headings, ID, linesFromFile, inputFileName, outputFileName="Project7Output.txt"): self.headings=headings # Headings (row 1 of the file) self.ID=ID self.linesFromFile=linesFromFile # rows2-end of file (EOF) self.outputFileName=outputFileName self.inputFileName=inputFileName
def createKeyValuePair(self, key, value): # Think about parameters and how the code will work result="\""+key+"\""+":"+value
return result
#create a line function/method in class to have access to headings and file.
def createLine(self, ID, line): #splits the line into different components lineComponets=line.split(",") dictionary={}#creats a dictionary for the componets
for i in range(len(self.heading)): dictionary[self.headings[i]]=lineComponents[i] #adds ID as a keyvalue pair dictionary["ID"]=str(ID) #should convert to json…
arrow_forward
Direction: Continue the attached code below. It can only insert
a value to a linkedlist. Your goal is to add new functionality to
the linkedlist. You may only choose 3 more functions:
1. getValue - this function should be able to display a node by
specifying its position(index).
2. clear-resets the linkedlist by assigning null to head.
3. insertNewHead this function can be used to assign a new
head to the linkedlist
4. insert At this function can be used to insert a node to a
specific location.
5. display All this function will display all nodes
arrow_forward
Direction: Continue the attached code below. It can only insert a value to a linkedlist. Your goal is to add new functionality to the linkedlist. You may only choose 3 more functions:
1. getValue - this function should be able to display a node by specifying its position (index).
2. clear - resets the linkedlist by assigning null to head.
3. insertNewHead this function can be used to assign a new head to the linkedlist
4. insertAt - this function can be used to insert a node to a specific location.
5. displayAll this function will display all nodes
import java.util.Scanner;
class MainLL
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
SinglyLL sll= new SinglyLL();
String msg = "Enter an action: [1] Insert, [2]Get an element, [3] clear, [0] Exit";
System.out.println(msg);
int choice = sc.nextInt();
while(choice != 0) {
switch(choice) {
case 1: System.out.println("Enter a value:");
sll.insert(sc.next());
System.out.println("Successfully added a node!\n"…
arrow_forward
Direction: Continue the attached code below. It can only insert a value to a linkedlist.
Your goal is to add new functionality to the linkedlist. You may only choose 3 more functions:
1. getValue - this function should be able to display a node by specifying its position (index).
2. clear - resets the linkedlist by assigning null to head.
3. insertNewHead
this function can be used to assign a new head to the linkedlist
4. insertAt - this function can be used to insert a node to a specific location.
5. displayAll this function will display all nodes
import java.util.Scanner;
class MainLL
{
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
SinglyLL sll= new SinglyLL();
String msg = "Enter an action: [1] Insert, [2]Get an element, [3] clear, [0] Exit";
System.out.println(msg);
int choice = sc.nextInt();
while(choice != 0) {
switch(choice) {
case 1: System.out.println("Enter a value:");
System.out.println("Successfully added a node!\n" + msg);
default:…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Related Questions
- Hi i need an implementation on the LinkListDriver and the LinkListOrdered for this output : please help me i need this to run Enter your choice: 1Enter element: MaryList Menu Selections1. add element2_remove element3.head element4. display5.ExitEnter your choice: 3Element @ head: MaryList Menu Selections1-add element2-remove element3_head element4.display5-ExitEnter your choice:41. MaryList Menu Selections1. add element2. remove element3.head element4. display5. ExitEnter your choice: LinkedListDriver package jsjf; import java.util.LinkedList;import java.util.Scanner; public class LinkedListDriver {public static void main(String [] args){Scanner input = new Scanner(System.in);LinkedList<String> list = new LinkedList<String>();int menu = 0; do {System.out.println("\nList menu selection\n1.Add element\n2.Remove element\n3.Head\n4.Display\n5.Exit");System.out.println(); System.out.print("Enter your choice: ");menu = Integer.parseInt(input.next()); switch (menu) {case…arrow_forwardWhich procedure in the link library displays “Press [Enter] to continue. . .” and waits for theuser to press the Enter key?arrow_forward.arrow_forward
- Given a list of employees, create a simple program that allows the user to insert, delete, display, and search an employee. The program should input 10 full names of employees with employee number as linked list. Also, a list of menus should be displayed. These menus are Insert, Delete, Display and Search. A. Insert - allows the user to insert one employee at a time with corresponding ID number which serves as their link. All employees to be inserted must be inserted at the end of the list. B. Delete – allows the user to delete the employee from the list C. Display – allows the user to display the list of employees D. Search - allows the user to find a certain employee These menus should be in loop once you test every operation based on the listed menu. Use linked list as a data structure in generating a list of employees, and Perform basic operations that can be applied in a linked listarrow_forwardCreate a chatbot that takes input questions from the user converts that input question to a list and then matches that question list with already saved appropriate (suitable) answer list.Try to save two to three appropriate answers in list for a single question then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with any of the answers present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear **coding language python **(hint) take the question as input from the user and then give answer for that question. You can make use of find function to see any matching words for which you are providing answers or can use any other similar method ***try using basic programming techniques in…arrow_forwardhere is the javascript code that has to be modified window.addEventListener("DOMContentLoaded", function () { document.querySelector("#fetchQuotesBtn").addEventListener("click", function () { // Get values from drop-downs const topicDropdown = document.querySelector("#topicSelection"); const selectedTopic = topicDropdown.options[topicDropdown.selectedIndex].value; const countDropdown = document.querySelector("#countSelection"); const selectedCount = countDropdown.options[countDropdown.selectedIndex].value; // Get and display quotes fetchQuotes(selectedTopic, selectedCount); }); }); function showAnonymousQuotes(count) { let html = "<ol>"; for (let c = 1; c <= count; c++) { html += `<li>Quote ${c} - Anonymous</li>`; } html += "</ol>"; document.querySelector("#quotes").innerHTML = html; } function fetchQuotes(topic, count) { // TODO: Modify to use XMLHttpRequest // TODO: Remove the call to showAnonymousQuotes() showAnonymousQuotes(count); } function…arrow_forward
- Q2. Using comments on each line, generate the complete object code for the following SIC-XCprogram. NB: LDX = 04 LDA = 00 LDB = 68 STA = OC ADD = 18 TIX = 2C JLT = 38 RSUB = 4C Label Mnemonic OperandSUM START 0 LDX #0 LDA #0 +LBA #TABLE2 BASE TABLE2LOOP ADD TABLE, X ADD TABLE2, X TIX COUNT JLT LOOP +STA LOOP RSUB COUNT RESW 1TABLE RESW 2000TABLE2 RESW…arrow_forwardastfoodStats Assignment Description For this assignment, name your R file fastfoodStats.R For all questions you should load tidyverse, openintro, and lm.beta. You should not need to use any other libraries. suppressPackageStartupMessages(library(tidyverse)) suppressPackageStartupMessages(library(openintro)) suppressPackageStartupMessages(library(lm.beta)) The actual data set is called fastfood. Continue to use %>% for the pipe. CodeGrade does not support the new pipe. Round all float/dbl values to two decimal places. All statistics should be run with variables in the order I state E.g., "Run a regression predicting mileage from mpg, make, and type" would be: lm(mileage ~ mpg + make + type...) To access the fastfood data, run the following: fastfood <- openintro::fastfood Create a correlation matrix for the relations between calories, total_fat, sugar, and calcium for all items at Sonic, Subway, and Taco Bell, omitting missing values with na.omit(). Assign the…arrow_forwardIn python pleasearrow_forward
- in option 4 i want it to tell also which string is coming double it should show itOption 4. Searching for the substring iss in mississippi must display the followingmessage:The substring iss is found 2 time(s) in the input string.Option 7. This option will display the current content of the linked list reflecting possiblechanges as a result of menu options chosen by the user. you can see picture for helppackage javaapplication2; import java.util.*; public class WordOp { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.print("Enter the word in lowercase letters :"); String word = sc.nextLine(); char c ; String temp; int count; LinkedList<Character> linkedlist= new LinkedList<>(); while(true) { //ask the user for the choice of operation System.out.print("\n*******Word Operations******\n1.Remove adjacent dupicate character\n2.create LinkedList Vowels\n3.delete occurence of character\n4.search substring\n5.Display the linked list in…arrow_forwardIn Dist.txt it will add vaccine in storage like how many vaccines are needed and from where is coming and Add search function in which from user it will check how many vaccines are available in storage this will be done in Vaccine.txt somewhat like in image given #include <stdio.h>#include <stdlib.h>#include <string.h> struct vacc{ char vaccName[15]; char vaccCode[2]; char country[15]; int qty; float population; }v[10]; // Function Declarations void create_inventory(); void update_vacc_qty(); int search_vaccine(); void display_vaccine(); // Main Function starts here int main() { //create_inventory(); //display_vaccine(); //search_vaccine(); update_vacc_qty(); return 0; } //Function to Create Vaccine.txt as per the given table void create_inventory() { int option = 1; // variables to collect data as per table given char vaccName[15]; char vaccCode[2]; char country[15]; int qty; float populaion; //File definition FILE *infile; infile = fopen("Vaccine.txt","w");…arrow_forwardJavaScript Please //6. addButtonListeners//a. Selects all buttons nested inside the main element//b. If buttons exist://c. Loop through the NodeList of buttons//d. Gets the postId from button.dataset.postId//e. Adds a click event listener to each button (reference addEventListener)//f. The listener calls an anonymous function (see cheatsheet)//g. Inside the anonymous function: the function toggleComments is called with the//event and postId as parameters//h. Return the button elements which were selected//i. You may want to define an empty toggleComments function for now. Not all tests//will pass for addButtonListeners until toggleComments exists. I recommend//waiting on the logic inside the toggleComments function until we get there.function addButtonListeners() { }arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education