Write a program that reads the contents of the file1.txt then write the even numbers to evenfile.txt. file1 - المفكرة ملف تجرير تنسيق عرض تعليمات 13 40 2 88 55 100 39 7 60 UTF-8 Windows (CRLF) 100% ), Col 3 venfile - المفكرة 40 ملف تجرير تنسيق عرض تعليمات 60 100 88
Q: Is Cisco deciding to adopt IP networked access control?
A: Your network will make connections: More rapidly if you setup a Cisco switch appropriately. We'll…
Q: The following line relates to one of the Program Organization Principles: 99 The use agreement for a…
A: Introduction: This article is intended to serve as a glossary of terms for software development and…
Q: Provide an explanation of what has happened as a consequence of the data breach that was previously…
A: Introduction: A data breach occurs when a hacker gains unauthorized access to and reveals sensitive,…
Q: Write a program that asks the user to enter the number of students, then enter the grades of these…
A: I have provided C++ CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS------------
Q: Select ALL invalid binary search trees. A)
A: Rule of binary search tree:- Left child node must be less than parent node and right child node…
Q: When developing a programme, each language has a set of rules that must be properly observed. What…
A: Introduction: Each programming language's structure is governed by its own set of rules.
Q: Remove all errors from the C++ program given below asap. #include using namespace std; int main(){…
A: #include <bits/stdc++.h>using namespace std;int main(){ int sum_0 = 0, sum_n = 20, i=0;…
Q: * INR is used to increment the register pointed by RP increment register pair HL increment register…
A: increment register pair HL
Q: A virus that attaches itself to an executable file on a computer What should be altered in the…
A: The VIRUS stands for a key information resource that is under attack: The virus might be installed…
Q: 4. State which of the following are TRUE and which are FALSE. If FALSE, explain why. The type size_t…
A: c) True: size_t represents an unsigned integral type and is defined as 64 bits.
Q: Are hackers in the industry ASSETS or LIABILITY? Why?
A: Hackers are a significant risk: Hackers are targeting organizations of various sizes, including…
Q: Digital signatures give the same level of secrecy as traditional signatures, or are they more or…
A: Intro To confirm the legitimacy and integrity of a document, only the digital signature is…
Q: Is there a distinction between the two types of technology?
A: Introduction: Is there a distinction between the two types of technology
Q: In Excel, what is the difference between creating a workbook and creating a template for something?
A: The software application MICROSOFT EXCEL: It is a spreadsheet used for computations that includes…
Q: the result is T=3;C=3;x=5;z=0%; A= (x^2+3*C*cos(z)-2)/8*sqrt (abs (T^2-x^2));…
A: Result of c program
Q: What is the purpose of using separate inter-AS and intra-AS protocols on the Internet?
A: Inter-AS protocol helps in the controlled distribution of routing information. Intra-AS protocol…
Q: Explain why we need a server backup.
A: Introduction: The question is why data on the server must be backed up.
Q: e data is stored in memc nemo ack and hean memon
A: Memory alludes to the strategies for getting, putting away, holding, and recovering data. Memory is…
Q: Explain the distinction between integrity and authorisation restrictions.
A: Constraints on Integrity: Constraints on Authorization It is generally used to ensure data…
Q: the FCFS, SJF, and RR (quantum = 8 milliseconds) scheduling algorithms
A: Given :- In the above question, the processes along with the burst time and arrival time is mention…
Q: What are the two most often used types of encryption? What is the difference between them? What…
A: Intro The two most often utilized methods of encryption are : Symmetric Encryption Asymmetric…
Q: Write a java program to check if a list of integers contains only odd number. Please do it using…
A: JAVA CODE:- import java.util.*;class Main { public static void main(String[] args) {…
Q: Is it feasible that Belady's oddity will effect the best way to replace pages? Your replies should…
A: DUCTION: This approach is used by the OS to replace pages that will not be used for the foreseeable…
Q: operation is performed as a part of program code to divide two 8 bit numbers
A: DIVISION OF TWO 8 BIT NUMBERS The 8085 has no division operation. To get the result of the…
Q: Examine the classification of access control methods. These gadgets have a wide variety of controls.
A: Given: - Examine the classification methods for access control. Discuss the many controls present in…
Q: What methods are being used to achieve data backup? Make a list of the many forms of data backup.
A: Introduction: We should start by developing a backup strategy for backup data:
Q: In order to understand what a digital signature is and how it works in reality, we must first define…
A: Introduction: In the digital environment, digital signatures are akin to "fingerprints."
Q: Write a C++ program the utilizes looping and the tab escape \t to print the following table of…
A: Here I have printed the string separated by a tab space that will be the header of the table. Next,…
Q: ily_nam
A: Given as, customers - id - name - family_name - address - phone products code name…
Q: Write the program to present the following output by using Bubble Sort algorithm Data items in…
A: Introduction: Here we are required to create a program in C of bubble sort.
Q: Are there any definitions available for the term "intrusion prevention system?"
A: Introduction:- "Network security" refers to a wide range of technology, devices, and procedures. In…
Q: How many of the following assertions are false? Pick one: a. A function must be defined and…
A: Java is a language for programming. It houses several libraries (package). It may be used to…
Q: Data items in original order / Your name 3 9 1 8 11 13 90 8 46 38 Data items in ascending order /…
A: I modify the program for descending order and provide the code in C along with output and code…
Q: Computer Science 1. XML schema is used to a. Transform one XML document into another b. Extract data…
A: XML stands for extensible markup language.
Q: Create a simple java program that reads all the content in a .txt file, the user will enter the…
A: The code is given below.
Q: `When a process is terminated, identify the procedure that is responsible for creating free memory…
A: Terminated: Accidental termination of an instance is avoided using termination protection. For EC2…
Q: define the objective of the PMT function and the arguments in support of it
A: Beginning: A monthly payment for security or loans is known as a PMT. The interest rate is…
Q: What is the fully qualified identifier of a method named displayName() declared within the Mailing…
A: A method in a class is defined to perform a certain function.
Q: Make a list of all the different mathematical operations and organize them in decreasing complexity…
A: Introduction: Make a list of all the different mathematical operations and organize them in…
Q: for linear algebra in solving a sytem of linear equations in form AX = B. True or false. 1.the…
A: Here in this question we have given a linear equations inform of AX= B.and we have asked to comment…
Q: integrat
A: Yes ,it is possible to make sense of that coordinated circuits prompted microcomputers.. First let…
Q: State the approximate worst-case running time for each of the following. Appropriate answers are of…
A: a. HashMap.size : Worst Time complexity : O(n) , where n is number of elements in Hash Map.…
Q: When it comes to computers, what exactly is "in-memory?" Can you think of an example of one of…
A: Given: We have to discuss When it comes to computers, what exactly is "in-memory." Can you think…
Q: - ----------------------------------------------- -- % Students Table (SELECT * FROM Students)…
A: -- 1. Write a query to display the names of the students who do not have an assigned advisor. #below…
Q: What does it mean to "select random numbers"?
A: Random Random expresses that an item, number, amount, etc. is selected at random from a particular…
Q: Daffodil Institute is granted the block 172.20.110.0/16. The administrator war
A: The answer is
Q: Google responds to our inquiry with millions of relevant webpages in a single millisecond?
A: Millisecond: A millisecond (MS) is a thousandth of a second. A human eye blinks between 100 to 400…
Q: Write a python program that will add two 4 digit binary numbers and yield an answer. Use the int()…
A: program that will add two 4 digit binary numbers and yield an answer. Use the int() function to…
Q: Find the smallest r such that 0,(n) > (log, n)'. maxk=[ (log, n)2]; maxr=Max[3, [(Log2 n) 1); (*maxr…
A: maxk = log2(n) maxr = max(3, log2(n)) nextR = True for r in range(2, maxr): nextR = False for k in…
Q: Is there a way to affect the evolution of a memory hierarchy based on where you are located?
A: Memory Hierarchy Based: Memory hierarchy divides computer storage into a hierarchy depending on…
Step by step
Solved in 3 steps with 2 images
- Write a program that reads a text file named as “input.txt” and performs the following operations:1. Write each word in the text file in reverse order to the file named as“output.txt” . (Example: If the text file contains ”Hello World!”, then itshould write to the output file ”olleH dlroW!”)2. Print the number of words.3. Print the number of words starting with a capital letter.4. Print the number of words that contain no characters other than Englishletters.In this challenge you are supposed to:1. Comment every function with a description explaining what it does andhow it does it.2. Research and learn how to read and write into text files by using properlibrary functions in C.In your program, you can assume that1. Both the input file (input.txt) and the output file (output.txt) will beplaced on the same folder as your program’s executable (.exe).2. In the input file, the length of the words will be at most 100.Write a program that reads in from a file a starting month name, anending month name, and then the monthly rainfall for each monthduring that period. As it does this, it should sum the rainfall amountsand then report the total rainfall and average rainfall for the period.For example, the output might look like this:During the months of March–June, the total rainfall was 7.32 inchesand the average monthly rainfall was 1.83 inches.Write a program that will read the file text.txt which is provided and the encryptedmessage in there. Please write back the decrypted message into the output.txt file.When you see the message in the output.txt file, you need to submit the java codefile. You need to use Rot13 class for decrypting the message. Do not need to submit in the output.txt file. file example: public class FileExample { public static void main(String[]args){ try {//create file object for input.txtFile in_file = new File("src/input.txt");//create file object for output.txtFile out_file = new File("src/output.txt"); //read the input.txt file with ScannerScanner read = new Scanner(in_file);//write the output.txt file with PrintWriterPrintWriter w = new PrintWriter(out_file); while(read.hasNextLine()){w.write(read.nextLine());} //don't forget to closew.close(); // while(scan.hasNext()){// System.out.println(scan.next());// } }catch(Exception ex){ex.getStackTrace();}
- Write a program that prompts the user to enter afile name and displays the occurrences of each letter in the file. Letters are caseinsensitive. Here is a sample run:Enter a filename: Lincoln.txt ↵EnterNumber of As: 56Number of Bs: 134...Number of Zs: 9Write a program that meets the followingrequirements:■■ Get an audio file from the class directory using AudioClip.■■ Place three buttons labeled Play, Loop, and Stop, as shown in Figure .■■ If you click the Play button, the audio file is played once. If you click the Loopbutton, the audio file keeps playing repeatedly. If you click the Stop button,the playing stops.write a program that replace each line of a file with its reverse. for example, if you run: java Reverse HelloPrinter.javathen the contents of HelloPrinter.java are changed to retnirPolleH ssalc clibup{)sgra ][gnirtS(niam diov citats clibup{wodniw elosnoc eht ni gniteerg a yalpsiD // ;) "!dlroW ,olleH " (nltnirp.tuo.mestyS}}
- Write a program that reads data from a file containing integers that ends with -999. Output the numbers that are divisible by 7 Output the numbers that are divisible by 11 Output the numbers that are not divisible by 7 or 11Write a Java program that uses the coordinates.txt file in your project directory. Each line of this file contains a pair of coordinates. Read every line, find out the Euclidean Distance between the two coordinates in every line, and save the distance of every line in a file called “outputs.txt”. Bonus: From your outputs.txt file, find out the maximum distance and print it out in the console. Algorithm: For each line in coordinates.txt: split line with “ ”. This should separate out the two points. split each of the two points with comma. This gives you x1,y1 and x2,y2 calculate the Euclidean Distance according to the formula shown in the class append this distance in a new line in your outputs.txt file.-------------------------------------------------------------------------------- coordinates.txt 1,2 3,62,4 2,56,2 3,81,4 6,28,2 5,53,5 3,74,6 2,64,7 2,51,8 3,68,3 6,34,8 1,62,5 2,62,8 9,35,8 3,83,7 0,20,3 8,14,7 2,52,7 9,21,9 9,14,7 1,6Write a program that reads a file consisting of students’ test scores in the range 0–200. It should then determine the number of students having scores in each of the following ranges: 0–24,25–49,50–74, 75–99,100–124,125–149,150–174, and 175–200. Output the score ranges and the number of students. (Run your program with the following input data: 76,89,150,135,200,76,12,100,150,28,178,189,167,200,175,150,87,99,129,149,176,200,87,35,157,189.)
- Write a program that reads a file consisting of students’ test scores in the range 0–200. It should then determine the number of students having scores in each of the following ranges:0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200.Output the score ranges and the number of students. (Run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189 #include <iostream> #include <fstream> #include <string> using namespace std; int main() { int scores; int i [8] = { 0 }; ifstream infile("Ch8_Ex4Data.txt"); if ("Ch8_Ex4Data.txt") { while (infile >> scores) { if (scores >= 0 && scores <= 24) i[0]++; if (scores >= 25 && scores <= 49) i[1]++; if (scores >= 50 && scores <= 74) i[2]++; if (scores >= 75 && scores <= 99)…Write a program that reads a file consisting of students’ test scores in the range 0–200. It should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. Output the score ranges and the number of students. (Run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189 The file its coming from is called Ch8_Ex4Data.txt Programming C++Write a program that reads student data from a file, compute their GPA and writes the results to a different file. 1. The user should have the option to either enter their text file that contains the student grades or use the provided text file that contains theinformation. The data in "indata.txt" should look similar to this, Lara_Croft75 70 91 69 89Chris_Redfield68 88 79 85 94Johnny_Cochran69 98 95 77 80Wanda_Maximoff84 86 98 95 92Luke_Skywalker74 96 80 98 97William_Kurt89 52 99 81 58Samuel_Jackson50 96 50 64 95END_OF_FILE This is supposed to be in python. This is what I have so far. I have no experience I apologise. I am trying to finish the GPA calculating program currently but am having trouble finishing it. grade = input("enter grades")points = 0 if grade is 90-99:total_points = 4.0if grade is 80-89:total_points = 3.0if grade is 70-79:total_points = 2.0if grade is 60-69:total_points = 1.0if grade is 50-59:total_points = 0.0gpa = total_points/len(grade)print(gpa,"is gpa")