Python Write a program that allows the user to add, view, and delete names in an array list. The program must present the user with options (add, view, or delete) to choose from and an option to quit/exit the program. For example: Add - adds name(s) to the list. View - view name(s) in the list. Delete - removes name(s) from the list. The user must type the option (Add, View, or Delete), and the program must work accordingly.
Q: help
A: The question has two parts. The first part is asking about the requirements for becoming a licensed…
Q: 4. Draw the parse tree and translate the expression 6+4 * 2 using following semantic rule.…
A: A parse tree is a visual representation of the hierarchical structure resulting from applying…
Q: 4.4 Write an S-attributed attribute grammar, based on the CFG of Example 4.7, that accumulates the…
A: In this question we have to understand about constructing an S-attributed attribute grammar based on…
Q: #include #include #include #include #include #include using namespace std; class A { public:…
A: In this question we have to understand about the code why it is descending and not ascending in…
Q: help
A: The first part of the question is asking about the tenure of independent directors on a board.…
Q: help
A: The first part of the question is asking for the definition of 'Purview'. From the given options,…
Q: help
A: The objective of the first question is to identify the accounting method that records transactions…
Q: hexadecimal. Address Ox52000040 Ox52000041 Ox52000042 Ox52000043 Ox52000044 The following table…
A: Address Contents0x52000040 120x52000041 230x52000042 340x52000043 FF0x52000044 560x52000045…
Q: In C++, what are the best choices to make to avoid common concurrency vulnerabilities and pitfalls?
A: The objective of the question is to understand the best practices to avoid common concurrency…
Q: Consider AR(2) process with phi1=0.9, and phi2=-0.2. in preparation to make acf plot, calculate…
A: Algorithm:Set the parameters for the AR(2) process (phi1, phi2).Choose the length of the time series…
Q: Do you think podcasts would be a great tool to assist with tr
A: Introduction:Podcasts are now a well-liked and adaptable way to interact with a wide range of topics…
Q: Write a java program that takes an integer list as input and sorts the list into descending order…
A: 1. Input: 1.1. Prompt user for integers separated by spaces. 1.2. Parse input into an array of…
Q: write a python program that reads two integers, and check if the second number is divisor of the…
A: 1. Input: - Read two integers from the user and store them in variables `num1` and `num2`.2. Check…
Q: What is the suitable position of the image regarding the assumed text in the paragraph of the html…
A: The question is asking about the position of an image in relation to the text in an HTML document,…
Q: What is the result of the following code? int xNum T 0; int yNum = 0; do { xNum = xNum+yNum; yNum…
A: The provided code contains a do-while loop intended to increment the value of xNum until it is no…
Q: FIGURE 0.1 Venn diagram for the set of English words starting with "t" Similarly, we represent the…
A: Venn diagrams are the diagrams that are used to represent the relationship between the sets. These…
Q: "Using the Internet, research the command line version of FTK Imager and identify the command used…
A: The concept used in this scenario is the integration of command line functionality in digital…
Q: whta is the difference bet symetric and asymetric encryption
A: The objective of this question is to understand the difference between symmetric and asymmetric…
Q: write a C code program of the following RISC-V assembly language addi x2, XO, 1 loop: sub x1, x1, x2…
A: 1. Initialize Registers and Memory - Set `x2` to 1 (since `x0` is always 0 in RISC-V, `addi x2,…
Q: Which of the following statements is true about data warehouse integration systems and virtual data…
A: Note: We have provided the answers for the 3 questions(from question2 to question4). PLease post…
Q: in refence of staticstics 1. What is the relationship between samples and populations?
A: In the field of statistics, understanding the connection between samples and populations is…
Q: De Morgan's theorem
A: De Morgan's laws are a set of rules that explain how to simplify boolean expressions.One of the…
Q: uppose you want to make a truth table with your statement X or Y or Z how many rows will you…
A: In this question we have to understand how many rows will be required where we have X, Y and Z…
Q: Discuss the concept of multithreading in .NET.
A: When several threads can run simultaneously within a single application,.NET multithreading…
Q: You are working as a computer programmer for a mortgage company that provides loans to consumers for…
A: The C++ code that determines a monthly payment for loans and produces an amortization schedule for…
Q: The differences between value types and reference types applies to parameters. True False
A: The question addresses a fundamental concept in programming languages: the distinction between value…
Q: use the concept mapping technique to develop a more narrow topic on ' texting while driving'
A: Texting while driving is a hazardous behavior that poses a significant risk to road safety. To…
Q: Write a C program to count the total number of notes in a given amount. Tentative Input/Output (bold…
A: 1. Initialize Variables: - Declare variables `amount` and `notes` to store the input amount and…
Q: The iostream library provides mechanisms for error handling, such as the failbit, badbit, and…
A: Establish a connection with the file named "example.txt" for the purpose of reading data.Conduct a…
Q: #include #include #include #include #include class CAT{ public: float weight() const{return…
A: Algorithm for CAT Class Constructor1. Start2. Define the CAT class with private member variables:…
Q: Write a line of code that will get input from the user by prompting them with 'How old are you?' and…
A: The objective of the question is to write a line of code that prompts the user with the question…
Q: 1. Draw the parse tree and convert 1101 into decimal number using following semantic rule.…
A: ProductionSemantic rulesS -> L{S.VAL := L. VAL}L-> LB{L.VAL = L.VAL + B. VAL * 3}L-> B{…
Q: Suppose that x is a variable of type double with value 12.56. What Java statement produces the…
A: The solution is given in the below step.
Q: 3. File Encryption and Decryption Write a program that uses a dictionary to assign "codes" to each…
A: In this question we have to write a program that uses a dictoionary to assign "codes" to each letter…
Q: #include #include #include #include #include class CAT{ public: float weight() const{return…
A: A public member function called set_range(unsigned int power) in the CAT class is intended to alter…
Q: dentify TWO most important advantages of a database management system for courier service.
A: A Database Management System (DBMS) is software that provides an interface for interacting with…
Q: Write a C program that will prompt for and receive prices of several items. After the last price is…
A: We have to write a C program that initializes variables to store item prices, the total cost before…
Q: ldr r0, 0x20000080 1dr r1, 0xAB12CD34 str r1, [ro] 1dr r0, 0x20000083 ldr r1, 0xCD56EF78 str r1,…
A: The question is asking for the value of the register r1 after executing a series of ARM assembly…
Q: According to Nathan Ensminger the word "technology" has come to mean "computer technology" because…
A: The objective of the question is to understand why the term 'technology' has come to be synonymous…
Q: What is the name given to the technique in which we find a list of integers in a specific range that…
A: The objective of the question is to identify the correct technique or problem from the given options…
Q: What are the types of database? What are the advantages of using a database?
A: A database is a structured collection of data that is organized and stored in a way that allows for…
Q: Question 3: You're developing a Python program for "AudioHarmony Electronics," an online audio…
A: Define a class Product with attributes for name, features, price, and specifications.Define a class…
Q: If Git branches are very resource-intensive, should we be very careful about creating more branches…
A: The objective of the question is to understand whether creating more branches in Git than necessary…
Q: Chrome File Edit View History Bookmarks Profiles Tab Window Help LTI Launch PY4E - Python for…
A: Get User Input:Use the input function to prompt the user for the number of hours worked (hrs) and…
Q: Use the laws of propositional logic to prove that the following compound propositions are logically…
A: Logical equivalence means that the propositions always have the same truth values.In this case, we…
Q: ... char d = 't'; std:: cout << --d // Case 1: Displays "s" std:: cout << --d -1 // Case 2:…
A: ASCII (American Standard Code for Information Interchange) values are a standardized numerical…
Q: Question 1 Consider a camera which is located at (0, 0, 0) in an arbitrary coordinate system and it…
A: Introduction:When working with multiple perspectives of a scene, the epipolar geometry is an…
Q: Write a C program that manages a student database. Each student has a name, roll number, and marks…
A: 1. Input the number of students (numStudents)..2. Declare an array of structures to store student…
Q: Q2\ perform arithmetic operation for each the following :- 1- (074B) 16 (587C) 16 = 2- (7602)8+…
A: In digital logic, arithmetic operations involve manipulating binary numbers through basic…
Q: help
A: The first part of the question is asking about the main characteristic of a closed mortgage. A…
Step by step
Solved in 4 steps with 4 images
- Subject-Object oriented programing Write a program which:• creates a new Array List• adds 5 decimal numbers to it• prints the list to the screen In the same program, use a 'for' loop to print each element of the Array List to the screen.Subject-Object oriented programing Write a program which:• creates a new Array List• adds 5 decimal numbers to it• prints the list to the screen Create a class named ArrayListManager. Into this class, code a method which prints to the screenevery element of an Array List of strings placed at an odd index. Hint: use a modulus.Subject-Object oriented programing Write a program which:• creates a new Array List• adds 5 decimal numbers to it• prints the list to the screenb) In the same program, insert an element in the above ArrayList at index 2. The resulting Array Listmust be one element larger. Print the resulting list to the screen.c) In the same program, replace the element in the ArrayList at index 2 by null. Print the resulting list tothe screen.d) In the same program, remove the element at the last index of the Array List. Print the resulting list tothe screen.e) In the same program, use a 'for' loop to print each element of the Array List to the screen.f) Create a class named ArrayListManager. Into this class, code a method which prints to the screenevery element of an Array List of strings placed at an odd index. Hint: use a modulus.
- Subject-Object oriented programing Write a program which:• creates a new Array List• adds 5 decimal numbers to it• prints the list to the screen In the same program, remove the element at the last index of the Array List. Print the resulting list tothe screen.in C# Write a program named ArrayDemo that stores an array of 10 integers. (Note that the array is created for you and does not need to be changed.) Until the user enters a sentinel value, allow the user four options: (1) to view the list in order from the first to last position in the stored array (2) to view the list in order from the last to first position (3) to choose a specific position to view (4) to quit the application.Subject-Object oriented programing Write a program which:• creates a new Array List• adds 5 decimal numbers to it• prints the list to the screen In the same program, replace the element in the ArrayList at index 2 by null. Print the resulting list tothe screen.
- Python write a program in python that plays the game of Hangman. When the user plays Hangman, the computer first selects a secret word at random from a list built into the program. The program then prints out a row of dashes asks the user to guess a letter. If the user guesses a letter that is in the word, the word is redisplayed with all instances of that letter shown in the correct positions, along with any letters correctly guessed on previous turns. If the letter does not appear in the word, the user is charged with an incorrect guess. The user keeps guessing letters until either: * the user has correctly guessed all the letters in the word or * the user has made eight incorrect guesses. one for each letter in the secret word and Hangman comes from the fact that incorrect guesses are recorded by drawing an evolving picture of the user being hanged at a scaffold. For each incorrect guess, a new part of a stick-figure body the head, then the body, then each arm, each leg, and finally…In c++ Write a program that receives from the user an integer that represents the number of numbers to be entered. The program should receive that number of integers, place them in a list and display it on the screen. Subsequently, you must build a new list, with the square of each of the elements of the user's array. Tickets An integer that represents the number of integers you want to enter. Whole numbers, one in each line and according to the previous amount. Departure The list with the numbers entered by the user is printed. The created list is printed with the user's numbers squared Program execution examples >>> 5 >>> 2 >>> 4 >>> 5 >>> 8 >>> 10 [2, 4, 5, 8, 10] [4, 16, 25, 64, 100]Yahtzee! Yahtzee is a dice game that uses five die. There are multiple scoring abilities with the highest being a Yahtzee where all five die are the same. You will simulate rolling five die 777 times while looking for a yahtzee. Program Specifications : Create a list that holds the values of your five die. Populate the list with five random numbers between 1 & 6, the values on a die. Create a function to see if all five values in the list are the same and IF they are, print the phrase "You rolled ##### and its a Yahtzee!" (note: ##### will be replaced with the values in the list) Create a loop that completes the process 777 times, simulating you rolling the 5 die 777 times, checking for Yahtzee, and printing the statement above when a Yahtzee is rolled. When you complete the project please upload your .py file to the Project 2 folder by the due date.
- Median Function – In statistics, the median of a set of values is the value that lies in the middle when the values are arranged in sorted order. If the set has an even number of values, the median is the average of the two middle values. Your program should start with two arrays of integers containing the following values: Even numbered array: 17 32 45 68 99 101 67 89 22 27 Odd numbered array: 17 32 45 68 99 101 67 89 22 Using a sort function of your choice, first sort the arrays. NOTE: you may use the Standard Template Library sort function or your own sort function. Then, write a function that determines the median of a sorted array. The function should take an array of numbers and an integer indicating the size of the array and return the median of the values in the array. The same function should be called twice – once for the even array and once for the odd array. Your program should also have a printArray function that can be used to print the sorted array. (It…Complete my C++ program: Instructions: You have to continue on implementing your Array List namely the following functions: Example ArrayList: [10, 30, 40, 50] void addAt(int num, int pos) This method will add the integer num to the posth position of the list. Performing addAt(20, 2) in the example list will add 20 at the 2nd position and the array will now look like this: [10, 20, 30, 40, 50] When the value of pos is greater than the size + 1 or less than one, output "Position value invalid" void removeAt(int pos) Removes the number in the posth position of the list. Performing removeAt(3) in the example list will remove the 3rd element of the list and the updated array will be: [10, 30, 50] When the value of pos is greater than the size or less than one, output "Position value invalid" void removeAll(int num) Removes all instances of num in the array list. In this array [10, 10, 20, 30, 10], performing removeAll(10) will remove all 10's and the list will look like this: [20,…Arrays Arrays- Lists In Pyhon Assignment: Create a program which does the following: 1. Asks the user for 5 numbers. 2. Prints out the numbers entered. 2. Prints out the average of those five numbers Cree un programa que haga lo siguiente: 1. Pide al usuario 5 números. 2. Imprime los números ingresados. 3. Imprime el promedio de esos cinco números An example of possible output is shown below: A continuación se muestra un ejemplo de salida posible: Output You entered the following numbers: 10 20 30 40 The average of the numbers is: 25.0