The code below prompts the user to enter their full name, and then converts the name to a list. Complete the code to output the person's initials. For example, if the user enters 'Adam Jones', then your code will output 'AJ'. If the user enters 'Adam Daniel Jones', then your code will output 'ADJ'. name = input('Enter your full name: ') nameList = name.split() nameList
Q: . Let S1 and S2 be two stacks. Write a procedure Push(x, S) that pushes element x onto stack S, whe...
A: First of all we should know why two stacks start from the opposite side.This is because so that we c...
Q: Create a class 'Box' that has height, width and depth. The class should have a method volume() which...
A: Defining preprocessor directives Creating class for box Declaring required class parameters Declarin...
Q: What is the smallest number of nodes that a binary tree may contain?
A: Here in this question we have asked that What is the smallest number of nodes that a binary tree may...
Q: Computer operating system is basically a Select one: a. system utility O b. package software C. syst...
A: Option (c) is correct. Computer operating system is basically a system software.
Q: Write a Java program that will accept the amount of US Dollar and convert to Philippine Peso. The cu...
A: The given is a java program which converts American currency i.e. USD to Philippine currency peso wh...
Q: When does it make sense to break down large computer processes and programs into smaller subsystems?...
A: Segments are used to break down a process. Segments are refers to the sections into which a program ...
Q: Why are there so many different partitioning algorithms in use by operating systems, and why are the...
A: why are there so many different partitioning algorithm in use by operating system Ans;- Data and pr...
Q: Explain what the GRANT statement is and how it pertains to the security of your system. For what kin...
A: Answer : As the GRANT generally meaning is to give permission , so similarly in database The GRANT s...
Q: Find the generating function for the following sequence: 0, 1,0,0, 1,0,0, 1, 0,0, 1,. You need to ex...
A:
Q: There were a lot of things in the first electronic digital computer.
A: ENIAC is the First general purpose electronic computer.full name of ENIAC is Electronic Numerical I...
Q: Python will give you high rating for the help! Easy Python Problem (see pic): Guides are availab...
A: # Python program to shuffle a deck of card # importing modules import itertools, random # make a ...
Q: In what ways are Computer Science and Computer Engineering distinct from one another?
A: Computer Science which started as a branch of Mathematics, involves study of computing theory, progr...
Q: Instructions QuartsToGallonsjava + 1 // QuartsToGallons.java 2 class Quarts ToGallons { public stati...
A: public class QuartsToGallons{ public static void main(String[] args) { int QUARTS_IN_GALLON; ...
Q: Write a C# Sharp program that compares strings taken as input by a user. compare the strings and pr...
A: Algorithm: if condition then something if; elseif condition then somethin...
Q: one-dimensional array, how do you refer to all of the elements
A: here in this question we will be discuss about what is actually meaning of 1D array and how we can...
Q: Write a counter function for a microcontroller that would count from 0x10 to 0x1E incrementing with ...
A: I have answered this question in step 2.
Q: Respond to the following in a minimum of 175 words: Describe the necessary Java commands to create ...
A: Below is the code for the problem described. comments added import java.util.Random;import java.u...
Q: name the three processor modes of xv6, and briefly describe each (when and why is the processor in ...
A: The answer is given below:-
Q: Define a C++ language float literal using regular expression. A float literal in C language has an o...
A: In C++, a suspended factual: Bobbing Readers to comprehend: Vanishing Symbols are also used to store...
Q: In the future, artificial intelligence is going to be able to
A: Artificial intelligence:- Artificial intelligence (AI) is a broad branch of computer science that sp...
Q: Create a java program that will ask the user to input the following information for 5 employee: E...
A: Java is an object-oriented programming language that produces software for multiple platforms.
Q: What is a database?
A: According to the question the database is the container to contains the data in row fact and the co...
Q: Why is it important to assess and mitigate the exposure and vulnerability of a community?
A: Why is it important to assess and mitigate the exposure and vulnerability of a community?
Q: A processor's primary structural components should be mentioned and briefly characterised.
A: Introduction: A processor, often known as a processing unit, is a digital circuit that conducts oper...
Q: Write a program in your PYTHON to read in two arbitrary Boolean expressions and see if they represen...
A: Note: Please take care of indentation while copying and pasting the code. In this answer, the hardco...
Q: John von Neumann came up with a new idea in 1945.
A: John von Neumann: The Father of the Modern Computer In 1945, in his first draft of a report on the ...
Q: How are linked lists constructed?
A: Linked List: It is a linear data structure and is a collection of data elements which is known as no...
Q: When converting the NFA given below to a regular expression, suppose you first decide to remove stat...
A: Regular Expression that would label the edge from qo to q3
Q: Pand Q are two processes that share a set of variables that is common. The variable includes: seq, t...
A: Process Synchronization is a strategy which is utilized to facilitate the cycle that utilization sha...
Q: What will be the impact of the internet of things (IoT) on our everyday lives? Justify your position...
A: Introduction: IoT is a network of networked, internet-connected devices that can gather and transmit...
Q: Given 2 inputs (each on a separate line): • The 1st line of input is size allocation of your array. ...
A: As given, we need to write a C++ program that takes array size and array elements as input and print...
Q: Let L1, L2, and L3 be languages over some alphabet. In each case below, two languages are given. Say...
A: 1. Both are not always equal.
Q: What Is SDILC?
A: Introduction: what is SDLC? Software Development Life Cycle (SDLC)
Q: Question 1. Explain the Advantages and disadvantages of 3 mapping techniques between main memory to ...
A: To speed up the execution, a small partition of memory (SRAM) is added between the main memory and C...
Q: What is a DApp? An application used to view some or all info on a blockchain An application used by...
A: Dapp is decentralised application used on blockchain.
Q: Write a program named pl that converts a gray-level image to a binary one using a threshold value: p...
A:
Q: Assume that 5 points are given in the two-dimensional Cartesian coordinate system. From these five p...
A: Java code for creating a line in two dimensional space import java.awt.*;import javax.swing.*;impor...
Q: will apps eventually make the web irrelevant? why or why not?
A: Introduction : Irrelevant : When you say something is irrelevant, you're implying that it has nothin...
Q: What is computer network? Describe the significance of computer network in 21st centur
A: Interconnected computer equipment that may exchange data and share resources is referred to as compu...
Q: The program should then enable the user to select the following options: 1. display() 2. add() 3. de...
A: import java.util.Scanner; public class tester{ public static void main(String[] args) { ...
Q: BEFORE Apple Grape Peach Banana Plum Orange AFTER Apple Grape Banana Plum Orange Pear a. Give the po...
A: Explanation: Create a list containing fruits and print the original list. Now change the element of...
Q: Guess a letter: w wallaby You win! # The program selects the word platypus Guess a letter: b _______...
A: The given python code is examined and the respective needed changes are done on the given code and t...
Q: Cryptanalyze the single alphabetic substitution cipher and enter the substitution key in the format:...
A: In a Substitution cipher, any character of plain text from the given fixed set of characters is subs...
Q: Q2. Book Donation App You are required to develop a Book Donation App that allows people to donate ...
A: Answer is given below:
Q: Why are there so many different partitioning algorithms in use by operating systems, and why they so...
A: Given: Why are there so many different partitioning algorithms in use by operating systems, and wh...
Q: USING VIVADO Write and simulate
A: The answer is as follows.The testbench Verilog code for the ALU is also provided for simulation Veri...
Q: 3. Given the following linked list: head A R T Explain the steps to delete T and add M in that posit...
A: A linked list is a sequential data structure that stores data in a sequential manner. The particular...
Q: You are given a String variable named file. It contains the name of a one-line file. Write a sequenc...
A: Given a String variable named file. It contains the name of a one line file. Data written to the fil...
Q: Part 4: Sensitive data and data quality issues. Consider the data privacy and data quality implicati...
A: Sensitive data:- Sensitive data is confidential information that must be kept secure and inaccessibl...
Q: Discuss how you determine the placement of primary keys in relational tables to link the tables to e...
A: Answer: The main key is the table's unique identification. A master key is a column (or group of col...
The code below prompts the user to enter their full name, and then converts the name to a list. Complete the code to output the person's initials. For example, if the user enters 'Adam Jones', then your code will output 'AJ'. If the user enters 'Adam Daniel Jones', then your code will output 'ADJ'.
name = input('Enter your full name: ')
nameList = name.split()
nameList
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. Write a program to adjust the values by subtracting the smallest value from all the values. Assume that the list will always contain different numbers. Ex. If the list of numbers is: 40 50 10 90 75 The adjusted list is: 30 40 0 80 65 The program first will ask the user to enter the number of integers to be adjusted. Then The following functions should be used: The function dataCollection should be called to make a dynamic array to hold the user entered integers. It prompts the user to enter the list of numbers. A pointer to the array should be returned. The function minVal receives an array and its size as arguments. It finds and returns the smallest number in the array. The function adjust receives an array, the array size, and an integer as arguments. It will create an array with the same size as the argument array, but subtract the last…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.The mean of a list of numbers is its arithmetic average. The median of a list is its middle value when the values are placed in order. For example, if an ordered list contains 1, 2, 3, 4, 5, 6, 10, 11, and 12, then the mean is 6, and their median is 5. Write an application that allows you to enter nine integers and displays the values, their mean, and their median.
- Using phyton code: First, ask the user the following three questions and store the answers in a nested list. What is your name? What is your quest? What is your favorite color? Store at least 6 sets of responses. Example nested list: [ ['Sir Robin' , 'to find the Holy Grail' , 'red'] , ['Matt' , 'to travel the world' , 'blue'], etc...] Second, sort the list alphabetically by color and print out the results: Sample output:3. Randomly generate a number in range [1, 12]. Map this number to a season: if the number is 3, 4, or 5, map it to “Spring", if the number is 6, 7, or 8, map it to "Summer", if the number is 9, 10, or 11, map it to "Fall", and if the number 12, 1, or 2, map it to "Winter". Display season nameYour 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 Java
- Create the game of Hangman.In the game of Hangman, the computer chooses a word at random from a given list of words. This word is the answer. The player then tries to guess the word, by guessing one letter at a time. This program is an interactive Hangman game. The focus is to use and manipulate strings and loops. Whenever the user guesses a letter that is in the answer, all occurrences of that letter are revealed to the user.___ The game ends when the user has guessed every letter in the word, before he reaches the allowed number of strikes (usually 5).IN JS PROGRAMMING LANGUAGE Your local bank has decided to upgrade its ATM machines by incorporating motion sensor technology. The machines now interpret a series of consecutive dance moves in place of a PIN number. Create a program that converts a customer's PIN number to its dance equivalent. There is one dance move per digit in the PIN number. A list of dance moves is given in the code. Examples danceConvert("0000") danceConvert("3856") ["Shimmy", "Shake", "Pirouette", "Slide"] → ["Slide", "Arabesque", "Pop", "Arabesque" ] -If you have downloaded the source code from this book’s companion Web site, you will find a file named USPopulation.txt in the Chapter 07 folder. The file contains the midyear population of the United States, in thousands, during the years 1950 through 1990. The first line in the file contains the population for 1950, the second line contains the population for 1951, and so forth.Write a program that reads the file’s contents into a list. The program should display the following data:• The average annual change in population during the time period• The year with the greatest increase in population during the time period• The year with the smallest increase in population during the time period(You can access the book’s companion Web site at www.pearsonglobaleditions.com/gaddis.)
- Banking Online Using mainly loops in Python Create a menu to allow the banker to add a client, insert the client into a special location in the list, closing the account(remove), find the client based on firstName, and sort the list in descending order (larger to smaller value). NewClient=["Mike navarro","Miguel saba","Maria Rami"] Balance= [900.00, 400.00, 450.00] You may use any of build in functions. Here is an sample output: 1- Add a new client 2- Remove a client 3- Insert an item to the list 4- Search for the client based on firstName 5-Search for the client based on lastName 6- Sort the list in descending order(firstName) 7- Quit the program Please enter your option: 3 Where do you want to insert the client? (Enter the index number) 1 Please enter the client info: "Tina Mari" Your original List : ["Mike navarro","Miguel saba","Maria Rami"] After inserting an item into index 1: ["Mike navarro","Tina Mari", "Miguel saba","Maria Rami"] Once the user enters an option, your…prompt user to enter a number numthis num would be set as the range the user to enter other intergers.create a list and loop to populate it with each integer the user enters up to numprint the list. Example:if num entered as 4then prompt the user to enter 4 integers. 3 6 7 9then print the list as [3, 6, 7, 9] Thank youCreate a Flowchart for this code. import random #Define a function to pick 5 numbers from 1 to 38 def getNJCash5lottery_numbers(): #Return the list return random.sample(range(1, 39), 5) def playNJCash5lottery(): #Call the method and assign the list to variable lottery_number = getNJCash5lottery_numbers() print("These are the cash 5 numbers."), #Iterate over list elements for number in lottery_number: #Print the number on one line print(number) #Define a function def main(): while(True): #Call the method to print the list elements playNJCash5lottery() #Prompt the user if they want to play again decide = input("\nDo you want to play again? Yes/No : ") #If they entered "no " or "No" if decide.lower() == "no": #Exit break #Call the "main()" function if __name__ == "__main__": main()
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)