Task 1: Declare parallel arrays in the main function to store the following types of information: a) The year. b) The mumber of deaths caused by each disease type (dengue and malaria). Task 2: Write a function named "readInput". a) This is a non-retuming function. b) It receives parallel arrays defined in Task 1. c) The function should assign the required values to each element of the parallel arrays by reading the data from the text file named "input.txt". The file includes the year as well as the mumber of deaths caused by dengue and malaria. Figure lis the content of the "input.txt" file. Please ensure that the program only contimues reading the file if it is successfully opened; otherwise, print the error message and exit the program.
Q: Question 2. Subnet mask for a particular network is 255.255.31.0 then tell about Which pairs of IP a...
A:
Q: Need a PYTHON code : The game of "Jump It" consists of a board with n positive integers in a row exc...
A:
Q: 4. Explain the meaning of the word Agile in the context of Web Engineering? 5. With appropriate diag...
A: Answer the above questions are as follows:
Q: This Access Control Principle states that no single individual should have so many privileges that t...
A: Information security is an intricate, multi-layered discipline based upon numerous essential princip...
Q: Returm float code digit Fraction digit Exponent other digit digit digit digit Whole Number other oth...
A:
Q: Try to use the Foreach method on the list and also use the Lambada print statement instead of simple...
A: We can print the numbers of a list using for-each loop and can repeat the same using lambda expressi...
Q: Tell me some commands to troubleshoot EIGRP?
A: EIGRP stands for Enhanced Interior Gateway Routing Protocol. There are different commands to verify ...
Q: Q 04: Define and explain the following with relevant examples? Compiler High level languages
A: Below is the answer to above question. I hope this will be helpful.
Q: solve recurrence equation using masters theorem T(n) = 5T(n/2) + Θ(n^3).
A: First lets see the masters theorem: The recurrence relation must be in following format: T(n) = aT(n...
Q: Risk is unavoidable. Which of the following is not something we would do with risk? Accept it ...
A: Answer:- Risk Transfer is a Risk Management strategy and is not part of Risk Management. 1- Risk Ac...
Q: In a computer with a 32-bit data-bus, how many 4-bit wide memory components are used? the answer to ...
A: The answer is
Q: Discuss the four distinct layers of the conceptual framework of Extended Enterprise Systems
A: Given :- Discuss the four distinct layers of the conceptual framework of Extended Enterprise Systems...
Q: hexadecimal to RISC-V. Follow these conventions when writing your ecimal if the absolute value is le...
A: (1)xor ra ra t0 funct7 rs2 rs1 funct3 rd Opcode 0000000 00101 00001 100 00001 0110011 Binary Repre...
Q: Create a type of Struct DynamicArray. This contains an int array You will use the type as a dynamic ...
A: 1) Array:- A clutch is defined as a collection of similar aspects of information items stored in nea...
Q: What is the definition of an audio output device?
A: Step 1) Audio output device : Audio output devices are the components that produce voice, music, spe...
Q: -ampground reservations, part 6: Filter campsites by multiple criteria his is the last challenge. Yo...
A: Answer:- 1. It is hard to reserve a spot system work depends on a few attributes of the restaurant a...
Q: Determine the asymptotic growth of the following functions using big O notation. Find appropriate va...
A: I have solve this problem. See below step for explanatino.
Q: irite a Javascript program to validate an email assuming it is taken from the user and print its res...
A: Start Take the input email address Validate the email address Email is valid Print it is valid Stop
Q: Is a kind of output device that outputs text and images on a tangible medium such as a computer moni...
A: Computer Output Device (also known as a computer output device) Generally speaking, a computer refer...
Q: Topic: Cryptographic Active Attack Kindly discuss the Modification of Messages in simple terms.
A: Here in this question we have asked to discuss the modification of message attack in cryptography.
Q: Based on your algorithm(User valida- tion), write a program that does the same thing using HTML, CSS...
A: Below i have given the code:
Q: Is a monochrom
A: Printers that exclusively print in black and white are monochromatic, To print, monochrome printers ...
Q: 192.168.30.0/24 192.168.10.0/24 IS331 Raer ISR1 Roera POPT PC26 POPT 29TT witc 296024TT Switch4 POPT...
A: Use concept DHCP,Static Routing and VLAN
Q: 'Rabenstein code was used to send a message with 4 information bits, you receive 100110001, if you c...
A: The answer is
Q: Translate from hexadecimal to RISC-V.
A: vscale/src/test/inputs have several hex inputs with similar format: 32 hex chars per line (16 bytes,...
Q: - Design a logic circuit using only NOR gates F(A,B,C)= (A+B+C)(A+B+C)?
A: A logic circuit is generally used in designing digital logic. It represents the given expression in ...
Q: Question 1. Compute global alignment between the following DNA sequences using dynamic programming a...
A: Global sequence alignment tries to find the best alignment between an entire sequence S1 and another...
Q: 3.Explain what changes are needed to change the 4x3 memory presented on Slide to a 16x6 memory.
A: In the 4x3 memory: Each word is stored in a combination of three flip-flops. There are two select l...
Q: QIA) Using asterisk (*) pattern to write a program in C++ to display such below style:
A: Answer is giving below-
Q: Convert each of the following expressions into sum of products and product of sums. 1. (u + x'w)(v +...
A: First lets understand sum of products and product of sum forms: product term means : AND operation b...
Q: Choose the correct answer? Network sniffing, wireless sniffing, shoulder-surfing, and keylogging ar...
A: Eavesdropping attack which is called as sniffing or snooping attack is said to be a theft of informa...
Q: public class A { public void funl () ( System.out.println ("Al"); public class B extends A { @Overri...
A: A class is a group of objects which have common properties. Inheritance is an OOP concept in which ...
Q: Explain, why legacy systems evolve as time passes.
A: The Answer is in Below Steps
Q: In computer architecture which different modes are defined such that in a given instruction set arch...
A: Generate the structure of the help: The new abilities structure (ISA), often known as a computer sys...
Q: This is what l did but not sure if it is correct DATABASE MANAGEMENT ABC Walk-in Clinic is located...
A: Answer: I have given answered in the brief explanation
Q: 1. Which of the following statements are true for artificial intelligence (AI)? [Choose all that app...
A: 1) All the statements are correct about Artificial intelligence. AI focuses on the broad idea of ma...
Q: FIND THE FOLLOWING: e. time constant f. rise time g. settling time
A: First, let's understand what is time constant, Rise time and Settling time briefly Time constant ...
Q: Determine the machine code of the given instructions. Include operand or address size prefix. For th...
A: Machine code tables:
Q: What output is produced by the following program's execution? Be sure to strike the Enter key before...
A: Sort Answer : -3 Explanation and running code and output in below steps:
Q: Complete the doctring. def average_daily_temp(high_temps: List[int], low_tem...
A: The objective is to complete the doctring.
Q: The ISA of a processor has four classes of instructions: arithmetic, store, load and branch with CPI...
A: Complementary of 2: Half duplicate of value inside the registry R2 is collected throughout this mini...
Q: Is a monochrome printer able to produce colour?
A: THE ABOVE QUESTION THAT IS MONO CHROME PRINTER THAT ABLE TO PRODUCE COLOUR IS ANSWERED BELOW
Q: In a computer with a 32-bit data-bus, how many 4-bit wide memory components are used? the answer to ...
A: The answer is given below:-
Q: GNU nano 4.9.3 hellorelati global _start section .text inc extit.nasm inc2.0 _start: inc nasm inc.o ...
A: Answer:
Q: For the 1-byte hexadecimal number OXAB that is stored in a register, only the lower nibble must be s...
A: The answer is given below.
Q: is the process of transforming data from cleartext into ciphertext. Content Filtering Algorithms ...
A: ENCRYPTION : Encryption is a method to secure and protect sensitive digital data by means of advance...
Q: in python please get_count(aList, item) Returns the number of times item appears in aList. ...
A: Given The answer is given below.
Q: In java
A: Java code is giving below-
Q: How are Dropbox and Microsoft's One Drive different?
A: Introduction: Cloud Storage: High-storage needs in current computer science are met by Cloud Storage...
Q: Let us assume you are hired by KOI as a network security engineer. You notice that the visits to the...
A: let us see the answer:- Introduction:- Availability develops a plan to add two more web servers to b...
USE C++
Step by step
Solved in 2 steps with 2 images
- (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.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)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…
- Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E. Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example: REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: A Name: Sebastian Program: CE REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: B Name Program Carlo - CE Sevi - CEStudent Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E. Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example: REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: A Name: John Lloyd Program: CpE REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: B Name Program…USE C++ The Malaysian Ministry of Health published data on the number of deaths by disease type. There are two types of diseases: dengue and malaria. Write a complete C++ program to accomplish the following tasks: Task 1: Declare parallel arrays in the main function to store the following types of information: a) The year. b) The mumber of deaths caused by each disease type (dengue and malaria). Task 2: Write a function named "readInput". a) This is a non-retuming function. b) It receives parallel arrays defined in Task 1. c) The function should assign the required values to each element of the parallel arrays by reading the data from the text file named "input.txt". The file includes the year as well as the mumber of deaths caused by dengue and malaria. Figure lis the content of the "input. txt" file. Please ensure that the program only contimues reading the file if it is successfully opened; otherwise, print the error message and exit the program. Figure 1: 2007 82 18 2008 112 30…
- Exercise 2 This exercise is designed to assess student’s skills of writing programs using arrays and loops. Write a C++ program using array and loop that prompts a user to enter 15 Students’ marks in ProgramDesign and Implementation (PDI) Module in an array. The program sorts the students’ marks in descending order using a loop and displays the marks of all students as well as lowest, highest, average marks, and the class result based on the average module marks. The result criteria is given below:Average is less than 40 = Poor ResultAverage is between 40 to 49 = Fair ResultAverage is less than 50 to 59= Good ResultAverage is less than 60 to 69 = Very Good ResultAverage is between 70 to 79 = Excellent ResultAverage is 80 or greater = Outstanding ResultNote: You must demonstrate the use of arrays and loops. Your code must be properly commented Sample Output:Welcome to Result Management SystemEnter PDI Marks of Student 1: 50Enter PDI Marks of Student 2: 35Enter PDI Marks of Student 3:…Create a c++ program that makes use of three arrays ; name, mark , grade. The programme should accept the names and marks of students to be entered by the user. Use the number of students as the size of the arrays. Grades are computered and stored in the grade array using the critirial: 100- 60=A; 59 - 40 = B below 40 = C The programme should continuously request a user who enters a mark below 0 or above hundred to enter a mark in the range of 0 - 100. Finally the programs should display the list of students in the this format : Name | Mark| GradeUsing C++: Write a program that creates an array that stores 10 integers and the program will call each function mentioned below individually and display the requirement as mentioned across the name of the functions. Function display(): the program will display all the integers Function mean(): returns the average of the 10 values in the array Function median(): returns the middle value of the array, if the size of the array is even, then it returns the average of the two middle values of the array. Function lessThanFive(): returns all values less than 5 in the array Function minimum() : returns lowest value in the array Function sum() : return the sum of the 10 digits in the array
- do it with c++ Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E. Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example: REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: A Name: John Lloyd Program: CpE REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: B Name…Programming Language: C++ Please use the resources included and provide notes for understanding. Thanks in advance. Code two functions to fill an array with the names of every World Series-winning team from 1903 to 2020, then output each World Series winner with the number of times the team won the championship as well as the years they won them. The input file is attached, along with the main function and screenprint. Please note team names that include two words, such as Red Sox, have an underscore in place of the space. This enables you to use the extraction operator with a single string variable. The following resources are included: Here is main. #include <iostream>#include <fstream>#include<string> using namespace std; // Add function declarations and documentation here void fill(string teams[], int size);void findWinner(string teams[], int size); int main(){ const int SIZE = 118;int lastIndex;string team[SIZE]; fill(team, SIZE);findWinner(team, SIZE); return…C++ PLEASE INCLUDE COMMENTS Write one program that does the following: Ask the user for ten (10) grades, and store the data in an array. Compute the average of all the grades. Print the original ten grades and the average. Declare an integer array with the name of “grades” of size 10 in the main function. Create a function called “getGrades” that prompts the User for the grades and puts them in an integer array. The function will receive an integer array and the size of the array. In the function prototype and the function header, call the array “gradeArray” and call the size of the array "size." iii. Create a For Loop that cycles through each cell of the array. At each cell prompt the User for a grade. Store the grade entered by the User into the array cell. From main, send this function the array called “grades” and the size of the array. Create a function called “computeAverage” that…