Write a java program to allow the user. 1. Enter 10 numbers. 2. Double the value of the numbers 3. Create a stack and Insert the numbers in the stack. 4. Print the stack without emptying the stack. 5. Remove three numbers from the stack and print the stack
Q: In what year did the computer first come out?
A: About first computer come out.
Q: Buffers are used to minimise access latency between various levels of the memory hierarchy. List the...
A: check further steps for the answer :
Q: If p=3c²-6c², find the percentage error in p at c=1 if the error in c is 0.05
A: Given p=3c²-6c² p = -3c² Partially differentiate function with respect to c ∆p/∆c =-6c
Q: otal = a + b+ c; verage Total /6; 2021 Logic Errors Run-time Errors
A: Total = a + b + c;Average = Total / 6;Logic Errors Run-time Errors None of the above Syntax Errors
Q: CSOT GROUP $TMTU CofIL
A: this is a wrong image please upload a correct question image
Q: What is the SI/DH register's code?
A: Introduction: The 16-bit index registers are called SI (Source Index) registers. It is used to condu...
Q: Create a brief code segment that moves the file pointer 50 bytes from the file's start. Assume the f...
A: As no programming language is specified, I have given the code in C language. To move the file handl...
Q: 6. In 8085 language write a program to find the sum of the numbers 10H, A1H, and the sum should be s...
A: In 8085 language write a program to find the sum of the numbers 10H, A1H, and the sum should be stor...
Q: Delow and detérmine the values of A and B so that Array[0] has an integer in the range [-23, 71) Arr...
A: Here, I have to choose an option for the above question.
Q: Who came up with the motherboard?
A: Who came up with the motherboard?
Q: Consider the adjacency matrix below. Upload a picture (it can be hand drawn) of the adjacency list o...
A: Given adjacency matrix for a graph with 5 vertices A,B,C,D and E is an undirected graph since the ma...
Q: Consider a two-link network where Host A is connected to the router by a 1 Mbps link with 10 ms prop...
A: Transmission delay depends upon data amount to be transmitted and the rate of transmission. Size of ...
Q: What is the IEEE-754 single precision real number after encodingt the real decimal number-76.0625? O...
A: Given The answer is given below.
Q: What is the difference between an interrupt service routine and a regular service routine?
A: An interrupt service routine (duh!) services an "interrupt". An "interrupt" is pretty much that -- t...
Q: Develop a c programm that reads a text file (input1.txt) containing a list of sentences and, for eac...
A: import re def open_file(): ##method to open a file while(True): text = raw_input("Ente...
Q: Alice and Bob use the ElGamal scheme with a common prime q= 131 and a primitive root a = 6. Let Bob’...
A: The answer is
Q: The C programming language supports object oriented programming
A: C programming language is the high-level language which was made in the early 1970. Dennis M Ritchie...
Q: and individual networks. This can be achieved by dividing the 32-bit IP addres into two parts: an in...
A: The answer is
Q: Which of the following instructions inserts an integer operand into ST(0
A: SUMMARY: - Hence, we discussed all the points.
Q: A token where words cannot be used for anything other than their intended use choose the correct ans...
A: Here is the explanation:
Q: Who made the hybrid computer?
A: Here in this question we have asked who made the hybrid computer.
Q: Explain why it is important that software products are developed and delivered quickly ?
A: The answer is given below
Q: y(0] A + rand () % B; A = -23 , B 95 A -24, B = 95 %3D c.A = -22 ,B 94 d.A = -23 , B 96 %3D %3D
A: Here ,The question is to find the values of A and B.:---- Given :- Array[0] = A + rand() % B
Q: The StayWell Property Management team considers creating a discount scheme for the property owners w...
A: Dear Student, In your code the name of the column will not be displayed you need to use the below gi...
Q: How are truly distributed systems modeled?
A: A distributed system uses resources from different system located on multiple networks. Distributed ...
Q: Convert the following PDA to a CFG.( Correct answer only). Proper steps and conversion
A: Convert the following PDA to a CFG.( Correct answer only).
Q: Question 5 What is the adress of ptrs[1] O No answer text provided. O No answer text provided. O No ...
A: Lets see the solution in the next steps
Q: Quiz 4.10: Question 2 Unlimited tries Assume that a string variable named outfile, has been declared...
A: Assume that a String variable named outfile, has been declared and initialized with the name of a fi...
Q: Let E (0,1). Let A and B be the lists of three strings each, defined as List A List B W, 1 1 111 2 1...
A: Given that wi = (w1, w2, w3) = (1,10111,10) xi = (x1,x2,x3) = (111,10,0) let us consider the sequen...
Q: Write a python program that accepts a string as input and removes characters from the string which a...
A: For this program, we will define an empty string uniqueString and loop through each character of the...
Q: Assembler generates the ELF symbol table. What does the information in each symbol table structure i...
A: Symbol Table is one of the important data structure user by compiler.
Q: Calculate the time complexity and write the appropriate big order 0? notation, and why for the follo...
A: answer is
Q: What is the output of the comparison x>=y for x=[ 1 2 2 4 ]; y=[-2 0 2 4];
A: x>=y returns a logical array with elements set to logical 1 where x is greater than or equal to y...
Q: Sales Data Program Create a successful running c++ program that meets the following requirements. ...
A: ************* something to note ***************In the program i had created the add function as Sup...
Q: Why does peer to peer network is suitable for home? Explain it well.
A: the answer is given below:-
Q: virtualization available in AWS, and how do they differ
A: When we’re using AWS, it’s easy for someone — almost without thinking — to choose which AMI flavor ...
Q: Explain how NTFS manages sparse files. (To get the solution to this query, you must visit the Micros...
A: NTFS Sparse Files (NTFS5 as it were)A meager record has a quality that causes the I/O subsystem to d...
Q: What does the counter1 provide at the end of this script? x=[ 30 e e 2 1 -1 -2 -3]; counter1=0; coun...
A: 1) The above script does below activites It Creates a vector x consisting of positive, negative and...
Q: 1Are functions of Watson available to public, such as you (with charge)? If yes, then how do we acce...
A: 1Are functions of Watson available to public, such as you (with charge)? If yes, then how do we acce...
Q: When invoking external assembly language processes from C++, why is it vital to use name decoration?
A: Introduction: Every programming language has its naming convention, which may or may not be compatib...
Q: Write a program that counts the number of basic steps needed for sorting an array of integer numbers...
A: Given :- Write a program that counts the number of basic steps needed for sorting an array of integ...
Q: When transmitting data back and forth to the cloud, physicians must follow HAPAA regulations; penalt...
A: Measures done to ensure the safety of patients ConfidentialityEach individual's medical information ...
Q: Define Turing Machine. Describe its capabilities. Also write short notes on Universal Turing Machine...
A: Given The answer is given below
Q: What is Standard Error, and what does it mean?
A: Definition, The standard error(SE) of a measurement is the exact standard deviation of a statistical...
Q: 2. Write a JAVA program to input two strings from the user and find the minimum number of insertions...
A: Two strings are said to be anagrams if they make a meaningful word by rearranging or shuffling the l...
Q: Define the term "virtual machine" and explain why it is necessary.
A: Virtual Machine: It is a machine created on a physical hardware system (off-premises) that acts as a...
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in ...
A: The question is to find the values of A and B.
Q: Write a Java program to display the push, peek & pop operation on the stack.
A: Stack is a linear data structure which follows a particular order in which the operations are perfor...
Q: Explain why it is important that software products are developed and delivered quickly ?
A: The answer is given below:-
Q: When invoking INT 21h, which register contains the function number?
A: When invoking INT 21h, the register which contains function number is AL.
Step by step
Solved in 3 steps with 2 images
- Use c++ Q1. Create a library management system in which you have a pile of 4 books stacked over one another. Each book has a book number. Make a program in which a librarian stacks a pile of books over one another. A student wants to issue a book. The program first searches if the book is present in the stack or not. If the book hasn't been issued, the program finds out the index of the book. It also pops other books on the top of it to issue the book to the student. Display the books in the stack. (Hint: report the count of the books above the required book and use the pop() function "count" times.)Java - When too many recursive calls are made creating more activation records than the allocated program memory can handle, an “out of memory” error occurs. True or False?Java Programming: Write a command line game that plays a simple version of blackjack. The program should generate random numbers between 1 and 10 each time the player gets a card. It should keep a running total of the players cards, and ask the player whether or not it should deal another card. Sample output for the game is written below. Your program should produce the same output. The players get two cards to start with. Then they are asked if they want more cards. Players can continue to take as many cards as they like. The goal is to get close to 21 without going over. If the total is greater than 21 we say the player "busted".
- JAVAWrite a program that will add and remove the following name and phone number list. (List on image below) Once lists of names and phone numbers are added to the program, the program will ask a user whether there is an item to be removed or not. If it is, it will be removed. Otherwise, the program is terminated. The program will delete items continuously if requested. The result of the program looks like following:1- Write a java Program to read a numberfrom userand print full pyramid using numbers which will repeat the number in the same row. Note : use JOptionPane class to read the numberand print the pyramid. Test Data Input number of rows: 4 22 333 4444Create a java program that asks a user to input student’s full name and reverses the string.The program should be able to print how the string is reversed and display the reversed string.Use stack as a data structure in creating a program that enable to reversed the inputstring. The program should display one by one on how to reverse the string and then display the final output of the reversed string. NOTE: Please read the instructions carefully this is my last question
- In Java Programming - Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. The output of the program is every word in the list that contains the character at least once. Assume at least one word in the list will contain the given character. Assume that the list of words will always contain fewer than 20 words. Ex: If the input is: 4 hello zoo sleep drizzle z then the output is: zoo drizzle To achieve the above, first read the list into an array. Keep in mind that the character 'a' is not equal to the character 'A'.Java Programming: Write a program that reads five integer values from the user, then analyzes them as if they were a hand of cards. When your program runs it might look like this (user input is in orange for clarity): Enter five numeric cards, no face cards. Use 2 - 9. Card 1: 8 Card 2: 7 Card 3: 8 Card 4: 2 Card 5: 9 Pair! (This is a pair, since there are two eights). You are only required to find the hands Pair and Straight.USE JAVA Write the code for this program to work: A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers: Name Phone # Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991 An example of the program is shown below: Enter name to look up. Type 'quit' to quit. Gina Gina's phone number is…
- Use stack as a data structure in creating a program that enable to reversed the inputstring.Create a java program that asks a user to input student’s full name and reverses the string.The program should be able to print how the string is reversed and display the reversed string. The program should display one by one on how to reverse the string and then display the final output of the reversed string.Project in C language: PLEASE read the INSTRUCTIONS carefully: * The user who is playing this game will have a small visible deck with a total of 5 numbers or letters to choose to solve the puzzle on the board (which will have a few blank spaces for users to input their answers). Format: There should be six boxes (grid-like boxes) for each letter of the word. If you could just code for the word ("player") that would be great! For the output it should look like this: Puzzle #1: On Playing Board: “ p( )aye( )". Player's Playing Deck: "(r), (j), (t), (c), (l)" * When the letters are on the board it will be an incomplete word that needs to be filled out with the letters from their deck as well. Correct Word: “player” If they successfully guess the word "player" they will be awardedFor Java Programming: I would like to record the amount of time a key is pressed in by the user. For example, if I press the key "w" for 2.5 seconds, then I want the program to say KEY PRESSED FOR 2. SECONDS //////////////////////////////////////////////////////////////////////////////// Here is some code that I have written. I tried using the currentTimeMillis() method, but it didn't work for me. ///////////////////////////////////////////////////////////////////////////////// //package keystroke; import java.awt.event.KeyEvent;import java.awt.event.KeyListener;import javax.swing.JFrame; public class KeyStroke implements KeyListener { public KeyStroke( ) { JFrame frame = new JFrame( ); frame.setSize( 500,500 ); frame.setVisible( true ); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.addKeyListener( this ); } @Override public void keyTyped( KeyEvent e ) { } @Override public void keyPressed( KeyEvent e…