C7 Write a program that will take an integer array(A) and an integer value(v)as input and do the following task - If the value is present in the list, delete all the elements present before the value - if The value is not present in the list, enqueue it after 1st even number. //Comment per condition Must and explained the enqueue and code part with screenshot. I will up vote your answer immediatly. Kindly provide correct answer.
Q: Wireless network access is critical in today's developing countries. Wireless technologies have…
A: Introduction: On the off chance that anything turns out badly with a machine under remote control,…
Q: What happens if you run an error-prone programme
A: Introduction What does "error-prone programming" mean? Error Prone is a Java static analysis tool…
Q: What are the benefits that come along with using a hash index table?
A: Given: Table with a hash index A hash index is a value that is placed in the index position of the…
Q: What do you think the future holds for artificial intelligence in light of the developments that…
A: Machines can learn from their experiences, adapt to new inputs, and execute human-like jobs because…
Q: When it comes to increasing application resilience, availability, and overall performance, where and…
A: This question is intended to elucidate how regions and availability zones enhance application…
Q: What safeguards can you put in place to keep your computer from being affected by unexpected spikes…
A: Intro What safeguards can you put in place to keep your computer from being affected by unexpected…
Q: What would happen if the cloud computing business was affected by a significant incident? What are…
A: Launch: Technical difficulties including reboots, network disruptions, and downtime may occur in the…
Q: Methodically analyze and characterize the stages of multimedia project development.
A: Multimedia project is the presentation of information using texts, sounds, images, animations and…
Q: What role do you anticipate artificial intelligence playing in the world of the future? Where can…
A: Almost every industry and everyone are affected. Intelligent machines will continue to drive new…
Q: What are we trying to accomplish with artificial intelligence in the end? Please provide a synopsis…
A: Given: Artificial intelligence seeks to produce software that can handle real-world issues fast and…
Q: Distinguish between the notions of user interface, UX, and UI design.
A: -The user interface: The user interface (UI) is the interface between a computer, a website, or an…
Q: The bottom of memory is reserved for the interrupt ___________ table.
A: Introduction: The bottom of memory is reserved for the interrupt ___________ table.
Q: What kinds of troubleshooting strategies and simple network commands have you utilized in the past…
A: The following is a list of troubleshooting methods for the basic network: - In the settings, check…
Q: What options do cloud-based companies have to deal with these issues? The potential risks and…
A: Start: Cloud computing is the delivery of various equipment and programming administrations over the…
Q: Explain the definition of the term "firewall" in terms of network security, as well as how it is…
A: Answer: We need to write a answer about security purpose on a running client and server. so we will…
Q: Why should a program close a file after it has used it?
A: Three steps that must be taken by a program when it uses file is Open the file Process the file…
Q: Creating Artificial Intelligence with the Goal of Implementing it in the Field of Medicine What more…
A: Given: Artificial intelligence is frequently utilised to deliver individualized suggestions to…
Q: Specify the actions that the CPU should do when it receives an interrupt. Include in your answer the…
A: An interrupt is a computer signal which shows the program within the computer to require the…
Q: What exactly is the goal of artificial intelligence, and why is its implementation necessary? Please…
A: AI is also known as artificial intelligence.
Q: When you say "cloud storage," could you maybe explain what you really mean by that phrase?
A: When you say "cloud storage," could you maybe explain what you really mean by that phrase?
Q: What happens if you run an error-prone programme?
A: Introduction: Error-Prone is a Java static analysis tool that finds common compilation issues.
Q: In this discussion and analysis, we will look at the many approaches to artificial intelligence that…
A: Introduction: These devices form the foundation of artificial intelligence. IBM's chess-playing Deep…
Q: Please explain what is meant by the phrases "critical infrastructure difficulty" and "attribution…
A: Inspection: Protecting public safety, which encompasses persons, the economy, and organizations, is…
Q: List process-related responsibilities of a multi-user, time-sharing OS.
A: Introduction: Listing High-level process steps:
Q: ample Output: Reading from the file Exercise24.txt Total number of elements: 20 Sum: 1288 Average:…
A: Answer:
Q: t abilities are necessary to have in order to work as a database developer o
A: Database programmer or database developer A database programmer, often known as a database…
Q: In C language, create a program to find factorial of a number using function with step by step…
A: The question has been solved in step2
Q: Is there a distinction between the World Wide Web (WWW) and the Internet (Internet)?
A: Intro In the given question, we have to specify the significant differences between WWW and…
Q: Describe the various issues that may develop in a wireless network if one of the stations was hidden…
A: Intro A wireless network allows computers to communicate with one another without network…
Q: Explain the concept of the Sliding Window Protocol and provide a timeline for the Sliding Window…
A: Introduction: The sliding window protocol enables the communication of an infinite number of packets…
Q: What steps can you take to guarantee that the code will be submitted into the source control system…
A: Committers should have sufficient privileges to push branches to a remote repository and set their…
Q: (c program only) 2. Jack `N Poy by CodeChum Admin Jack `N Poy is a very common game since our…
A: Code: #include <math.h>#include <stdio.h>#include <stdlib.h>#include…
Q: What are the kernel's primary duties in the Linux operating system?
A: Introduction: It is one of the most extensively used operating systems, with support for virtually…
Q: Because of Facebook's major privacy issue, you have decided to stop using the social media site.…
A: Facebook has faced several security issues. These originate mostly from the organization's revenue…
Q: You work at a help desk and have just received a call from an employee who says she can't access…
A: Answer is given below:
Q: Transaction in a database. Describe the advantages of the trade.
A: Introduction: In the context of a database, a transaction is a logical unit that is processed…
Q: Which of the following I/O technique is appropriate to use for wireless printer? Select the correct…
A: d.DMA
Q: The infrastructure that grid and cloud computing rely on differs. I'm attempting to figure out what…
A: Start: Grid computing and cloud computing have similar concepts and are frequently mistaken. Both…
Q: In light of the recent breakthroughs, discuss what the future holds for artificial intelligence…
A: Inspection: AI is altering almost every sector and individual on Earth. AI is driving the growth of…
Q: As the physical and digital worlds continue to converge via the use of smart technology, are we on…
A: Introduction: The need of online privacy and security has never been greater. A cyber attack occurs…
Q: Is it possible to use the words World Wide Web and Internet interchangeably?
A: Intro short for World Wide Web: => The internet is a massive network comprised of billions of…
Q: Write c program to calculate answer of below expression x²+5x+6 Ask user for value of x…
A: Given: Write c program to calculate answer of below expression x²+5x+6 Ask user for value of x
Q: https://pastebin.com/raw/zpnrNqpJ Fix the Replace function in this C project and make sure it…
A: C programming is a general-purpose programming language. It is considered to be a high-level…
Q: contrast and distinction Packet-Switched and Dedicated-Circuit Services
A: Intro In Circuit-switched networks, the connection between the source and destination has to be…
Q: The CPU is linked to a number of I/O devices, any of which might produce an interrupt at any moment.…
A: Introduction: Cypher block chaining is the technique used by DES (Data Encryption Standard). In…
Q: What is the history of the internet of things, and what are some examples of how this technology is…
A: The internet of things' history and present applications: To promote RFID technology, the name…
Q: Which of the following I/O technique is appropriate to use for wireless printer? Select the correct…
A: The answer is given below.
Q: Creating Artificial Intelligence with the Goal of Implementing It in the Field of Medicine What more…
A: The Artificial Intelligence: Artificial intelligence is commonly used to deliver individualized…
Q: What are the main obstacles to distributed query optimization?
A: Introduction The evaluation of a large number of query trees, each of which produces the requisite…
Q: In what ways are tasks dependent on data?
A: Answer:
C7
Write a program that will take an integer array(A) and an integer value(v)as input and do the following task
- If the value is present in the list,
delete all the elements present before the value
- if The value is not present in the list, enqueue it after 1st even number.
//Comment per condition Must and explained the enqueue and code part with screenshot.
I will up vote your answer immediatly. Kindly provide correct answer.
Step by step
Solved in 2 steps with 1 images
- Q.Create an interesting educational information chat box that asks the user to give an input question and then answers the question given by user with a suitable answer. You can make use of list for different questions and answers.Save two to three answers for a single question and then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with the questions present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear **coding language python ***try using basic programming techniques in python without using arrays and pointers * * * copy paste the program itself and also the screenshot of program and output * * * use any type of data for questions such as name details of cities species etc depends on…Q.Create an interesting educational information chat box that asks the user to give an input question and then answers the question given by user with a suitable answer. It should match the question of user with the answer avaliable. Make use of list for different questions and answers. (if possible) Save two to three answers for a single question and then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with the questions present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear **coding language python ***try using basic programming techniques in python without using arrays and pointers * * * copy paste the program itself and also the screenshot of program and output * * * use any…Write a statement that creates an array of three string values that is referenced by the fullName variable. Using string values for a first, middle, and last name, create an initialization list for the array.
- Q.Create an interesting educational information chat box that asks the user to give an input question and then answers the question given by user with a suitable answer. It should match the question of user with a suitable answer avaliable . You can make use of list for different questions and answers. (if possible) Save two to three answers for a single question and then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with the questions present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear **coding language python ***try using basic programming techniques in python without using arrays and pointers * * * copy paste the program itself and also the screenshot of program and output…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.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. Using Scanner.input to prompt user, Use the following names and phone numbers: 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
- 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-0991A 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 This is code that was given to us; import java.util.*; class PhoneNumbers { public static void main(String[] args) { // Write your code here } }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 import java.util.*; class PhoneNumbers { public static void main(String[] args) { // Write your code here } }
- For this exercise, please calculate two values from all of the numbers in the two dimensional array. The first value should be the sum of all numbers in the array. This should be stored in a separate "int" variable that is created outside the nested FOR loops. The second value should be the total average of all numbers in the Array. This should be stored in a separate "float" variable, also outside the nested FOR loop structure. So, in short: • Display the sum of the values in the array • Then display the average of the values in the array Please refer to the sample output below for visualization and match its style. As always: • Remember, the class name should be Lab9B. The user input is indicated in bold. Sample Output #1: Please enter the number of rows: 3 Please enter the number of columns: 2 I have 3 rows and 2 columns. I need to fill-up 6 spaces. The 3x2 array: 1|2| 314| 516| The sum of all the numbers in the 3x2 array: 21 The average of all the numbers in the 3x2 array: 3.5…Add a prompt to ask the user to input their last name (no spaces ; please use underscores if needed), age and a balance of their choice. Create a new entry in the patient_list array with this information [Important note: you can statically modify the code to have the patient_list array hold an extra entry ; no need to do any dynamic memory allocation to accommodate the new entry]. #include <iostream> #include <cstdlib> #include <cstring> using namespace std; // Declaring a new struct to store patient data struct patient { int age; char name[20]; float balance; }; // TODO: // IMPLEMENT A FUNCTION THAT COMPARES TWO PATIENTS BY AGE // THE FUNCTION RETURNS AN INTEGER AS FOLLOWS: // -1 IF THE AGE OF THE FIRST PATIENT IS LESS // THAN THE SECOND PATIENT'S AGE // 0 IF THE AGES ARE EQUAL // 1 OTHERWISE // TODO: // IMPLEMENT A FUNCTION THAT COMPARES TWO PATIENTS BY BALANCE DUE // THE FUNCTION RETURNS AN INTEGER AS…1. Display Function Implement a function to display the contents of the patient_list array. Add code to call this function. Note that there are multiple places where this function needs to be called. Look for the // TODO comments to find the correct locations. Compile and test your program. Make sure that your output is formatted similarly to the sample output shown at the end of this document. The sorting part does not need to work yet. Take a screenshot of a sample output and upload the picture as part of your assignment submission. 2. Sorting the array by Age Implement the code to sort the contents of the patient_list array based on the value stored in the age field. To do this you will need to implement code that relies on the qsort function from the C Standard library(see http://www.cplusplus.com/reference/cstdlib/qsort/). As shown in the reference, this code requires two parts: A function that compares two patient elements, based on the value stored in the age…