Consider the below commands i) sed "s/CSH/csh/g" temp >|Is ~/newtemp 11) Is -v grep wc -1 111) Is -a grep "." wc -1 6699 iv) type -l export type -t Is
Q: Octal String: 010 110 101 010 101 111 010 111 111 101 011 011 011 011 010 100 1. Hex String: 1. Base...
A: Octal to hex is. 0B557AFEB6D4
Q: You can find out how many seconds have elapsed since Jan 1, 1970 using the time() function. #includ...
A:
Q: Procedure 1. Define a function named procedurel () that will be called from main () function, the fu...
A:
Q: Write 10 user stories for stock trading bot software
A: Lets see the solution in the next steps
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: Indicate the ASCII and EBCDIC code for the following: The letters A, B, C, D, E and the numbers 1, ...
A: Let us see the answer:- ASCII value Number/alphabet ASCII value ...
Q: a) Two-dimensional array of integers named scores with 3 rows and 4 columns was defined by using the...
A: Answer a. Table 1: Elements of scores array 0 x[0][0] 1 x[0][1] 0 ...
Q: Doing a trillion floating point operations in one second is called a .. ...... O petaflop teraflop m...
A: The above question that is given trillion floating point operation in one second is answered below
Q: Suppose a program has runtime proportional to nlogn, where n is the input size. If the program take...
A: Let, runtime for input n be T(n) Given, T(n) ∝ nlog(n) Let the proportionality factor be k. We have,...
Q: Returns the number of times item appears in aList.
A: Python is a popular programming language among developers used for data analysis and predicting mode...
Q: e VIN, make, model, year, color, asking price, number of miles, number of collisions, tire age, and ...
A: ERD for given database: No of entities : 1)SalesPerson entity : Attributes are { salespersonID ,name...
Q: 1. Convert 82ADH to decimal. 2. Convert 11101b to decimal. 3. Convert 2BD4H to decimal.
A: “Since you have asked multiple questions, we will solve the first question for you. If you want an...
Q: (c) Find the sum-of-products expansion of the following Boolean function: f(a,b,c) = a(b+ €) + ab + ...
A:
Q: When to use internal and external javascript code?
A: The answer is
Q: find the simplified circuit
A:
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: Convert the given DFA into Regular Expression notation using Arden's Theorem ob 92 91 q3
A: Regular Expression to DFA- The following are common approaches for converting a DFA towards its re...
Q: help me write these functions for a vending machine
A: Below i have given the program:
Q: Please explain why this code has program output: **********
A: The solution to the given problem is below.
Q: Alice and Bob use the ElGamal scheme with a common prime q= 131 and a primitive root a = 6. Let Bob’...
A: The answer is
Q: Develop a PL/SQL block that would go through all the employees from EMPLOYEES table who work in depa...
A: Solution SELECT * FROM departments where department_id =90; BULK COLLECT Clause for Selecting Multip...
Q: fferentiate a browser from a search engine: Enumerate examples of the following: Browser Search ...
A: I have answered the first two questions. For accessing the internet we make use of browsers. If yo...
Q: C# Language You are tasked with writing a program to process students’ end of semester marks. For e...
A: Solution :- Code is implemented in C++ language. For clear understanding of code, programming commen...
Q: Computer Science Use Assembly programming language to solve the following problems using: • Uses im...
A: ADDRESS MNEMONICS COMMENTS 0400 MOV CX, [0500] CX <- [0500] 0404 MOV AX, 0001 AX <- 0001...
Q: How can I create a flowchart that can identify whether a number is prime or composite without using ...
A: The flow chart is the pictorial representation that gives a chart about the program and the logic be...
Q: I need help creating the printAnimal() method that prints from the menu, I keep getting errors and I...
A: Actually, Java is a high level programming language. And also object oriented .It. Is a platform f...
Q: Procedure 2. - Define a function named procedure2 () that will be called from main () function, the ...
A: #include <stdio.h> void procedure2(int N){ for(int i = 1; i <= N; i++) { for(i...
Q: Try to use the Foreach method on the list and also use the Lambada print statement instead of simple...
A: Required:- Try to use the Foreach method on the list and also use the Lambada print statement instea...
Q: For the word count example, for the input of the Map function, keys are document IDs and values are...
A: For the word count example, for the input of the Map function, keys are document IDs and values are ...
Q: onnecting more peripherals to a computer is made possible by the .
A: CPU is the brain of the system.
Q: Write a small snippet of Nios II assembly code to implement the C code below. Assume that all of the...
A: Here we are asked to convert the given program in C to Nios II assembly language. As we know C is a ...
Q: Write two address instructions to evaluate first six terms of Fibonacci sequence. Compare with zero ...
A: The computer works on the instructions provided to it. The instructions provided to the computer con...
Q: What is the runtime (using big-O notation) of a search operation in a balanced binary search tree wi...
A: First lets understand what balanced binary search tree mean: in balanced binary search tree, at ever...
Q: Computer Science c++ Design an ID recognizer (a simple lexical analyzer) that reads in the string: ...
A: Lexical Analysis: Read the source code and generate a token list ("linear" analysis) We...
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: #include #include int main(){ int i; printf("before fork, my pid is %d\n" , getpid()); ...
A: The Answer is in Below Steps
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: In java
A: Java code is giving below-
Q: 'Rabenstein code was used to send a message with 4 information bits, you receive 100110001, if you c...
A: The answer is
Q: PHP program to create Login and Logout using sessions.
A: The Answer is in below Steps
Q: email validation, use regular expression to check javascript format is @., it needs to follow the f...
A: I give the code in Javascript along with code and output screenshot
Q: Create a program called staffSalary using GUI Java and add a class named Staff that will determine t...
A: The given program is a GUI based JAVA program which determines staff salary calculated based on sev...
Q: Question: Design 8 subnets for a company with the site address 201.75.38.0. What is the network mas...
A: Below is the answer to above questions. I hope this will be helpful for you..
Q: In order to make an informed decision, it's important to compare procedural versus object-oriented p...
A: Procedural and Object-Oriented Programming: Introduction Procedural programming is structured arou...
Q: s writing an after-action report on a security breach that took place in his institute. The attacker...
A: Lets see the solution.
Q: A friend sends an email to your business email address and includes an electronic card (e-card). You...
A: Please find the detailed answer in the following step.
Q: The Google Android operating system has over an 80 percent share of the worldwide smartphone operati...
A: The answer is
Q: Q.1. Implement insertion sort using C++ STL with following constrain and write a program : The inse...
A: Note- As per the Bartley policy we have to attempt only one question. Program Explanation- Insert...
Q: Reduce the following Boolean expressions to the indicated number of literals. (x'y' + z)' + z xy + w...
A:
Q: define Software Licence
A: A software license is a document that outlines the developer's and user's rights in relation to a pi...
Step by step
Solved in 2 steps
- Part 1: Define a class named ID Protected Data Member: number - type int pointer (dynamic variable) number has to be 10 digits integer. Appropriate accessor and mutator functions. Default constructor and one argument constructor. Overload the insertion operator > to input ID objects. Add big three to ID class. Please indicate call of big three. Use following main() to test your class. int main(){ ID a(12345678); cout>a; cout>a; cout copy constrcutor is called Enter id number: 1234 ID number: 1234 ID => Assignment operator is called Enter id number: 56789 ID number: 56789 ID number: 12345678 ID number: 1234 ID => Destructor is called ID => Dest ructor is called ID => Destructor is calledConsider the below commands i) sed "s/CSH/csh/g" temp> ls~/newtemp iii) ls -a | grep "." | wc -1 iv) type -1 export | type -t Is ii) ls -v grep wc -1 Which of the above Commands are executed? (A) i, ii, iii only (B) ii, iii only (C)All the above (D)None of these.//java Part I: Code an application using the BigDecimalclass to calculate the return of an investment. Use the same formula found in FutureValueand FutureValueApp2in Ch5 from the downloaded source code examples for the calculation. You must format the currency and percent (keeping 3 positions to the right of the decimal point in percent) and handle any exceptions (letter and out of range entries) that may occur from the input data. The valid range of investment amounts is from $1.00 to $1,000,000.00. The valid return rate is from 0.1% to 3.5%. The valid period of investment years is from 1 to 100. Your program must continue to run until the user enters “n” to terminate the execution. You must validate the user's entry so that only “y” and “n” are accepted. Save your code as fileFutureValueBigDeci malApp.java. (Suggestions: Modify Validator so it will add a new validateDoubleWithRange(Scanner sc, String prompt, double min, double max) method and a newvalidateIntWithRange(Scanner, sc,…
- JavaScript: Modify the provided JS file to force each of the JS error types to occur. Catch each error and log a message detailing which error type you triggered. /** Force each of the follow error types to occur* and catch them. Log a message describing each* of the error types.** Error types:* -SyntaxError (already done)* -ReferenceError* -TypeError* -RangeError** Additionally, throw your own error with a* custom error message containing your name.* Catch your error and log a message.*/ console.log('PROGRAM START'); try { JSON.parse(`{name: 'John', age: 18}`);} catch(error) { console.log(`Caught a syntax error: `); console.log(error);} // CODE STARTS HERE // CODE ENDS HERE console.log('PROGRAM END');Write a program that: Create a function that accepts 2 keyword parameters Keyword parameters must default to Zero (0) Use a Try/Except block to test if you can divide the two values Capture the appropriate exception via the except block If the values pass the try block, return the result of the division If the values throw an exception, return the message "Error, cannot divide by zero" Test to ensure the program passes the provided test cases found in the TESTS.md file Hints You may only use a try/except block, no if statements Figure out how to use only one return in the method In the Unit Test, I may pass 0, 1, or 2 arguments to the method, so make sure you default your parameters In the Unit Test, values may be integers or floating point numbers Input 100 2 Output 50 Case 2 Input 9 2 Output 4.5 Case 3 Input 9 0 Output Error, cannot divide by zero # Task 1. Create the Division Method def division(v1 = 0, v2 = 0): #argument default value is 0…1. Replace the (????) with relevant code to make th eprogram function. Details about the code are given below:(Java as been used) a) This program creates a reference to a file in main() and passes the reference to countWords() countWords(), not main(), reads the file and displays Total lines Total words Average words per line */ package finalexamtakehome1; import java.io.*; /** * * @author sweetkim */ public class Finalexamtakehome1 { // public static void countWords(????) { int lineCount = 0; int wordCount = 0; while (????()) { String line = input.nextLine(); lineCount++; Scanner lineScan = new Scanner(line); while (????()) { String next = lineScan.next(); wordCount++; } } double averageWords = (double) wordCount / lineCount; System.out.println("Total lines = " + lineCount); System.out.println("Total words = " + wordCount); System.out.printf("Average words per line =…
- Select the statement that is false regarding file guarding. Group of answer choices: In your .h files all code should be contained within the guards. It restricts the scope of a namespace, which prevents namespace pollution. If used properly it prevents redefinitions of classes/functions. It is an instruction to the preprocessor. It must make use of a unique identifier.What is the difference between 'delete' and 'deletel' in C++? Select one: a.delete is the correct operator, but deletel operator does not exist b.delete is used to delete automatic objects whereas deletel is used to delete pointer objects c.delete is used to delete single dynamic object whereas deletel is used to delete dynamic array objects d.delete is a keyword whereas delete] is an identifieri will upvotes unique answer plzz (Use language OOP in c++) Create a class Student with data members age and marks, both of type integer. Provide a parameterized constructor and a set member function to set the data members. The age should be a positive number between 15 and 40 while the marks should be between 0 and 100. Create a class InvalidRange as exception handler of the Student class. Add two private data members (a string and an integer) to theclass InvalidRange. Provide appropriate constructor and get methods for the data members. The string should store the name of the function throwing the exception while the integer should store the invalid value the user has supplied. The student class should throw an exception if any of its member functions attempts to assign an invalid value to the data members. In the main program, create objects of class student, assign valid/invalid values to the data members and catch the exceptions accordingly. Extend the program to have two…
- In the source file (CPP), create a C++ class that contains your functions and data members as follows: • Data members: · 2 arrays of strings named names and values respectfully (do not use STL containers e or your score will be reduced significantly). The size of the arrays should be large enough to hold all of the data parsed from the test files (we will be modifying this in the future so don't worry about the size being just right. Err on the side of too large if anything). • names array: will contain all of the names in the object • values array: will contain all of the values in the object Member functions: · A function to open the file and store the file object or data. The function should return true on success and false on failure. · A function to read the names/values from the JSON file and place them in the 2 member arrays named names and values respectfully. The function should return true on success and false on failure. • Create docktest e testcases that tests the results…Java Code: -Creates ProgramNode, loops over Parse calls correctly, throws exception if unknown item found -(ParseFunction) Uses MatchAndRemove(), handles any number of parameters, fills in ASTNode correctly -(ParseAction) Uses MatchAndRemove(), handles any number of parameters, fills in ASTNode correctly Make sure to give the correct code for parser.java with the screenshots of the output. There must be test cases involved, so make sure to have test cases as well.Consider the below commands i) sed “s/CSH/csh/g" temp >| Is ~/newtemp ii) Is -v grep wc -1 iii) Is -a | grep “." | wc -1 iv) type -l export| type -t Is Which of the above Commands are executed? (A) i, ii, iii only (B) ii, iii only (C)All the above (D)None of these