Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the smallest and largest integers in the list. Ex: If the input is:
Q: Why is it that a numeric field is usually allocated substantially more space than the data it contai...
A: Introduction: For dealing with conventional long-form text data, the standard TEXT data object is su...
Q: Is it feasible to store a HashMap with a duplicate key?
A: Introduction: A hashmap is a data structure that stores data as a pair of keys and values.
Q: Explain the salient features of Information System in a hospital. List out various application modul...
A: Answer: Because most procedures in HIS-implemented hospitals are automated and software and servers ...
Q: Causes of Civil liberties in Social and professional issues in computer Science.
A: Ethical Dilemmas for Computer UsersSome of these dilemmas are new (such as copying software), while ...
Q: date man date file/ man -k password man-f passwd Man 5 passwd Info dațe Date -help Ls /usr/share/doc...
A: Here are the functions of above commands on Linux :- 1)date:- this command is used to display the sy...
Q: This is to be programed in java You will create a driver file called personalInfo.java perso...
A: Here I have created the class Person with attributes and constructor. Then, I have created a method ...
Q: Write a program to read the names stored in three different files: file1.txt, file2.txt and file3.tx...
A: Write a program to read the names stored in three different files: file1.txt, file2.txt and file3.tx...
Q: Explain what is a "Resource" in a REST
A: REST architecture treats every content as a resource. These resources can be Text Files, Html Pages,...
Q: Given the two binary numbers, 1011000 (base 2) and 1100 (base 2). What is the difference in decimal ...
A: Here two binary numbers are given 1011000 base 2 1100 base 2
Q: 2. Find the value of square root of 5 using a maximum of 4 iterations of Newton Raphson method. (hin...
A: The question is to find the root of the equation using Newton Rapson method.
Q: ftware archite
A: Software Architecture: Simply said, software architecture is the way a system is organized. This org...
Q: Suppose the university has decided to announce bonus 1 PMS point to employees those have PMS points...
A: Introduction: By using list multiple items stored in a single variable. For eg mylist = ["basu", "a...
Q: The voltage Ve(t) (in V) and the current i(t) (in Amp) t seconds after closing the switch in the cir...
A: Here, I have to provide a Matlab code to the above question.
Q: Dear tutor Please note: I need all three answers with correct option with proper explanation. If yo...
A: Due to company policies I am compelled to solve only one question and that is the first question. Pl...
Q: systems, and your laptop/
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: Create a procedure on validating the software Encase is working correctly and that the hardware writ...
A: As the worlds of the Internet, technology, and digital forensics keep growing, you need to get used ...
Q: In this, the process that comes first will be executed first and next process starts on after the pr...
A: Find the answer given as below :
Q: The 2s complement of 623 is: None of them O 01110010001 10010010001 O 10110010001 The Equivalent in ...
A: As given, we need to find out - The 2's complement of decimal number 623 and The equivalent binary n...
Q: Discussion To
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: Write down the cardinal polynomials in the Lagrange interpolation polynomial for the points x ...
A: According to the information given:= We have to write down the cardinal polynomials in the Lagrange ...
Q: Define the concept of a unified memory architecture.
A: The goal of unified memory is to reduce data redundancy by copying data between separate areas of me...
Q: In this program write in pseudocode, Thankyou Public Class Test Public Shared Sub Main() ...
A: Every code is considered as the psuedocode . To convert any perfect code to psuedocode we just have...
Q: What is DNS scavenging, and how does it work? Describe the advantages.
A: Introduction: To avoid the accumulation of unwanted records, the DNS scavenging feature allows you t...
Q: Giving the following schema for a supermarket database, specify the domain constrains for each attri...
A: the answer to the following questions:-
Q: In this Program write in pseudocode. Imports System Module Module7 Sub Main() D...
A: Find the answer given as below and output:
Q: 2. Give a context-free grammar that generates the following language: k > 2, each x; E {a, b}*, and ...
A: S -> A | A#C | BB -> aB | bB | #B | #ACA -> aAa | bAb | #C -> aC | bC | #B | epsilon
Q: How soon before or after the main window shuts does the message box that was triggered by WM CLOSE a...
A: Answer : Milliseconds
Q: Suppose in the code below that signal Z changes at 20ns and no other signal changes after that time....
A: Solution : There are three processes A, B and C. The detail explanation given below
Q: 3. Explain the following with respect to 8086 Microprocessor. a. Procedures with example b. Differ...
A: A microprocessor is a computer processor where the data processing logic and control is included on...
Q: Consider the following graph: Draw the DFS and BFS spanning trees for the above graph starting from...
A: Breadth-First Search(BFS): In BFS we explore the adjacent nodes first and then we explore the childr...
Q: CODING LANGUAGE TO USE :- C SHARP ---------QUESTION BELOW------ You have two integers stored in va...
A: Task :- Write the C sharp Boolean test for given variables if one of them is more than 10 but not bo...
Q: nces you can observe between punch card based system
A: Below the differences you can observe between punch card based systems, and your laptop/ PC?
Q: What feature allows EIGRP to perform unequal-cost load balancing across multiple paths?
A: Answer: The feature allows EIGRP to perform unequal-cost load balancing across multiple paths are as...
Q: describe 2 advantages of using higher level socket compared to lower level of the network stack
A: advantages of using higher level socket compared to lower level of the network stack
Q: Specify the architecture of a computed unified device.
A: Architecture of computer unified device
Q: 22. Short answer question: please give an example of the atomicity problem.
A: In transactions and concurrency control there are ACID properties which are must be satisfied by all...
Q: Change the current date format to: MON-DD-YYYY HH:MI:SS for your session ? Hint: use ALETER SESSION
A: Date is always stores in default way only but it can be converted into our required format of the da...
Q: Differentiate between manually matching transactions and Advanced Mode transactions in QuickBooks De...
A: Introduction: Bank feeds can be set up and managed in a variety of ways. After obtaining your electr...
Q: I want to write a program in C to take capital cities from a text.txt file, and then order them alph...
A: I have provided the output and code below,please refer it : Please while executing your file name th...
Q: True or false 10. To express decimal to percent we simply move the decimal point two places to the r...
A: Decimal numbers are floated value which contains values in decimals.
Q: Given set A = {1, 3, 4, 5, 7} and set B = {2, 6, 8, 10}. Find the product of the cardinality of both...
A: Cartesian product of two sets A and B = A X B = {(a, b) | a € A and b € B) } Since, A = {1, 3, 4, 5,...
Q: Which of the following commands inserts an integer operand into ST(0)?
A: Introduction: The FIELD (Load Integer) instruction converts an integer operand in memory to extended...
Q: Using Common Lisp, complete the following programming exercises: Write a function that computes the ...
A: Here is the detailed explanation of the program
Q: Show one possible derivation tree for the expression A=B+C*A given: S → P = Q P → A | B |C Q → Q+Q ...
A: Given expression is A=B+C*A and the grammar is, S → P = QP → A | B |CQ → Q+Q | Q*Q | (Q) | P Where S...
Q: 1 ,1, -1,-1) are members of class with target value 1. (1 ,1, 1,-1) and (1 ,-1, -1,1) are members of...
A: Use Perceptron to classify (1 ,1, 1,1) and (-1 ,1, -1,-1) are members of class with target value 1. ...
Q: With the help of a master's thesis REAL-TIME ROAD TRAFFIC EVENTS DETECTION AND GEO-PARSING Please an...
A: a) In the 21st century, the number of cars on the road is increasing asand limited road infrastructu...
Q: In this VB.net Program write in Algorithm(Pseudocode). Thank you Module VBModule Sub Main() ...
A: The Pseudo code is given below.
Q: It's important to know what a heuristic is and how it's different from an algorithm, so we're going ...
A: Check further steps for the answer :
Q: Assume that list1 contains 100 items. The number of items in the following slice is list1[-4:-3] ere...
A: Solution:
Q: Am I right to say even the array is already sorted or not yet sorted (Unsorted), the number of compa...
A: Answer: Yes, the number of comparisons is the same for all type of sort algorithm example selection,...
please explain python
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Write a program that reads a character, then reads in a list of words. 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. Ex: If the input is: Z hello zoo sleep drizzle the output is: zoo, drizzle, Keep in mind that the character 'a' is not equal to the character 'A'. For coding simplicity, follow each output word by a comma, even the last one. Do not end with newline. e enA contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes as input an integer N that represents the number of word pairs in the list to follow. Word pairs consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: 3 Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309 Your program must define and call the following function. The return value of GetPhoneNumber is the phone number associated with the specific contact name.string GetPhoneNumber(vector<string> nameVec, vector<string> phoneNumberVec, string contactName) #include <iostream>#include <vector>using namespace std; string GetPhoneNumber(vector<string> nameVec, vector<string> phoneNumberVec, string contactName) {} int main()…A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes as input an integer N that represents the number of word pairs in the list to follow. Word pairs consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: 3 Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309 Your program must define and call the following function. The return value of GetPhoneNumber is the phone number associated with the specific contact name. string GetPhoneNumber (vector nameVec, vector phoneNumberVec, string contactName) Hint: Use two vectors: One for the string names, and the other for the string phone numbers.
- JAVA I need to make a program that asks users to enter 5 words; and prints the list of palindrome and not palindrome words. If user input is: dad, 123, mom, xyz, racecar The output will be: Palindrome: dad, mom, racecar Not palindrome; 123, xyz Note: Perform palindrome check using a loop; also implement the palindrome check in a method with in the programProblem:Write a program that reads a list of integers from the keyboard and creates thefollowing information.a. Finds and prints the sum and the average of the integersb. Finds and prints the largest and the smallest integerc. Prints a Boolean (true or false) if some of them are less than 20d. Prints a Boolean (true or false) if all of them are between 10 and 90The input data consist of a list of integers with a sentinel. The program mustprompt the user to enter the integers, one by one, and enter the sentinel whenthe end of the list has been reached. The prompt should look like the following: Enter the numbers with <return>(99999 to stop):The output should be formatted as shown below: The number of integers is: xxxThe sum of the integers is: xxxxThe average of the integers is: xxx.xxThe smallest integer is: xxxThe largest integer is: xxxAt least one number was < 20: <true or false>All numbers were ( 10 <= n >= 90): <true or false>Code should be in Python, please Write a program that replaces words in a sentence. The input begins with word replacement pairs (original and replacement). The next line of input is the sentence where any word on the original list is replaced. Ex: If the input is: automobile car manufacturer maker children kids The automobile manufacturer recommends car seats for children if the automobile doesn't already have one. the output is: The car maker recommends car seats for kids if the car doesn't already have one. You can assume the original words are unique.
- Python Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value of a word is the sum of each tile's points added to any points provided by the word's placement on the game board. Write a program using the given dictionary of letters and point values that takes a word as input and outputs the base total value of the word (before being put onto a board). Ex: If the input is: PYTHON the output is: 14 part of the code: tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 }Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating the number of integers that follow.In python Write a program that gets a list of integers from input, and outputs non-negative integers in ascending order (lowest to highest). Zero is considered a non-negative integer. Ex: Enter a list of numbers: 10 -7 4 39 -6 12 2 The non-negative and sorted numbers are: 2 4 10 12 39
- Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, and output all integers less than or equal to that value. Ex: If the input is:05506014020075100 the output is:506075 The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75. Such functionality is common on sites like Amazon, where a user can filter results. Your code must define and call the following two functions: def get_user_values()def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold) Utilizing functions will help to make your main very clean and intuitive.In Python, Write a program that replaces words in a sentence. The input begins with word replacement pairs (original and replacement). The next line of input is the sentence where any word on the original list is replaced. Ex: If the input is: automobile car manufacturer maker children kids The automobile manufacturer recommends car seats for children if the automobile doesn't already have one. the output is: The car maker recommends car seats for kids if the car doesn't already have one. You can assume the original words are unique. The code that I recieved was as follows and it works perfectly, except I get the answer wrong due to white space at the end of the punctuation of the output. Is there any way to fix that in this code here? A required program is as follows, #Define main() function def main(): #Read data from the user replace_pairs = input() #Split replacement pairs into list replace_pairs = replace_pairs.split() #Create two lists for original and replacement…Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating the number of integers that follow. Ex: If the input is: 5 2 4 6 8 10 the output is: all even Ex: If the input is: 5 1 3 5 7 9 the output is: all odd Ex: If the input is: 5 1 2 3 4 5 the output is: not even or odd Your program must define and call the following two functions. IsVectorEven returns true if all integers in the array are even and false otherwise. IsVectorOdd returns true if all integers in the array are odd and false otherwise.bool IsVectorEven(vector<int> myVec)bool IsVectorOdd(vector<int> myVec) #include <iostream>#include <vector>using namespace std; /* Define your function here */ int main() {/* Type your code here. */ return 0;} Please help me with this problem using c++.