Create a structure that consist of four fields, {array, max, min, sum} File in these fields with: o Array should contain a 3 by 5 random numbers that are greater than or equal 30. o Max: contains the index and the value for the maximum number in the array o Min: contains the index and the value for the maximum number in the array o Sum: the summation of the items inside the array
Q: You are tasked with deploying websites on EC2 instances. The solution should be scalable and the…
A: I have provided the solution in step 2.
Q: Describe the many types of system architectures available.
A: - We have to talk about system architectures.
Q: When using public key cryptography, what is the bare minimum number of keys required?
A: Public key Cryptography: A public key and a private key (a public key pair) are used in public-key…
Q: Consider the E = {a, b, c} apisuo %3D
A: Normally determining the DFA is more diligently than inferring the language. Something else is that…
Q: Why would a 100OOMB CAT6E cable be a terrible choice for a 328-foot length pull for high data…
A: Introduction: The speed is not slowed by using an ethernet wire. The cable's maximum length is 328…
Q: Differentiate between the 8051 Microcontroller's short and long jumps. Using an 8052 microcontroller…
A: SJMP and LJMP are branch commands that are used to transfer control between locations.
Q: What exactly is multifactor authentication and how does it work? What role does it play in…
A: Multifactor authentication, or MFA, is a type of security in which an account must be accessed using…
Q: lling server 2012 which option is selected in ord
A: Sorry for that as per the bartleby guidelines we can solve only one question for you if you want to…
Q: - Create a 6 by 8 array of random integer numbers ranged from -35 to 70, - Find how many -ve numbers…
A: The answer to the following question
Q: Given the code segment below, what should be the data type of the formal parameter in the function…
A: void func( ______ );intmain(){ double aData[6][4];func(aData[6]);return 0;} Answer:- function…
Q: Differentiate write – invalidate policy from write – update policy
A: answer is
Q: Q- tracing the following code and correct the error if you found the find the output x = [4 -2 3 -7…
A: According to the information given:_ We have to correct the error in the code mentioned.
Q: Further discussion of network applications and application layer protocols will be provided in the…
A: Network Application: Any programme operating on one host that communicates with another application…
Q: In this assignment, you will implement the shell “engine” as the “group” component, where all…
A: Answer : The logic is simple here we have a function called system and then you can pass the input…
Q: it is possible to use a NATURAL join, there are some downsides to using this type of join. What are…
A: Joins: Joins in sql commands which are used to combine rows from two or more tables. based on a…
Q: Assume you have a file on your disk named floatnumbers.txt containing float numbers. Write a Python…
A: Code: flag = 0try: infile = open("floatnumbers.txt", "r")except IOError: flag = 1…
Q: The objective of Electronic Data Interchange in a fictional supply chain. Three instances of…
A: Justification: One firm may transfer information electronically to another company rather than print…
Q: With specific examples, distinguish between the RISC and CISC architectures and instruction sets.
A: Explanation: The RISC ISA places a greater emphasis on software than on hardware. The RISC…
Q: What exactly is an interruption? What are the different forms of interruptions? What causes an…
A: Introduction: External devices, usually I/O devices, send interrupt signals to the CPU. They…
Q: Develop a program in Java to demonstrate the operations of Leftist Heap. The menu should contain…
A:
Q: sin 2ax 5. Given ſ cos?(ax)dx = x . Calculate the following definite integral f, cos2 (0.5x)dx. со…
A: We can use the integral Matlab function. The function parameters are the function handle, lower…
Q: Explain what causes a system to become stuck in a stalemate.
A: NOTE :- Below i explain the answer in my own words by which you understand it well. Stalemate…
Q: Explain what causes a system to become stuck in a stalemate.
A: The following requirements must exist for the system to be in a state of deadlock: - Circular…
Q: systems analy
A: A systems analyst, is a data innovation (IT) professional who has practical experience in breaking…
Q: What is a systems selection report, and how does it work?
A: System Selection Report: A system selection report is being written to explain the reasons behind…
Q: . Given n, the number of input register bits in decimal form, two primes p and q, and a number b,…
A: Code: #include<iostream>#include<math.h>#include<vector>using namespace std;int…
Q: When it comes to cloud computing, what role does autonomous computing play?
A: According to the question the cloud computing provides the easy way to access the servers, storage,…
Q: What is the most important goal of normalization? What part do determinants play in the process of…
A: Normalization is a process of decomposition of large tables into a smaller tables.
Q: What are the basic components of an automated System and their functions ?
A: Here we need to tell the basic components of an automated system and their functions.
Q: Write a program that reads the student information from a tab separated values (tsv) file. The…
A: Answer : CODE: #include<iostream> #include<fstream> #include<string>…
Q: Why would a 1000Mb CAT6E cable be a terrible choice for a 328-foot length pull for high data…
A: Instigation: The CAT6 cable from ICC has a frequency range of 500 MHz against 600 MHz for the CAT6e…
Q: Assume you work on a network project for "x" company. Discuss the concept of non-repudiation as it…
A: Non-repudiation is an assurance that you cannot cast doubt on the legitimacy of anything.…
Q: Is there anything you'd want to talk about in terms of information security?
A: Introduction: Authentication using two factors. One of the most significant methods to increase…
Q: Assume you work on a network project for "x" company. Discuss the concept of non-repudiation as it…
A: Introduction: Non-repudiation is the assurance that you will not be able to question the legitimacy…
Q: Does the phrase "Cache staleness and high MAC overhead combined result in a considerable reduction…
A: Introduction: DSR is an acronym for Department of State Regulation (Dynamic Source Routing)The DSR…
Q: Trace the output the programming below. { int num[]; int size =5; num = new int [size]; num…
A: int size =5; Assign size with 5 num = new int [size]; Declare an array of size 5. The index of…
Q: Explain why creating functions is important in programming.
A: Function : Functions are one of the basic building blocks of programming; they consist of statements…
Q: 1. Find the error (s) in each of the following program segments. Write the corrected statements and…
A: Errors: Errors are problems or flaws in a programme that cause the program's behaviour to be…
Q: When exchange sort compares two items, those two items: are actually the same item, removed twice…
A: In bubble sort, firstly 1st and 2nd are compared, then 2nd and 3rd are compared, then 3rd and 4th…
Q: Comment on how pipelining can make computers faster, how pipeline dangers can be mitigated, and how…
A: Computer Architecture's Pipelining: It is the technique for gathering directions from the processor…
Q: Consider the following regular expression: E = {a, b, c} RE: (ab)*c*(bc)* Draw the DFA for the above…
A:
Q: Comment on how pipelining can make computers faster, how pipeline dangers can be mitigated, and how…
A: Introduction: Before looking into the pipelining, lets first understand the execution of program.…
Q: Explain the difference between serialisation and deserialization in Java.
A: I give the theoretical as well as practical difference
Q: What problems are FAA controllers likely to encounter during the conversion process to new hardware…
A: Introduction There are a number of reasons why conversion takes so long. Risks of…
Q: 9. Which sorting algorithms has the lowest worst-case complexity? A. Merge Sort B. Bubble Sort C.…
A: INTRODUCTION: Here we need to tell the answers of multiple choice questions.
Q: Explain why creating functions is important in programming.
A: Computing is referred to as programming when a set of instructions is created that instructs a…
Q: 1. Who does the data visualization? 2. What are the tools for the data visualization? 3. What…
A: Data visualization is the representation of data through use of common graphics, such as plots,…
Q: How is the idea of data concealing applied in the OSI model?
A: Introduction: The OSI model indicates that there are numerous places where data can be hidden.…
Q: How would you describe the actions taken by the interrupting device and processor in the event of an…
A: An interrupt is a signal from a device attached to a computer or from a program within the computer…
Q: From the greatest to the tiniest component, describe the AWS Global Infrastructure.
A: INTRODUCTION: Amazon Web Services, Inc. (AWS) is an Amazon company that offers metered…
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().Write a statement that declares a procedure-level one-dimensional array named intorders. The array should contain 15 elements.(Electrical eng.) Write a program that specifies three one-dimensional arrays named current, resistance, and volts. Each array should be capable of holding 10 elements. Using a for loop, input values for the current and resistance arrays. The entries in the volts array should be the product of the corresponding values in the current and resistance arrays (sovolts[i]=current[i]resistance[i]). After all the data has been entered, display the following output, with the appropriate value under each column heading: CurrentResistance Volts
- (Data processing) A bank’s customer records are to be stored in a file and read into a set of arrays so that a customer’s record can be accessed randomly by account number. Create the file by entering five customer records, with each record consisting of an integer account number (starting with account number 1000), a first name (maximum of 10 characters), a last name (maximum of 15 characters), and a double-precision number for the account balance. After the file is created, write a C++ program that requests a user-input account number and displays the corresponding name and account balance from the file.C++ Visual Studio 2019 Complete #7 Customer Accounts and #8 Search Function for Customer Accounts Program. Create the array with only 2 elements. 7.Customer Accounts Write a program that uses a structure to store the following data about a customer account: Name Address City, State, and ZIP Telephone Number Account Balance Date of Last Payment The program should use an array of at least 10 structures. It should let the user enter data into the array, change the contents of any element, and display all the data stored in the array. The program should have a menu-driven user interface. Input Validation: When the data for a new account is entered, be sure the user enters data for all the fields. No negative account balances should be entered. 8. Search Function for Customer Accounts Program Add a function to Programming Challenge 7 (Customer Accounts) that allows the user to search the structure array for a particular customer's account. It should accept part of the customer's name as an…Instructions Write a program weather.cpp that uses a structure to store the following weather data for a particular quarter: • Total Rainfall Low Temperature High Temperature Average Temperature (average of low and high temperature) The program should have an array of structures with a size of four (4) to hold weather data for an entire year. When the program runs, it should ask the user to enter data for each quarter. Once the data are entered for all the quarters, the program should calculate and display the average quarter rainfall, the total rainfall for the year, the highest and lowest temperatures for the year (and the quarter they occurred in), and the average of all the quarterly average temperatures. Input validation: Only accept temperatures within the range between -100 and + 140 degrees Fahrenheit, and the low temperature must not be higher than the high temperature. Notes • Validate temperatures within the range between -100 and + 140 degrees. • Validate the low…
- C++ programming Chapter(s) Covered: Chapter 1-8 Concepts tested by the program: Working with one dimensional parallel arrays Use of functions Use of loops and conditional statements Project Description The Lo Shu Magic Square is a grid with 3 rows and 3 columnsshown below. The Lo Shu Magic Square has the following properties: The grid contains the numbers 1 – 9 exactly. Each number 1 – 9must not be used more than once. So, if you were to add up thenumbers used, The sum of each row, each column and each diagonal all add upto the same number, Write a program that simulates a magic square using 3 onedimensional parallel arrays of integer type. Each one the arrays corresponds to a row of the magicsquare. The program asks the user to enter the values of the magicsquare row by row and informs the user if the grid is a magicsquare or not. See the sample outputs for more clarification. Project Specifications Input for this project: Values of the grid (row by row) Output for this…Write a program that shows Game sales. The program should use a structure to store the following data about the Game sale: Game company Type of Game (Action, Adventure, Sports etc.) Year of Sale Sale Price The program should use an array of at least 3 structures (3 variables of the same structure). It should let the user enter data into the array, change the contents of any element and display the data stored in the array. The program should have a menu driven interface. Input Validation: When the data for a new game sale is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a “Sale Price” of the Game An example: You will use 1 structure only and then manipulate that for working with the information. The program should use an array of at least 3 structures (3 variables of the same structure). An example of the structure:struct Game{string name;string type;int year;double price;}; So far I have written that ...Problem Statement – You are to create a program to play Tic-Tac-Toe. The program should initially explain that this program is a Tic-Tac-Toe game. The program must include the following: The board must be represented as a one dimensional array. The board must be printed after each user selects a position on the board. Directions must be printed to the screen. The directions should include a copy of the board with each position labeled in the board. The game should allow two players to alternate providing their selected position. The first player will be using ‘X’ and the second player will be using ‘Y’. The program should include the following functions: void printDirections ( ) Provides directions on how to play the game int getBoardPosition( int player) This function prompts for the player to input the position of the board and returns the position. void printBoard (char board [ ] ) This function prints the updated board with the input of the player. int isWinner ( char board […
- Module/Week 8 ASSIGNMENTImagine you are using a two-dimensional array as the basis for creating the game battle- ship. In the game of battleship a `~' character entry in the array represents ocean (i.e., not a ship), a `#' character represents a place in the ocean where part of a ship is present, and a `H' character represents a place in the ocean where part of a ship is present and has been hit by a torpedo. Thus, a ship with all `H' characters means the ship has been sunk. Declare a two-dimensional array that is 25 x 25 that represents the entire ocean and an If statement that prints "HIT" if a torpedo hits a ship given the coordinates X and Y. Create a text file of 25 line. Each line has 25 characters. ~ represents water and # represents part of a ship. This file is the battleship game board. An example file might look like: Then write a C++ program that will read in the file representing the game board with 25 lines where each line has 25 characters corresponding to the description…C# application that will allow users to enter values store all the expenses on that month in an array clothes, food, cool drinks, water, meatC Programming qn Write a program that stores the mark allocation weights for 4 assessments as shown in the table below in an array. The program must prompt the user to enter their full name and the 4 mark assessments as follows: "Please enter your first name and your last name: " "Please enter the project mark: " "Please enter the practical mark: " "Please enter test 1 mark: " "Please enter test 2 mark: " The program must use the weights and the entered mark values to calculate the final mark for the student and display the student's name and final mark. Note: format the displayed values to two decimal points. The program must perform the following functionality: Creates a four-element array with the correct data type to store the weights. Prompts the user to obtain the four assessment values. | Prompts the user to for their first name and last name. Calculates the final mark. Prints the student name and final mark to the screen. Assessment Description Weight Project 0,35 Practical…