You develop a Python application for your company. A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management. Which two code segments should you use? Each correct answer presents a complete solution. (Choose two.) Group of answer choices employees [1:-5] employees [1:-4] employees [0:-5] employees [0:-4] employees [:-5]
Q: Hi, I am implementing a matrox with several functions. I have pasted the error, the assignment and…
A: class Matrix: def __init__(self, rows): self.list1 = rows def __str__(self):…
Q: Write an application that accepts up to 20 Strings, or fewer if the user enters the terminating…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: python The intent of this program is to manage a set of contacts. Each contact will have data…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: please help me asap please Write a python program that will take input from the user until the…
A: Here, I have to write a python code for the above question.
Q: A student is asked to develop an application as part of mini project which reverses the order of…
A: #include <iostream>#include <stack>using namespace std;int main() { stack<int>…
Q: PYTHON CODING This function takes a list of points and then returns a new list of points, which…
A: def solution_path(points): temp=points # adding starting point\ path=[points[0]] #…
Q: Write an application that accepts up to 20 Strings, or fewer if the user enters the terminating…
A: Dear Student,In your code, the mismatch Exception is occur when you input the choice with non…
Q: You develop a Python application for your company. A list named employees contains 200 employee…
A: lists can be accessed by employees[:_] structure which would display all the values between the…
Q: As a developer, you were assigned to develop a program that can process a collection of the speeds…
A: Iterate over given speeds array Declare highSpeedVehicles, mediumSpeedVehicles, lowSpeedVehiclesa…
Q: For this interactive assignment, you will create an application that grades the written portion of…
A: Because of indentation problem in python i attached screen shots of program for better…
Q: In Java: Write a program that reads an integer, a list of words, and a character. The integer…
A: Given: Write a program that reads an integer, a list of words, and a character. The integer…
Q: You can write a function that modifies a list but has no In red-green-blue color notation, we…
A: Answer for all true/false with explanation given below
Q: One of your colleagues has started to a new project, which is a shop to sell mobile phones, and…
A: ALGORITHM:- 1. Take input for the items. 2. Store them into the array object of class Equipments. 3.…
Q: USE JAVA Write the code for this program to work: A personal phone directory contains room for…
A: Here is the java program: import java.util.*; class PhoneDirectory { public static void…
Q: A program is designed to determine the maximum value in a list of numbers (containing both positive…
A: To replace <MISSING CODE>, -numList[0] should be used. since there is negative values also in…
Q: please code in python A mining company conducts a survey of an n-by-n square grid of land. Each row…
A: ANSWER:-
Q: 1)Write a game of rock paper scissors, one of the choices will be from the user and the other from…
A: 1. Basically there are 3 possible input Stone Paper scissors So this is the concept of first…
Q: We need to store information about each student in a class of N students. For example,name,…
A: Program: #include <iostream>using namespace std; //defintion of class Studentclass Student{…
Q: What will be displayed when this program finishes running? var numbersList - [20, 10, 5]…
A: Given numberList=[20,10,5] Initially, there are 3 elements in the list called numberList
Q: Consider two lists of numbers called list1 and list2. A programmer wants to determine how many…
A: Option 3 is correct.
Q: In python, Problem Description: You are hosting a party and do not have room to invite all of your…
A: Given: In python, Problem Description:You are hosting a party and do not have room to invite all of…
Q: For this interactive assignment, you will create an application that grades the written portion of…
A: Here is the detailed explanation of the program
Q: One of your colleagues has started to a new project, which is a shop to sell mobile phones, and…
A: Program for that organizes the list of store contents from (phones - chargers - headphones - phone…
Q: def thing2(lst: List[int]) -> None: """TODO: Enter your description of the runtime complexity of…
A: Time Complexity - Time complexity is used to measure computer time taken by algorithm/program, Ou…
Q: Please write this in C# so I can compare with my code. Create an application that reads the…
A: //Code #include<iostream> #include<fstream> #include<set> using namespace std;…
Q: In python, create a sorted_grades application that can store up to 10 grades in order from highest…
A: l=[0]*10 def ent(l): n1=int(input()) l[1]=n1 l.sort() print("grade added") inp() def…
Q: One of your colleagues has started to a new project, which is a shop to sell mobile phones, and…
A: # import pandas library as pd import pandas as pd # Read file, as specified in questiondetails =…
Q: Please use Coral Language. Write a program that first gets a list of 5 integers from input. Then,…
A: In this program, you need to take user input for 6 integers. You need to store 5 integers out of 6…
Q: #in c++
A: The algorithm for creating the program with given description is as follows: Create a class Student…
Q: IN PHP PROgramming The ABACABA pattern is a recurring fractal pattern that is seen in many places in…
A: Algorithm - Take input from user. Now use the below logic - $a="" ; if ($n == 1 ) $a="A"…
Q: In java Write a simple program that will generate a well-formatted addition table. Prompt the user…
A: Actually, Java is a general-purpose also class-based, object-oriented programming language designed…
Q: The local driver's license office has asked you to create an application that grades the writ- ten…
A: According to the information given:- We have to follow the instruction to conduct the local driver's…
Q: Using Python: This assignment requires the main function and a custom value-returning function. The…
A: Python program to solve the given problem
Q: Write a program that reads a set of details for a group of employees and then can search based on…
A: n=int(input())l=[]for i in range(n): a=int(input("Employee no. :")) b=input("Employee name :")…
Q: For this interactive assignment, you will create an application that grades the written portion of…
A: We define main () where created array name corr_ans_list[] which has 20 correct list of answers in…
Q: The mean of a list of numbers is its arithmetic average. The median of a list is its middle value…
A: Please find the answer below :
Q: In Python: Write a program that performs the following: Defines two sets s1, and s2, where each of…
A: Here , we take two sets. Input choice from the user and perform the following operations : Union…
Q: Write an application that accepts up to 20 Strings, or fewer if the user enters the terminating…
A: Objective: This program reads a maximum of 20 Strings until the user inputs the sentinel value ZZZ.…
Q: In Python Form A. Create a sorted_grades application that can store up to 10 grades in order from…
A: l=[0]*10def ent(l): n1=int(input()) l[1]=n1 l.sort() print("grade added") inp()…
Q: Write an application that accepts up to 20 Strings, or fewer if the user enters the terminating…
A: import java.util.ArrayList;import java.util.Scanner; public class CategorizeStrings { public…
Q: • Create an empty list of courses. • Prompt the user for a course they wish to enter, or to type…
A: Algorithm: Start Implement a method named display() that takes a list of courses as argument…
Q: The local driver's license office has asked you to create an application that grades the written…
A: Below is the Python code for the above application, along with some example output. Refer to the…
Q: PYTHON!!!!! A group of statisticians at a local college has asked you to create a set of functions…
A: Program Approach: First creating three function for calculating mean, mode and median. Median…
Q: The code below prompts the user to enter their full name, and then converts the name to a list.…
A: I give the code as per your requirement along with output and code screenshot
Q: 2) Write a script AreaMenu that will print a list consisting of "rectangle" and "cylinder". It…
A: Write a script AreaMenu that will print a list consisting of "rectangle" and "cylinder".It prompts…
Q: This project assumes that you have completed Project 1. Place several Student objects into a list…
A: Solution:- code " # import random to use random shuffle function.import random class…
Q: 1. Design a java application that outputs a table with a list of at least 6bstudents together with…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
Q: For this problem set, you will submit java file named Homework.java Return Growing NumList This…
A: Java program used to answer this question
Q: One of your colleagues has started to a new project, which is a shop to sell mobile phones, and…
A: # import pandas library as pd import pandas as pd # Read file, as specified in questiondetails =…
Q: Assume the following method is in class TestSLList (a method outside the SingleLinked List class).…
A: PLEASE DO SUPPORT FOR MY EFFORTS THANKS! ANSWER: this code removes all occurrences of the item…
You develop a Python application for your company.
A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management.
Which two code segments should you use? Each correct answer presents a complete solution. (Choose two.)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- You have a list of student ID’s followed by the course number (separated by a space) that the student is enrolled in. The listing is in no particular order. For example, if student 1 is in CS100 and CS200 while student 2 is in CS105 and MATH210 then the list might look like this:1 CS1002 MATH2102 CS1051 CS200Write a program that reads data in this format from the console. If the ID is −1 then stop inputting data. Use the HashMap class to map from an Integer (the student ID) to an ArrayList of type String that holds each class that the student is enrolled in. The declaration should look like this:HashMap<Integer, ArrayList<String>> students =new HashMap<Integer, ArrayList<String>>();After all data is input, iterate through the map and output the student ID and all classes stored in the vector for that student. The result should be a list of classes organized by student ID.Your program has a list of professors and their office location and office hours per day of the week. The user will type either a professor’s name or day of the week. If they type a professor’s name, show that professor’s office location and office hours (all days of the week). You don’t have to do a name search, you can require the user type the professor’s name exactly right. If the user types a day of the week, show all professors and office location for professors that have office hours on that day of the week. You don’t really need to use time/date code like we did for the notebook, you can just match the day of week by the word (String) e.g., your data has “Wednesday” so if a user types exactly “Wednesday” it matches. This can all be done with hash maps (and loops / if’s / etc.) using JavaWrite a program in Java, Python and Lisp When the program first launches, there is a menu which allows the user to select one of the following five options: 1.) Add a guest 2.) Add a room 3.) Add a booking 4.) View bookings 5.) Quit The functionality of these options is as follows: 1.) When users add a guest they provide a name which is stored in some manner of array or list. Guests are assigned a unique ID value where the first guest added is assigned the ID value 1, the second guest added is assigned the ID value 2 and so on. 2.) When users add a room they provide a room number and a room capacity (i.e. how many people can stay in the room at any one time) which is stored in some manner of array or list. Rooms have a property which indicates if they are booked or not for any given date – please see the Room Booking Dates section below for some guidance on the easiest way to implement this. 3.) When users add a booking they provide a guest ID, room number, the number…
- please code in python A mining company conducts a survey of an n-by-n square grid of land. Each row of land is numbered from 0 to n-1 where 0 is the top and n-1 is the bottom, and each column is also numbered from 0 to n-1 where 0 is the left and n-1 is the right. The company wishes to record which squares of this grid contain mineral deposits. The company decides to use a list of tuples to store the location of each deposit. The first item in each tuple is the row of the deposit. The second item is the column. The third item is a non-negative number representing the size of the deposit, in tons. For example, the following code defines a sample representation of a set of deposits in an 8-by-8 grid.deposits = [(0, 4, .3), (6, 2, 3), (3, 7, 2.2), (5, 5, .5), (3, 5, .8), (7, 7, .3)]Given a list of deposits like the one above, write a function to create a string representation for a rectangular sub-region of the land. Your function should take a list of deposits, then a set of parameters…In python, create a sorted_grades application that can store up to 10 grades in order fromhighest to lowest in a list. The application should display a menu of options, whichinclude “Enter a grade”, “Delete a grade”, “Display lowest grade”, “Display highestgrade”, “Show grades”, and “Quit”. The list should initially contain all zeros (0). The algorithm for entering a grade is similar to:1. Find the appropriate position for the grade so that all grades are still in order fromhighest to lowest.2. Insert the grade3. Make certain that length of list remains the same The algorithm for deleting a grade is similar to:1. Find the element containing the grade to delete.2. If list empty tell user they can’ delete and if grade doesn’t exist, inform user no gradehas been found.3. Use del function. Make certain the length doesn’t change and last element =0Note: You can use the return to exit your function once you have found your element. Output should look similar to:…For this interactive assignment, you will create an application that grades the written portion of the driver’s license exam. The exam has 20 multiple-choice questions. Here are the correct answers: B 2. D 3. A 4. A 5. B 6. A 7. B 8. A 9. C 10. D B 12. C 13. D 14. A 15. D 16. C 17. C 18. B 19. D 20. A Your program should store these correct answers in a list. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another list. (Create your own answer text file to test the application.) After the student’s answers have been read from the text file, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the…
- For this interactive assignment, you will create an application that grades the written portion of the driver’s license exam. The exam has 20 multiple-choice questions. Here are the correct answers: B 2. D 3. A 4. A 5. B 6. A 7. B 8. A 9. C 10. D B 12. C 13. D 14. A 15. D 16. C 17. C 18. B 19. D 20. A Your program should store these correct answers in a list. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another list. (Create your own answer text file to test the application.) After the student’s answers have been read from the text file, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the…For this interactive assignment, you will create an application that grades the written portion of the driver’s license exam. The exam has 20 multiple-choice questions. Here are the correct answers: B 2. D 3. A 4. A 5. B 6. A 7. B 8. A 9. C 10. D B 12. C 13. D 14. A 15. D 16. C 17. C 18. B 19. D 20. A Your program should store these correct answers in a list. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another list. (Create your own answer text file to test the application.) After the student’s answers have been read from the text file, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the…Here you are required to draw a bar chart of batchwise strength of Avionics Department with following features through python: Add suitable label in the x axis, y axis and a title. Display a horizontal bar chart. Display a vertical bar chart. Use different color for each bar. Attach a text label above each bar displaying its strength (number of students). You are given two lists/arrays: Batch = [Ave-01, Ave-02, Ave-03, Ave-04, Ave-05, Ave-06] Num_Students = [29,50,35,45,50,40]
- A student is asked to develop an application as part of mini project which reverses the order of numbers, such that the number that is placed last in the list will be removed first. The list can hold any number of elements. Implement the following menu based C++program for the same.For this problem set, you will submit java file named Homework.java Return Growing NumList This function will be given a single number, it should return a list of strings of numbers. Each string in the list will only contain a single number repeated an arbitrary amount of times. The number each string will contain will be equal to the current string's index+1. The number in the string should be repeated the same number of times as the string's index+1. Each number in the string should be separated by a space. This list should stop when its size equals the max number specified. Signature: public static ArrayList<String> returnGrowingNumList(int max) Example: INPUT: 3OUTPUT: [1, 2 2, 3 3 3] INPUT: 6OUTPUT: [1, 2 2, 3 3 3, 4 4 4 4, 5 5 5 5 5, 6 6 6 6 6 6]In java Write a simple program that will generate a well-formatted addition table. Prompt the user to enter a lower bound and an upper bound for the table. Then print the table with row headers, column headers, and a “+” in the upper left corner. Allow 6 spaces for printing the numeric value For example: Enter the lower bound: -2 Enter the upper bound: 3 +| -2| -1| 0| 1| 2| 3| ------|------|------|------|------|------|------| -2| -4| -3| -2| -1| 0| 1| ------|------|------|------|------|------|------| -1| -3| -2| -1| 0| 1| 2| ------|------|------|------|------|------|------| 0| -2| -1| 0| 1| 2| 3| ------|------|------|------|------|------|------| 1| -1| 0| 1| 2| 3| 4| ------|------|------|------|------|------|------| 2| 0| 1| 2| 3| 4| 5| ------|------|------|------|------|------|------| 3| 1| 2| 3| 4| 5|…