Write a full c++ program to do the following:- 1- define an array (employeeSal) with 5 elements and read th employeeSal array refers to the salaries of 5 employees. 2-define another array(deptlds) that corresponds to employe elements (2,2,1,1,5) in it. The values in deptlds array refers to employee works. 3-print the average of all Employee salaries working in deptid: 4-find the maximum employee salary in deptlds 1 5- print the deptlds number of the employee with minimum S. ex:- if the employeeSal array was = (500,300,200,700,100) and deptlds = (2 2, 1, 1, 5} Wa your output must be : the average for deptld 2= (500+300)/2=400 the maximum employee salary in deptids 1= 700 the deplds number for minimum employeeSal = 5 *
Q: Is there a particular function of WiFi that contributes to the development of computing?
A: Wi-Fi technology can connect computers, tablets, and mobile phones to the internet. A wireless…
Q: Can m-linked-lists be used to create a hash table? Why do we need a hash function, exactly? Provide…
A: To distinguish the specific object from a collection of related objects, hashing is used. Hash…
Q: In analyzing a computer's motherboard, what two parts jump out as being the most crucial?
A: Brief Justification: The notice contains information on the meeting's time, location, date, and…
Q: Data in memory can be accessed in two ways: sequentially or directly. Why is it beneficial to have…
A: The answer is given in the below step
Q: Create code that will find duplicate keys in a linked list and remove them all.
A: LinkedList deletion algorithm for all nodes with duplicate keys. For instance, remove Duplicates()…
Q: Cell E1 has the formula “=A1+$A$2”. If we copy the formula from E1 down to E2, which one of the…
A: The solution is given below with explanation
Q: When turning on a computer for the first time, if no sounds of a spinning disk or lights appear, is…
A: Introduction: Central Processing Unit, or CPU, is the term for most computer hardware and functions…
Q: Please answer quick in python Define a Rectangle class that inherits from Quadrilateral, with the…
A: Algorithm of the code:- 1. Start 2. Create a class Quadrilateral with four side attributes (side_a,…
Q: put of the follo name and cop mechanism re: -)
A:
Q: To what purpose does TCP/function exist? IP's
A: TCP/IP symbolizes Transmission Control Protocol and Internet Protocol. A network communication…
Q: 2.3 An alias provides a mechanism to rename a column or an expression. Under what conditions should…
A: An alias name is alternate or substitute of a column name in table.
Q: There is a distinction between embedded systems and regular PCs. Embedded devices, in contrast to…
A: About This investigation focuses on the contrast between an embedded system and a general-purpose…
Q: Consider an online holiday booking system. The users can register and log in to book a holiday…
A: Please find the answer below :
Q: Write a function myJoin(lst, glue) in JavaScript that takes a "glue" string and a list of strings…
A: Step-1: StartStep-2: Function myJoin(lst, glue) Step-2.1: Declare variable joinedString and use…
Q: Can you explain why a firewall would be useful for your company?
A: The definition of the term "firewall" is that it will assist and safeguard our computer by…
Q: def menu(): print("[1] Load Shapes") print("[2]Exit the program") print("[3] Add shapes") print("[4]…
A: use try and except concept here to restrict user to input letters. put the read functionality…
Q: Write a function named contains-double in Scheme that takes a list as input and returns true if an…
A: The Scheme code is given below with output screenshot
Q: Write a java program that reads a number in meters, converts it to feet, and displays the result.…
A: The solution is given in the next step
Q: Which one of the following is not a Boolean Expression? Group of answer choices: a. X/Y b. X>Y c.…
A: Answer: Introduction: According to the given declaration, the boolean expression is simply an…
Q: Parallel processing, also known as multiprocessing, needs to be defined. Operation in parallel.…
A: What is parallel computing? Parallel computing uses multiple computer cores to attack several…
Q: by using the table in the query attached: Show the name, contact number and email address of the…
A: Demo data has been used to solve the query The SQL query is given below with output screenshot
Q: mov edx,1 mov eax,7FFFh cmp eax,8000h
A: The answer is
Q: Specify the TOR system.
A: Users can access the internet anonymously thanks to the Tor network. Web browsers, instant…
Q: The following set R defines an equivalence relation on the set {1, 2, 3}, where a R b means that (a,…
A: If a relation is equivalence then it has equivalence classes. To find the equivalence class it must…
Q: Can you list the limitations of the Tor network?
A: Tor Network Multi-layered encryption and great many relays structure the foundation of the TOR…
Q: 4.: Describe the mechanism used in the CAN protocol to synchronize an incoming bit from a CAN bus.
A: Although the nominal bit rate of the CAN network must be the same across all nodes, actual bit rates…
Q: When planning a high-performance open hash table, keep the following in mind:
A: The hash tableA hash table in hashing represents data in the array form, with each item containing…
Q: Course: Automata and Formal Languages Answer the following questions: 1. Provide the transition…
A: NFA stands for non-deterministic finite automata. It is easy to construct an NFA when compared to…
Q: Consider an online holiday booking system. The users can register to book a holiday package. Which…
A: Note As per our guideline We will solve the first questions at that time remaining question post…
Q: In the table above, Vanesa’s last name was omitted. Write an SQL query to add the last name. Assume…
A: Note: Due to company policies I am compelled to solve only one question and that is the first…
Q: If you could provide a short summary of memory addressing and why it's so crucial, that would be…
A: Memory Addressing: A memory address is a unique address used by the device or CPU to track…
Q: How many nodes does the fastest linkedlist have? Which one is the longest?
A: A linked list is a specialized kind of data structure in which each component, also known as a node,…
Q: When planning a high-performance open hash table, keep the following in mind:
A: Tableau hashWhen data is hashed, a hash table is used to represent it as an array where each item…
Q: Write a brief note on Analysis of the BinarySearchTreeList Implementation
A: A binary search tree follows the some order to arrange the elements.
Q: Why doesn’t this work? And how does the marcher class work? Thanks!
A: import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public…
Q: Contains DNS records, authoritative servers, root servers, and iterated and non-iterated queries.
A: DNS is sometimes described as the internet's equivalent of the phone book. When you wanted a…
Q: Please elaborate on the reason why LCD technology results in a flat screen on computer monitor.
A: Why is the screen of a computer's LCD flat? These monitors are lightweight and need less space.…
Q: The device that prints out images is colloquially known as a "plotter." Why?
A: A plotter is a component of the computer technology, similar to a printer, used to print vector…
Q: 13. In cell A17, use the SUMIF function and structured references to display the total membership in…
A: SUMIF function : One of the math and trig functions, SUMIFS, adds all of the inputs that satisfy…
Q: Suppose you have a list of key/value pairs (i.e., a nested list where each element of the list is a…
A: Python which refers to the one it is a high-level, general-purpose programming language. Its design…
Q: Python data structures: write a function that takes in a list (L) as input, and returns the number…
A: Here we are going to solve the above problem using the merge short Algorithm Follow the below steps…
Q: Where is the tester?
A: The question first asked you to write a function that uses the recursive method to find the GCD of…
Q: Given a list (43, 74, 88, 35, 60, 98) and a gap array of (3, 2, 1): What is the list after shell…
A: Shell sort is based on the Insertion sorting algorithm and it belongs to the group of very efficient…
Q: Examine and contrast the value of cloud computing with mobile devices. Multiple advantages accrue to…
A: Computing relevance to mobile devices: Mobile computing enables us to access data and information…
Q: What does it mean when someone talks about a "Access Point" in terms of WiFi technology? Can you…
A: Introduction: The WiFi access point is a device inside a wireless network that produces the wireless…
Q: Concerning Operating Systems: A Question The presence of both big-endian and little-endian computer…
A: Little and big endian are two ways of storing multibyte data types.On little endian machines, the…
Q: Give a specific reason why the following set R does not define an equivalence relation on the set…
A: Equivalence relation is relation which is symmetric, reflexive and transitive.
Q: valsTable: o 50 1 51 2 3 4 5 6 7 8 9 st 67 Empty-since-start Empty-after-removal Occupied Hash table…
A: Here in this question we have given a hash table with size 10 nad and we have asked to insert some…
Q: What does it mean when someone talks about a "Access Point" in terms of WiFi technology? Can you…
A: "Access Point" as it relates to wifi: Said an access point is a location that offers wireless…
Q: Consider an online holiday booking system. The users can register to book a holiday package.…
A: Please find the answer below :
--
Step by step
Solved in 3 steps with 1 images
- (Electrical eng.) Write a program that declares three one-dimensional arrays named volts, current, and resistance. Each array should be declared in main() and be capable of holding 10 double-precision numbers. The numbers to store in current are 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, and 3.98. The numbers to store in resistance are 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9, and 4.8. Your program should pass these three arrays to a function named calc_volts(), which should calculate elements in the volts array as the product of the corresponding elements in the current and resistance arrays (for example ,volts[1]=current[1]resistance[1]). After calc_volts() has passed values to the volts array, the values in the array should be displayed from inside main().Mark the following statements as true or false. A double type is an example of a simple data type. (1) A one-dimensional array is an example of a structured data type. (1) The size of an array is determined at compile time. (1,6) Given the declaration: int list[10]; the statement: list[5] - list[3] * list[2]; updates the content of the fifth component of the array list. (2) If an array index goes out of bounds, the program always terminates in an error. (3) The only aggregate operations allowable on int arrays are the increment and decrement operations. (5) Arrays can be passed as parameters to a function either by value or by reference. (6) A function can return a value of type array. (6) In C++, some aggregate operations are allowed for strings. (11,12,13) The declaration: char name [16] = "John K. Miller"; declares name to be an array of 15 characters because the string "John K. Miller" has only 14 characters. (11) The declaration: char str = "Sunny Day"; declares str to be a string of an unspecified length. (11) As parameters, two-dimensional arrays are passed either by value or by reference. (15,16)(Statistics) a. Write a C++ program that reads a list of double-precision grades from the keyboard into an array named grade. The grades are to be counted as they’re read, and entry is to be terminated when a negative value has been entered. After all grades have been input, your program should find and display the sum and average of the grades. The grades should then be listed with an asterisk (*) placed in front of each grade that’s below the average. b. Extend the program written for Exercise 1a to display each grade and its letter equivalent, using the following scale: Between90and100=AGreaterthanorequalto80andlessthan90=BGreaterthanorequalto70andlessthan80=CGreaterthanorequalto60andlessthan70=DLessthan60=F
- Use C++ Programing language. Write a program that simulates a lottery. The program should have an array of five integers named winningDigits, with a randomly generated number in the range of 0 through 9 for each element in the array. The program should ask the user to enter five digits and should store them in a second integer array named player. The program must compare the corresponding elements in the two arrays and count how many digits match. For example, the following shows the winningDigits array and the Player array with sample numbers stored in each. There are two matching digits, elements 2 and 4. WinningDigits 7 4 9 1 3 player 4 2 9 7 3 Once the user has entered a set of numbers, the program should display the winning digits and the player’s digits and tell how many digits matched.C# Write a program called DeliveryCharges for the package delivery service in Exercise 4. The program should again use an array that holds the 10 zip codes of areas to which the company makes deliveries. (Note that this array has been created for your and does not need to be changed.) A parallel array has also been created containing 10 delivery charges that differ for each zip code. Prompt a user to enter a zip code, and then display either a message indicating the price of delivery to that zip code or a message indicating that the company does not deliver to the requested zip code. For example, if the zip code is in the delivery area, such as 90210, output Delivery to 90210 ok. Delivery charge is $10.00. If the zip code is not in the delivery area, such as 85205, output Sorry - no delivery to 85205. In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at…This is for a C++ class Part 2a: Find the Median Write a program that prompts the user to enter a number of estimated home values (integers). First, ask the user how many estimates will be entered and then prompt for and store those values into an array. Your program should then compute the median estimated home value. Note that you will need to first sort the estimates in ascending (or descending) order before you can compute the median. Display the median value. Your program should use pointers to the array. Hint: you may consider writing a function that accepts the array of integers in sorted order and an integer representing the array size and return the median value. Part 2b: Password Verification A secure password is critically important in today's world. Organizations typically have stringent requirements to ensure a password is complex enough so as not to be easily hacked. Write a program that will accept as input a potential password and determine whether or not it is…
- C++ program Write a basketball program such that it implements a two-dimensional array for 5 players whose score is entered into the array. In the game of basketball, there are 5 players on a team, and each team plays a game consisting of four 12 minute quarters. Write a C++ program that assigns randomly the points scored for each player in each quarter and then displays them. The maximum number of points any player can possibly score in a quarter is 18. Therefore, you will need a to declare an array which stores the points scored per player per quarter or a total of 4X5 = 20 array elements. Once the points are displayed for each player per quarter, Have the program display the following: -Which players scored the most points in every particular quarter out of all quarters played -Which player scored the most…Instructions Write a program in C++ that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following functions: Function getData: This function reads and stores data in the two-dimensional array. Function averageHigh: This function calculates and returns the average high temperature for the year. Function averageLow: This function calculates and returns the average low temperature for the year. Function indexHighTemp: This function returns the index of the highest high temperature in the array. Function indexLowTemp: This function returns the index of the lowest low temperature in the array. These functions must all have the appropriate parameters. An example of the program is shown below: Enter high temperature for each month 60 68 72 72 73 76 80 81 75 72 67 66 Enter low temperature for…var newStaff =new Employee[3]; is used to: Select one: a. Creates and initializes an Array with three objects of type Employee b. The statement is not valid in Java c. Create an Array to store two Employee objects d. Create an Array to store three objects of type Employee
- In c++ Write a program that simulates a lottery. The program should have an array of five integers named lottery and should generate a random number in the range of 0 through 9 for each element in the array. The user should enter five digits, which should be stored in an integer array named user. The program is to compare the corresponding elements in the two arrays and keep a count of the digits that match. For example, the following shows the lottery array and the user array with sample numbers stored in each. There are two matching digits (elements 2 and 4). lottery array: 7 4 9 1 3 user array: 4 2 9 7 3 In C++ The program should display the random numbers stored in the lottery array and the number of matching digits. If all of the digits match, display a message proclaiming the user as a grand prize winner. Input Validation: Do not accept a negative value for lottery number. Also keep track of array size.In C++Monkey Business A local zoo wants to keep track of how many pounds of food each of its three monkeys eats each day during a typical week. Write a program that stores this information in a two-dimensional 3 × 5 array, where each row represents a different monkey, and each column represents a different day of the week. The program should first have the user input the data for each monkey. Then, it should create a report that includes the following information: Average amount of food eaten per day by the whole family of monkeys. The least amount of food eaten during the week by any one monkey. The greatest amount of food eaten during the week by any one monkey. Write functions: average() least() greatest() main()Write C++ application with several functions that deal with a two-dimensional array of positive integers: The number of rows and number of columns of the array should be 20. Fill the array with random numbers between 1 and 1000. Display a table that contains the array values, numbers (elements of the array) should be aligned. Display the indexes, for example (rowIndex,columnIndex), where the prime numbers are stored. Display a table of the same size of the input array that contains the array values of prime numbers that you found. Do not show the composite numbers in the array. That is, you should leave out blanks for the composite numbers or put zeros in that position.