nd expense of each customer is as below Peter (1000) -> John (200) -> Harry (1200) -> Luna (400) a) Use singly linked list concepts to record those information. Write a function to print out the referral connections in forward dir
Q: In some documents, you may not want to restart page numbering on any page of your document. For…
A: In this question we have to understand that in some documents, you may not want to restart page…
Q: DBMS enforces an UPDATE SET-TO-NULL option on the referential integrity constraint between CLIENT…
A: Dear Student, The answer to your question is given below -
Q: I need help with this one please, already tried but still getting a wrong answer Scenario You have…
A: Answer: We have done code in python and also we have attached the code and code screenshot and…
Q: A robot can move horizontally or vertically to any square in the same row or in the same column of a…
A: Algorithm for the code: 1. Start 2. Create a 2D matrix (T) with m rows and n columns. 3. Set the…
Q: A boolean expression is an expression that only evaluates to true or false.
A: An expression that is utilised in programming languages is called a Boolean expression. When this…
Q: It can be used to answer the following question (w/c can be difficult to translate in English):…
A: It can be used to answer the following question If the name of the person does not exist, return a…
Q: Here is a rundown of the different categories of programming languages: Please provide a short…
A: Introduction: If there are several types of programming languages, like in this question: Tell us a…
Q: As a computer maker, you have the challenging problem of producing high-quality computers with…
A: The processing speed of a central processor is measured in cycles/seconds. Evaluating Popular…
Q: This assignment relates to content from Chapter 13 and Exercise #11 of the eText. The objective is…
A: THE ALGORITHM OF THE CODE:- 1. Create a class called myArray.2. Include two constructors that take…
Q: Exactly how essential is Turing's paper on artificial intelligence?
A: Turing's paper on artificial intelligenceDepending on how skilled the interrogator is, it may be…
Q: NO HANDWRITTEN
A: We can symbolize this statement as follows: Let A be the statement, "Pusheen is at Anouk's" Let B…
Q: BLC's six phases does the data dictio
A: Introduction: The six primary stages of the software development life cycle (SDLC) are typically its…
Q: Consider a problem with four variables, {A,B,C,D}. Each variable has domain {1,2,3}. The constraints…
A: Consider a CSP that contains the variables A, B, and C, each with domain {1,2,3,4} . To remove B,…
Q: A) Starting with a dynamic array of length = 32 and numElements = 30, the length after we execute…
A: Answer is
Q: MySQL 6. 2. Challenge Updating data A mysql prompt has been opened for you. Using the EPDriver…
A: Dear Student, The required query with explanation is given below -
Q: 4. Firms use a price than competitors. a) product differentiation b) market niche c) mass…
A: “Since you have posted multiple questions, we will provide the solution only to the first three…
Q: 7. In question 6, show that is a unit in the ring M₂(Q) but not a unit in M₂ (R). C
A: A is an invertible matrix in M2(Q), then det(A)⋅det(A−1)=1.
Q: Write a C program to print odd numbers from 7 to 99. Important: Do not copy codes from…
A: The source code of the program #include <stdio.h> int main(){ int i; printf("Odd…
Q: Write ARM Assembly Language Program of 32-Bit Addition Add the contents of the 32-bit variable…
A: ALGORITHM: Step 1:Initialize the data segment. Step 2:Load the LSB of first number into AX register.…
Q: x86 Assembly Language Programming What will be the final value in EDX after this code executes? mov…
A: the solution is an given below :
Q: Question 4: Task 1: Create a generic method named sum() that accepts a generic ArrayList reference…
A: We have to write four functions which are: public static…
Q: Give the diagram of the doubly linked list implementation of the polynomials in two variables. Use…
A: The doubly linked list is a complicated form of a linked list. This type of linked list contains…
Q: How much of an effect is cloud computing having on teamwork today?
A: Dear Student, The answer to your question is given below -
Q: Answer in C++ only Ron opened his new restaurant and prepared the first free meal for everyone! You…
A: I have completed the code using C++.
Q: What does it require to alter procedures for software configuration management?
A: Following is information about software configuration management policies: Management of Software…
Q: What are the four most common causes of database failures, and how do you propose to handle them to…
A: Dear Student, The most common causes of database failures are given below -
Q: 4)Which of the following devices are types of modern computers? Select all that apply. -Smart phone…
A: Answer: We need to write the what option is correct based on the given information. So we will see…
Q: Given the following input of files: file1.txt fire, candle, deer, fire, deer file2.txt candle, deer,…
A: Word count problem counts the number of occurrences of each word in a given input set.
Q: 8. The sql databawe ss is required.
A: Here is the all queries about the problem. See below steps for output.
Q: at all feasible, employ a generic type (also known as a template) and enable iteration using the for…
A: The CircularArray class is a generic type class which allows us to create an array of objects that…
Q: The continue statement in a while loop would be used to do what? Reset the loop. Go back to the…
A: Dear Student, The answer to your question is given below -
Q: draw the MIPS datapath for neg and jal instruction single cycle, and multicycles.
A: Datapath which refers to the one it is the hardware that performs all the required operations, for…
Q: Need a function written in c that can do this. Inputs: positive integer n (number of letters in a…
A: These question answer is as follows,
Q: Write a program that goes through 1 to 100. It prints "sponge" if a number is only divisible by 3 or…
A: Answer the above question are as follows
Q: Is there a limit to how much data can be stored with Amazon Web Services?
A: You can add as much data as you like, but doing so will make you need to establish more shards as…
Q: When asked, "What are REST web services and why are they so significant to many people?" the typical…
A: Introduction: REST is an architectural term that stands for Representational State Transfer.…
Q: What safety measures should a business take while assessing cloud computing?
A: Introduction: The on-demand availability of computer system resources, most notably data storage, is…
Q: How closely related are they in terms of the approach used to creating the system?
A: A system life cycle includes feasibility study, system analysis, system design, programming and…
Q: When thinking about the value of data modeling, why is it so crucial to consider the following
A: Data models allow designer, programmer, and end-user engagement.Data modeling's significance Data…
Q: In regards to developing legacy systems, what are the greatest solutions available? When would it…
A: An estate plan is a procedure planned, carried out, and applied in a distinct setting. It can…
Q: The alligator tries to find the way to the river. 1 presents path, 0 presents non-path. Please write…
A: In this question, it is asked to provide the java code for the given problem statement. The problem…
Q: What are the upsides of high-level languages like C and Python over low-level ones like machine…
A: Introduction: Any programming language that allows for the creation of a program to take place in a…
Q: What types of developments in software engineering and computing have been produced in nations other…
A: Software engineering involves employing engineering to create computer programmes.Software engineers…
Q: u ∈ Σ∗| u ends with aa}. L2 = {u ∈ Σ∗| u ends and begins with different letters }. L3 = {u ∈ Σ∗| u…
A: I have solved below:
Q: Explain in detail what it means to synchronize your PC and mobile device. How many different ways…
A: Synchronization occurs when a mobile device communicates with applications on a PC.
Q: 58. Write a c program to count the number of words and characters in a file. File name should be a…
A: Algorithms: START Create input by the user. Display the output. END
Q: Specify how operating systems make use of anti-virus, firewall, automatic update, and…
A: A firewall is PC equipment or software that may assist secure your company by screening traffic and…
Q: A motor pull up 60L of water to a height of 25m in 6s. Calculate work done and power of pump.
A: 1) Volume of water = 60 L = 60 × 10-3 m 3. We need to calculate the mass of water Assuming density…
Q: Explain in general terms what each part of the kernel does in a standard operating system.
A: The kernel is the central part of the operating system that controls the operations of the computer…
Q: Explore the public areas of dssresources.com. by preparing a list of its major available resources,…
A: dssresources.com is a website that provides information and resources related to decision support…
Write a simple C++ program:
A company implements a referal program that each customer will get bonus 5% of expense of the
directly referred customer and 2% of all expenses of indirectly referred people. The list of connected
customers and expense of each customer is as below
Peter (1000) -> John (200) -> Harry (1200) -> Luna (400)
a) Use singly linked list concepts to record those information. Write a function to print out the referral
connections in forward direction exactly as above.
Hint: Define a class, e.g. namely Customer, with attributes are name, expense, bonus, *next.
b) Write a function to find and print out the name of Customer with largest expense.
c) Write a function namely updateBonus(Customer *head) to update and show the bonus values for
all customers in the list.
Sample Run:
Peter (1000) -> John (200) -> Harry (1200) -> Luna (400)
Customer with largest expense: Harry
All bonuses: Peter: 42 John: 68 Harry: 20
Step by step
Solved in 4 steps with 3 images
- program by using C language In the struct structure given below, the data of a student is stored in a singly linear linked list. Write a function named "secondHighest" that takes the starting address of the list as a parameter and returns the student number with the second highest grade? typedef struct node { int OgrNo; int not; struct node *next; };I want this in C programming Phase 1 Each person eligible to win is placed in one of G groups. For each group, a process is used to narrow down the possible number of winners. The process is as follows:Let a group initially start with p people. We can number the people within a group from 1 to p and assume they are arranged in a circle(circular linked list), with 1, then 2, ..., then p, followed by 1. Each group has its own skip number, s, and its own threshold number, t, where t< p. To eliminate some people in a group from possibility of winning the lottery, start at the person labeled 1 and skip over speople in line. Then, remove the following person. (Thus the first person removed is always person number s+1.)Then repeat the process. Since the line is circular, once you pass the highest numbered person left in line, you'll continue to the lowest numbered person left in line. Continue eliminating people in this fashion until there are precisely t people left. Phase 2 Of all of…Suppose you have a list of key/value pairs (i.e., a nested list where each element of the list is a (key value)pair. For example, the list might look like this: '((France Paris) (France Nice) (Spain Madrid) (Poland Krakow) (Poland Warsaw)) (Notice that the keys need not be unique for this problem.) Write a function named first-occurrence in Scheme that takes a key and a list then returns the value of the first item on the list with a matching key. Return '() if none of items on the list has a matching key. You must use either fold or reduce to do the vast majority of the work. You may use the built-in foldmethod by adding the line (require 'list-lib), or you can use your own implementation. The built-in fold function has parameters in this order: action partial-result lst. You may assume that the list contains an element with the key to be updated. For example, (first-occurrence 'Germany '((France Paris) (Germany Bonn) (Germany Berlin))) should return 'Bonn (first-occurrence 'Poland…
- Write a COMPLETE C++ code by using only #include<iostream> library, Includes an explanation of the code and its working details completely. It must contain the pictures of each and every functions results. Write a menu driven program to implement the linked list that has the following operations: Insert(data) Search(key) Delete(key) Your Linked List must accommodate Trader type of data. A bloom filter that acts as a membership data structure giving a very quick heads up on search of an item. Data is key/value fields for a Trader type of data tradernumber is the key or identifying field and other data fields name and department are value fields. All these fields combine to form the data and for Search and Delete all we need from the user is the key field. class LinkedList { (This class will only have the address of the first node in the List because if you have that you can reach any other node in the list by the next pointers in the node) Node * head; (The head is only a place…Write a program in c++ which will concatenate two single linked lists. The structure is defined below. Assume that head1 contains the starting address of the first list and head2contains the starting address of the second list. You need to join them together so that allthe students’ roll number and name of both the lists will display together with the help of head1pointer.struct link{int rollno;char name[20];struct link *next;};typedef struct link node;node *head1=NULL, *head2=NULL; //global declarationTask 1: Write down a complete C/C++ program to test your linear linked list implementation. Additionally, write another function which will be used to list the linked list content. Complete your implementation using the following code: header = insertBack(header,2); header = insertBack(header,4); header = insertBack(header,6); DisplayList(header); header = insertFront(header,1); DisplayList(header); insertAfter(header->next->next,5); DisplayList(header); header = deleteFront(header); DisplayList(header); header = deleteBack(header); DisplayList(header); deleteAfter(header->next); DisplayList(header); Task 2: Write a function that moves a node forward in the given linked list. Take the pointer of the node to be moved as a parameter. void moveforwardlist (struct node *, struct node *); Task 3: Write a function that moves a node backward in the given linked list. Take the pointer of the node to be moved as a parameter. void movebackwardlist…
- Write a C code for the structure types of a dynamic linked list implementation of a “queue”. Each node of the queue will have the following information: Name of the queue: library_tComponents of the queue:Book_Name (name of the book)Writter_Name (name of the writter)ID (identification number of the book)Edition (edition of the book)Link: pointer/link to next node Write functions to add and remove the nodes of the queue and use printf() to show that the code is working properlyWrite a C program that does the following: a) Read information of the n houses from keyboard into dynamic structure array. b) Display them in a list as each house information will be on a row with proper heading. HOUSE INFORMATION house_no address ( street, city, country) no_of_room owner_name pricein c language program, write a code that display the information of all products o display the names and price per unit for allproducts in the linked list with the quantity less than two calculate the total price of all products in the all of the code is in different function or segemnt
- Write a function removeN which takes three arguments called N, E and L (where L is a list) and returns a list equal to L but with the first N occurrences of E in that list removed. Note: only first N occurrences of E must be removed, not all occurrences! If there are less than N occurrences of E in the list, then all occurrences of E should be removed. Using scheme language Test Result (removeN 2 'a '(a b a c a d a)) (b c a d a) (removeN 4 'a '(a b a c a d a)) (b c d)Define a common Lisp function Member-2 such that if K is a symbol and X is a list then (member-2 K X) returns T if the symbol is an element of the list, and returns NIL, if the symbol is not a element of the list. Example (member -2 'A '(C A B C D)) ==> T ( member-2 'A'(B C D)) ==> NIL Hint: you must write a common Lisp function for example, else has no predefined meaning in common Lisp and so your function must not use a COND clause of the form(else...)by using the linked list technique, write a full c programming that could display as below: A character array of size 25 containing the student’s name An integer number containing the student’s age A floating-point number containing the student’s GPA A pointer for the next node and dispay the location address of the node for each student for all head and tail The program shall displayed the expected outcome that was attached.