An examination consists of one or more examination items. Each of the examination items can be of different types (e.g., true or false, multiple choice, enumeration, etc.). All items are associated with the number of points that correspond to the item. Consider the code provided below that includes type declarations for ExamItem, TrueOrFalse, and MultipleChoice, as well as a method administerExam(), that, when invoked, supposedly administers an examination to the user. Complete the given code below. Please answer the question: What must be placed for item/s labeled as #10?
Q: answer for python Write a program that will allow a teacher to calculate the average test score for...
A: The code is given below.
Q: Which of the following can be used to represents the public members of a class in the class diagram?...
A: Answer is
Q: What are the ettiquette inside the arnis room?
A:
Q: Write a program that asks a user to input non-negative integers (numbers that are >=0) until the use...
A: In the following steps, the input, output and the code screenshot along with the output has been men...
Q: Describe the interface and implementation in brief. How are the many components of planned software ...
A: Introduction: The interface is that part of a class that is accessible to the outside, namely what i...
Q: What are the applications of Subneting?
A: According to the question the subnet allows to the community to carry out speedy and makes the commu...
Q: 2. Consider a 7th order system. Form the characteristic equation of your choice and justify stabilit...
A:
Q: You will create a Grade Program that will calculate students’ weighted averages. You are going to ha...
A: #include <iostream>#include <iomanip>using namespace std; double averageGrade(){ doub...
Q: Enter a positive number or enter/return to quit: 2 The program's estimate is 1.4142135623746899 Pyth...
A: Note: The provided solution is correct as per the question requirements. If you need further assista...
Q: WHERE CAN I FIND A WEB DATABASE APPLICATION?
A: Intro Web Database Application A Web database is a database that can be administered and accessed v...
Q: Complete the program and identify and correct the errors in each of the following. While ( x <= 100 ...
A: while(x<=100) total = + x; ++x;1. In first Program there is while loop but no ope...
Q: Design and implement a class called RandomArray, which has an integer array. The constructor receive...
A: Array In Java In Java, an array is a collection of objects with the same data type. Further, an arra...
Q: Short answer What is the reason for the need to rearrange databases? Computer science
A: Introduction: A database is a logically ordered collection of data saved on a computer that may be a...
Q: In Python, create a function called function(A) that returns all of the following: - the steady-stat...
A: the steady-state gain of A as a scalar (if it exists, else the string 'DNE' if does not exist): def ...
Q: 3. An easier way to compute the gcd in python is to use the function gcd in the math library. Using ...
A: code : import math print(math.gcd(12345,333)) Code Snapshot : Output : Answer : 3
Q: Consider diagrams below. List rule violations on these diagrams Context Diagram DF3 Ship Cap & Gown ...
A:
Q: Contrast Assembly with Machine Language. Talk about the I-type instruction format.
A: Introduction: Computer languages have progressed from Low-Level to High-Level Languages over time. O...
Q: Explain how the size of the organisation and the size of the programme have an impact on software pr...
A: The inquiry is the manner by which size of the association and size of the program are factors that ...
Q: Explain why planning and distributing a mass-market system release is costly.
A: Introduction: The task of determining a path of action that will assist a group of agents in a given...
Q: Algorithm Used by the LEX State-Machine Drive
A: Below the Algorithem by the LEX state-Machine Driver
Q: Create a scenario to aid in the development of tests for the wilderness weather station system.
A: INTRODUCTION: Here we need to create a scenario to aid in the development of tests for the wildernes...
Q: In terms of advice and conclusions, what can we draw from cybercrime ?
A: Introduction: The goal of cybercrime is to make money, damage equipment, or disseminate viruses or u...
Q: C Address filtering. How you would bypass MAC address filteri
A: MAC Address filtering
Q: A local area network (LAN) is a technology that links devices and people within a limited region. ex...
A: Introduction: A local area network (LAN) is a collection of computers linked together to form a netw...
Q: Why is a computer scientist essential to have networking knowledge?
A: Intro The above question that is reason for networking expertise required of a computer scientist is...
Q: What are the shortcomings of traditional file-based systems that make DBMS a preferable choice?
A: Intro Manual file processing systems, as well as computer-based file systems that were tied to speci...
Q: What exactly is dynamic scoping, and when should it be used? What is the impact of dynamic scopin...
A: Intro According to the question The scoping control done how to variable value is the resolved and ...
Q: b) X(t) -6 3 4 6 -3 -2
A: Matlab code for Fourier Seriesclear allclose all Question a.function for which Fourier series have t...
Q: How many general-purpose registers are there in Intel’s 8085A µP? Which register pairs are allowed? ...
A: The 8085 has six general-purpose registers to store 8-bit data. These are identified as- B, C, D, E,...
Q: Define computer environment and describe THREE distinct kinds of computing environments in your own ...
A: The computer environment should be distinguished to lay out the extent of the product item's abilit...
Q: 2. Consider a 7th order system. Form the characteristic equation of your choice and justify stabilit...
A: we will solve this question in step no. 2
Q: Given the following binary number in 32-bit (single precision) IEEE-754 format, the decimal value cl...
A:
Q: What exactly is data analytics? What is the goal and motivation for having data analytics now?
A: Intro Data is very useful in businesses to better understand their customers, improve their adverti...
Q: Explain why problems with support software may necessitate a company's replacement. systems from th...
A: Explain why problems with support software may necessitate a company's replacement.
Q: Using examples, define a real-time operating system. Explain how it differs from a typical operating...
A: Real-Time Operating System A Real-Time Operating System, or RTOS, is a software component that rap...
Q: Let's say a top secret user wishes to utilise a file existence covert channel to leak the PIN number...
A: Introduction: A database with multilevel security has data that has been categorise and, as a result...
Q: What is the distinction between a subsystem and a logical subdivision, and why does it matter?
A: Introduction: The blocks are logically divided at the common plate joints. Arrows pointing inwards i...
Q: What do you mean by patterns and frameworks being distinct?
A: Introduction: A design pattern or a receipt that explains how to solve a certain issue.
Q: 1.1-What is one of the important thing to consider when terminating a coaxial cable with a connector...
A: Any discussion of termination requires that you first select the cable and connector series. Coaxial...
Q: Why is there so much emphasis on object-oriented programming these days?
A: Intro Yes, these days the object-oriented programming is very much used due to its multiple benefit...
Q: What are the fundamentals of a wireless network? Computer science Short answer
A: Introduction: Wireless networks are more adaptable and less expensive than wired networks. A wireles...
Q: What exactly is cloud technology?
A: Intro Users can access storage, data, software, and servers over the cloud using any internet-connec...
Q: Write an algorithm and python code for an array of descending order.
A: The answer is given in the below step
Q: Vrite a java program to take a string and a non-empty substring sub, print true if the substring app...
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner s=new Sca...
Q: the similarity of dynamic programming and greedy approaches is that they both pre-calculate optimal ...
A: The solution to the given question is: TRUE On issues with "optimal substructure" , which means that...
Q: Q#2: In the following equation, determine: ( 243. n ), = ( 1110011.0100 )ncD i. The unknown base x. ...
A: 2. The given equation is : ( 243.n ) x = ( 1110011.0100 ) BCD The table for decimal to BCD mapping ...
Q: Write a program that asks a user to input non-negative integers (numbers that are >=0) until the use...
A: I have provided C++ CODE along with CODE SCREENSHOT and 2- OUTPUT SCREENSHOTS----
Q: Ten signals, each requiring 4000 Hz, are multiplexed onto a single channel using FDM. What is the mi...
A: The answer as given below:
Q: An input image has the size of 140x140 and we use a filter (kernel) with the size of 20x20. We then ...
A: The answer as given below:
Q: Which of the following statements about encryption is FALSE?
A: Ideally an encrypted message should appear completely random. False It is not a random activity it m...
An examination consists of one or more examination items. Each of the examination items can be of different types (e.g., true or false, multiple choice, enumeration, etc.). All items are associated with the number of points that correspond to the item. Consider the code provided below that includes type declarations for ExamItem, TrueOrFalse, and MultipleChoice, as well as a method administerExam(), that, when invoked, supposedly administers an examination to the user. Complete the given code below.
Please answer the question: What must be placed for item/s labeled as #10?
Step by step
Solved in 2 steps
- In Java Oleae nust read a file A photographer is organizing a photo collection about the national parks in the US and would like to annotate the information about each of the photos into a separate set of files. Write a program that reads the name of a text file containing a list of photo file names. The program then reads the photo file names from the text file, replaces the "_photo.jpg" portion of the file names with "_info.txt", and outputs the modified file names. Assume the unchanged portion of the photo file names contains only letters and numbers, and the text file stores one photo file name per line. If the text file is empty, the program produces no output. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg GrandCanyon1996_photo.jpg IndianaDunes1987_photo.jpg LakeClark2009_photo.jpg…package Q2;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.util.ArrayList;import java.util.Scanner;public class Question2 {public static void main(String[] args) throws FileNotFoundException {/*** Part a* Finish creating an ArrayList called NameList that stores the names in the file Names.txt.*/ArrayList<String> NameList = new ArrayList<String>();/*** Part b* Replace null on the right-hand-side of the declaration of the FileInputStream object named inputStream* so that it is initialized correctly to the Names.txt file located in the folder specified in the question description*/FileInputStream inputStream = new FileInputStream("Names.txt");Scanner scnr = new Scanner(inputStream); //Do not modify this line of code/*** Part c* Using a loop and the Scanner object provided, read the names from Names.txt* and store them in NameList created in Part a.*/while (scnr.hasNext()) {//reading each string from text file and adding to…Implement function duplicate() that takes as input a string and the name of a file in the current directory and returns True if the file contains duplicate words and False otherwise. Hints: remember to save the function and the text file in the same directory. def duplicate(filename): 'Put in docstring’ # get file content infile = ________________# ______________ content = ______________# ______________ infile__________________# ______________ # replace punctuation with blank spaces and obtain list of words table = ________________________ # _______________ words = _______________________ # _______________ # for every word, check if it occurs more than once; if so, return True for word in words: if ______________________ # _____________ _________________# _____________ # no word occurred more than once, so return False ______________ Result of running the function. >>> duplicate('Duplicates.txt') True >>> duplicate('NoDuplicate.txt') False
- Write every task in C++ programming language using arrays, array input/output and array operations. Task 1: Write a program that reads a text file which has a poem written in it. (Write down the poem yourself in a text file manually). Your program should display that poem and count total number of lines in the file. Task 2: Write a program that inputs the names of five cities from user in a string and stores/write them in a file city.txt Task 3: Write a program that reads the records stored in students.txt file and display them.IN JAVA ONLY PLEASE. POSITIVE REVIEW WILL BE LEFT FOR CORRECT LANGUAGE ONLY AND NOT COPY PASTE FROM INCORRECT ANSWER A photographer is organizing a photo collection about the national parks in the US and would like to annotate the information about each of the photos into a separate set of files. Write a program that reads the name of a text file containing a list of photo file names. The program then reads the photo file names from the text file, replaces the "_photo.jpg" portion of the file names with "_info.txt", and outputs the modified file names. Assume the unchanged portion of the photo file names contains only letters and numbers, and the text file stores one photo file name per line. If the text file is empty, the program produces no output. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg…The python function first_words takes one parameter, fname, the name of a text file, and returns a list containing the first word from each line of the file. For example, if the file contents are: apples are red bananas are yellow limes are green then the list ["apples", "bananas", "limes"] should be returned.NOTE: You may assume the file will contain no blank lines.BIG HINT: If line is a string representing a line of text (inside of a for loop!), then L = line.split() creates a list of the words in the line.
- JAVA PPROGRAM Write a program that prompts the user to enter a file name, then opens the file in text mode and reads names. The file contains one name on each line. The program then compares each name with the name that is at the end of the file in a symmetrical position. For example if the file contains 10 names, the name #1 is compared with name #10, name #2 is compared with name #9, and so on. If you find matches you should print the name and the line numbers where the match was found. While entering the file name, the program should allow the user to type quit to exit the program. If the file with a given name does not exist, then display a message and allow the user to re-enter the file name. The file may contain up to 100 names. You can use an array or ArrayList object of your choosing, however you can only have one array or ArrayList. Input validation: a) If the file does not exist, then you should display a message "File 'somefile.txt' is not found." and allow the…Computer Science JAVA #7 - program that reads the file named randomPeople.txt sort all the names alphabetically by last name write all the unique names to a file named namesList.txt , there should be no repeatsJava Program ASAP Here is a FileSorting program to read a CSV file, sorts a list of integers on each row, and prints a comma separated list of sorted integers on the console. Modify ir by removing or changing the main method os it passes all the test cases. import java.io.File;import java.io.FileNotFoundException;import java.util.ArrayList;import java.util.Scanner; public class FileSorting { private static final String FILENAME = "somefile.txt"; public static void main(String[] args) { // read integers from input file Scanner fileReader; ArrayList<Integer> numbers = new ArrayList<>(); try { fileReader = new Scanner(new File(FILENAME)); while(fileReader.hasNextLine()) { numbers.add(Integer.parseInt(fileReader.nextLine().trim())); } fileReader.close(); }catch(FileNotFoundException fnfe){ System.out.println("File " + FILENAME + " is not…
- File Encryption and DecryptionWrite a program that uses a dictionary to assign “codes” to each letter of the alphabet. Forexample:codes = { ‘A’ : ‘%’, ‘a’ : ‘9’, ‘B’ : ‘@’, ‘b’ : ‘#’, etc . . .}Using this example, the letter A would be assigned the symbol %, the letter a would beassigned the number 9, the letter B would be assigned the symbol @, and so forth.The program should open a specified text file, read its contents, then use the dictionaryto write an encrypted version of the file’s contents to a second file. Each character in thesecond file should contain the code for the corresponding character in the first file.Write a second program that opens an encrypted file and displays its decrypted contentson the screen. in phytonWrite a program that does the following: Reads information from a text file into a list of sublists. Be sure to ask the user to enter the file name and end the program if the file doesn’t exist. Text file format will be as shown, where each item is separated by a comma and a space:ID, firstName, lastName, birthDate, hireDate, salary Store the information into a list of sublists called empRoster. EmpRoster will be a list of sublists, where each sublist contains the information for one employee.The birthDate and hireDate in file are strings, but should be stored as objects of type Date.Example of EmpRoster list with 2 employees:[ [111,”Joe”, “Jones”, “09-01-1980”,”10-19-1999”, 95000], \ [222, “Sam”, “Smith”, “07-10-1956”,, “01-01-2000”, 50000] ] Print a report that shows the following: Employee RosterID First Name Last Name Birth Date Age Hire Date YrsWorked Salary WRITE the following information out to a text file…JAVA PROGRAM PLEASE MODIFY THIS PROGRAM and remove Boynames.txt is missing.\n Girlnames.txt is missing.\nBoth data files are missing.\n from this program please. THE TEST CASE DOES NOT ASK FOR IT. PLEASE REMOVE IT. I HAVE PROVIDED THE TEST CASE THAT FAILED AND THE INPUTS AS A SCREENSHOT. import java.io.*;import java.util.*;public class NameSearcher { private static List<String> loadFileToList(String filename) throws FileNotFoundException { List<String> namesList = new ArrayList<>(); File file = new File(filename); if (!file.exists()) { throw new FileNotFoundException(filename); } try (Scanner scanner = new Scanner(file)) { while (scanner.hasNextLine()) { String line = scanner.nextLine().trim(); String[] names = line.split("\\s+"); for (String name : names) { namesList.add(name.toLowerCase()); } } }…