"### Exercise 2 Working with a file and numbers ###\n", "\n", "The file grades.txt has the grade for the quizzes computed for students in a classroom. Your work is to open the file and compute the average grade in quizzes for each student. the average is above 7.5 give the student 0.5 of bonus in the average but notice that the grade can not be above 10. The solution for this problem is presented below: \n", "[2.0, 6.33, 6.22, 5.7, 7.01]\n",
Q: What characteristics define an effective back-up plan? The process of backing up your desktop…
A: Please find the detailed answer in the following steps.
Q: the output of the following expressions: System.out.println(17.0 / 4); 14. The Java compiler…
A: 13. Write the output of the following expressions: System.out.println(17.0 / 4);
Q: Identify what is being asked. Write your answer on a clean sheet of paper. ______________ 1. This is…
A: The answers related to the lines have been solved in subsequent steps.
Q: Solve the following Initial Value Problem (IVP): y " + 3y y(0)=1 and y (0)=2 Find the Fourier Series…
A: solutions in below step
Q: Question 1 Not yet answered Marked out of 1.00 A computer system has a word addressable memory. Each…
A:
Q: Make a distinction between a cold boot and a warm boot.Make a distinction between a cold boot and a…
A: When to Use Boot or Booting: It is a procedure that prepares the computer to function for the user…
Q: Describe in great detail cookies, including at least four different kinds of cookies, as well as…
A: The following contains information about cookies and how they affect internet security. Cookies:-…
Q: 1. Algorithm analysis (Ex.2.2-6) a. Prove that every polynomial of degree k, p(n)= an* + ak-in² +. +…
A: a. Given polynomial is, p(n)=aknk+ak-1nk-1+......+a0 where ak>0 In this polynomial, ak,…
Q: What exactly is a global constant? Is it legal in a programme to utilise global constants?
A: Given: We have to discuss What exactly is a global constant. Is it legal in a programme to utilise…
Q: What are the main ways you should use if you want the computer to look for operating system boot…
A: When a computer is switched on, its operating system begins booting. It is the first sequence of…
Q: What kind of connection does a piece of data have to an Internet of Things device?
A: Given: we have to discuss What kind of connection does a piece of data have to an Internet of…
Q: What are the repercussions of a cloud security breach? What are some of the possible countermeasures…
A: Given: A data breach occurs when sensitive information is exposed to an unauthorised third party.…
Q: This software system will be built to function in a fast-paced setting. Furthermore, computational…
A: By utilizing architectural style, the application server may be installed on several computers,…
Q: Finish the method called printUniqueNumbers() that will take anint [] and print out all of the…
A: So, first and foremost, we'll learn what an array is and how to define one in Java. Later, we'll…
Q: Conduct research on the most effective methods for backing up cloud data. Explain in further detail…
A: Cloud data backup: It is becoming more common to back up one's data using a method known as cloud…
Q: Consider each component of a backup plan. What distinguishes a mobile backup plan from a plan for a…
A: Introduction With time, data saved in an operating system may get lost or damaged. It is essential…
Q: What are the benefits and drawbacks of utilising IPSec in comparison to other methods of network…
A: IPsec, which stands for "Internet Protocol Security," is a collection of protocols that was…
Q: Make a distinction between a cold boot and a warm boot
A: Booting is a process of starting a computer which involves all startup process where all the…
Q: F) Create 3x5 matrix named MA and then eliminate all the rows of columns 2 through 4.
A: Create 3x5 matrix named MA and then eliminate all the rows of columns 2 through 4.
Q: By following certain safety measures, you can protect your computer from power surges; but, are…
A: Given: First and foremost, what what is meant by the term "power surge"? A temporary increase in the…
Q: You have to 2 ints from the user( a and b) & print their sum on the console. However, sums in the…
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful.…
Q: The Real-Time Operating System (RTOS) is crucial to the operation of the Internet of Things (IoT).
A: RTOS defines the real time task processing time, interrupt latency, and longer period reliability of…
Q: Write a function main() and implement each math operations defined above. Design a basic calculator…
A: Check for condition in case of subtraction and division and in other cases we can proceed normally
Q: Give a quick history lesson on how wireless LAN standards have developed
A: Answer:
Q: It is necessary to have an in-depth discussion on cookies, specifically at least two distinct types…
A: Cookies:- Cookies are text files containing little bits of data like a username and password that…
Q: What are the many different elements that need to be taken into account while building a compiler…
A: The following steps will lead you to the answer: Instructional Guidelines CollectionSpecific…
Q: Define a Recursive Function that will display the reverse of the number [test data are provided].…
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful.…
Q: What are some of the reasons why the adoption of protocols is required for computer communication?…
A: Given: Because it is vital for the receiver to understand the sender, protocols are necessary.…
Q: Q3: By using MATLAB. Answer the following A) Solve the following system: x+y=1 x-y+z=0 x+y+z=2
A: Find the required code in matlab given as below and output : As per company guidelines we are…
Q: "forward lookup zone" of a DNS and what does it do
A: Given : What precisely is the "forward lookup zone" of a DNS and what does it do?
Q: What is the cause of high attenuation at 1310 and 1550 nm? O trapped oxy-hydrogen or hydroxyl ions…
A: Option A ) trapped oxy-hydrogen or hydroxyl ions in the core
Q: Given a Network Address of 172.16.10.0/21, subnet this address so that each Subnet can cater for 505…
A: Answer How do you make a subnet mask out of hosts and subnets? Step 1: Determine the host…
Q: It's important to tell users how they can defend themselves against session hijacking attacks.…
A: Session hijacking- This occur when intruders takes the user internet session. For instance, when…
Q: What are some of the most important benefits and drawbacks of storing data on the cloud?
A: Intro Cloud-Based Data Storage is essentially a data storage mechanism based on the architecture of…
Q: c++ program I NEED TO INSERT STRING IN BST AND OUTPUT IN INORDER PREORDER POSORDER i have code…
A: Inserting a value in the correct position is similar to searching in that we try to follow the rule…
Q: Which term describes the statistical deviation of the actual number of arriving photons from the…
A: In measurements and science, the deviation is an action that is utilized to track down the…
Q: 19-The MSB in the 20 bits of physical address specifies the segment. Select one: C True False
A: Given question are true or false based question.
Q: What are the advantages of using ITIL4 for a business?
A: Answer: ITIL provides a clear focus on total cost of ownership (TCO), so you can reduce the often…
Q: An adversary makes use of a MAC in an effort to modify both the Tag (the ciphertext) and the MAC…
A: Given: The solution to the above question is as follows. MAC is the abbreviation for the tag. It's a…
Q: What are some of the benefits that come along with utilising the Collection Framework that Java…
A: The following are some of the benefits of using the Java Collections Framework: It Reduces the…
Q: A GUI program has the following design: ENTER COUNT: Single COUNT 1: TIME: COUNT 2: TIME: COUNT 3:…
A: The program has three components: a java.awt.Label "Counter";a non-editable java.awt.TextField to…
Q: What do cloud users get? Hacking, software vulnerabilities, pricing, and downtime are challenges…
A: Cloud Infrastructure Cloud computing is the provision of computer services such as servers, storage,…
Q: Is a MAC (message authentication code) capable of modifying the Tag and the ciphertext while they…
A: According to the information given:- We have to define MAC (message authentication code) capable of…
Q: Use a stack and node(ij) notation (and j denotes order nodes are placed onto and removed from stack,…
A:
Q: Create a code (that is both effective and efficient) that asks the user to enter a sales amount. The…
A: code : - # get the amount from user amount = int(input("Enter amount: ")) # set discount amount…
Q: Describe the dangers of buying software for installation on desktop computers' hard drives. What…
A: Because they have specialized IT employees on staff, businesses that buy and install application…
Q: Write a Java program to calculate the average value of array elements.
A: The numArray variable in the below programme stores the floating-point values whose average is to…
Q: An intrusion into the network might have been caused by malicious traffic that was routed from one…
A: VLAN: VLAN hopping, also known as virtual LAN hopping, is an attack on a network that occurs when…
Q: Who played a key role in the development of computer software, and how did they impact the…
A: A developer, also known as a programmer or software engineer, is an IT professional who uses…
Q: in java.Create a class named Customer that will determine the monthly repayment amount due by a…
A: Answer: CODE: Java Programming Language // Customer.java import javax.swing.JOptionPane;public class…
python
Step by step
Solved in 4 steps with 2 images
- I have a text file and I want to read it in C++. variables to use: fname, lname , Id nr, Gender and all third line which is an address The file is : Tommy James 23456731667 Streetname 45 , 154 23 Georgia John Andersson 3456723464 Streetname 12 , 231 32 Las Vegas Kim Larsson 3456312653 Streetnamn 15, 231 56 Florida If we Said the 8th digit in ID number is showing the Gender of the person. By %2== 0 it's Male The output should be: Lname Fname [F] address Is there possible to create a program in C++ with the previously output. lname , fname [F]Adress Without have a problem with Las Vegas word. I have a hard time to figure how I can do the third line in the file. They read to word Las and then the compiler shows terminate called after throwing an instance of ' std::invalid_ argument ' what (): stoi aborted so I figured that the problem I have in one line the city is two word.Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number and display whether it is valid. An account number is valid only if the last digit is equal to the remainder when the sum of the first five digits is divided by 10. For example, the number 223355 is valid because the sum of the first five digits is 15, the remainder when 15 is divided by 10 is 5, and the last digit is 5. Write only valid account numbers to an output file, each on its own line.*Note that the contents of the file AcctNumsIn.txt will change when the test is run to test the program against different input. AcctNumsIn.txt 345619789400871208901156984334723422172257100000273699237485761200555500936716763542999995 import java.nio.file.*;import java.io.*;import java.nio.channels.FileChannel;import java.nio.ByteBuffer;import static java.nio.file.StandardOpenOption.*;public class ValidateCheckDigits {public static void main(String[] args) {Path…Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number and display whether it is valid. An account number is valid only if the last digit is equal to the remainder when the sum of the first five digits is divided by 10. For example, the number 223355 is valid because the sum of the first five digits is 15, the remainder when 15 is divided by 10 is 5, and the last digit is 5. Write only valid account numbers to an output file, each on its own line.*Note that the contents of the file AcctNumsIn.txt will change when the test is run to test the program against different input. AcctNumsIn.txt345619789400871208901156984334723422172257100000273699237485761200555500936716763542999995 ValidateCheckDigits.javaimport java.nio.file.*;import java.io.*;import java.nio.channels.FileChannel;import java.nio.ByteBuffer;import static java.nio.file.StandardOpenOption.*;public class ValidateCheckDigits {public static void…
- Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number and display whether it is valid. An account number is valid only if the last digit is equal to the remainder when the sum of the first five digits is divided by 10. For example, the number 223355 is valid because the sum of the first five digits is 15, the remainder when 15 is divided by 10 is 5, and the last digit is 5. Write only valid account numbers to an output file, each on its own line. Note that the contents of the file AcctNumsIn.txt will change when the test is run to test the program against different input.I want to read the numbers from random_number.txt and then display the number and display total of the number and the number of random number read from the file and the average of this numberThree employees in a company are ups for a special pay increase. You are given a file; ABCompany.txt, with the following data: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee’s last name, first name. Current salary and percent pay increase. For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87 and the pay increase is 5%. Write a JAVA program that reads the data from the specified file and stores the output in the file ABCoutput.dat. For each employee, the data must be output in the following form: firstname lastname updated salary. Format the output of decimal numbers to two decimal places. Send a copy of the following: Softcopy of the running code Screenshot of the code input file output file
- Three employees in a company are ups for a special pay increase. You are given a file; ABCompany.txt, with the following data: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee’s last name, first name. Current salary and percent pay increase. For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87 and the pay increase is 5%. Write a program that reads the data from the specified file and stores the output in the file ABCoutput.dat. For each employee, the data must be output in the following form: firstname lastname updated salary. Format the output of decimal numbers to two decimal places. Send a copy of the following: Softcopy of the running code Screenshot of the code input file output filehere is a text file containing the details of several invoices details. Each invoice uses 3 lines of the file. The first of the three lines is a string giving the date of the invoice, for example “1/5/2021” or “2/6/2021”. The second of the three lines contains double giving the amount, the third line is boolean indicating whether it is paid or not. However, the very first line of the file is an integer number, which says how many invoices are given in the file in the lines which follow it (i.e. how many records will follow). Text file example for two vehicles “invoices.txt” 2 1/5/2021 50.0 true 2/6/2021 20.0 false Write code for a method named processTextFile() which will open the file named ‘invoices.txt’, from which it will read the data of invoices. It will create Invoice objects using this data by calling the constructor that takes the parameters (date, amount, paid) , placing them into an ArrayList invoiceList.Three employees in a company are up for a special pay increase. You are given a file,SalaryData.txtwith the following data: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee’s last name, first name, current salary, and percent pay increase. For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87, and the pay increase is 5%. Write a program that reads data from the specified file and stores the output in the file SalaryOut.txt. For each employee, the data must be output in the following form: firstName lasName updatedSalary. Format the output of decimal numbersto two decimal places. C++
- Three employees in a company are up for a special pay increase. You are given a file, say Ch3_Ex5Data.txt, with the following data:Miller Andrew 65789.87 5Green Sheila 75892.56 6Sethi Amit 74900.50 6.1 Each input line consists of an employee’s last name, first name, current salary, and percent pay increase. For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87, and the pay increase is 5%. Write a program that reads data from the specified file and stores the output in the file Ch3_Ex5Output.dat. For each employee, the data must be output in the following form: firstName lastName updatedSalary. Format the output of decimal numbers to two decimal places.C++ do not use chegg Write a program that reads from a text file named “sales.txt”, which contains the sales figures (double) of a store. Your program should: Display the average, the highest, and the lowest sales figures Remember to: Test the file open error Close the file at the end. text file 284.12223.09579.12998.651237.84764.75395.65458.01670.353765.003842.10190.23335.35662.952719.253564.02193.23222.231457.2089.751323.65234.35789.89224.67663.95245.38Write a program to calculate the average of seven integer score, the program should do thefollowing:|. Read the full name and the five score of the student from file (D:\istudent’\score txt),2. Save the name of student and five score in file (D:\istudenti.average.txt), (note: the print as atable, the columns:20 for name. 5 for each score.3. Calculate and save in the file the average of scores (10 columns and precision 3 decimalpoints) and fill the white space in average columns in ‘@’