Write a script that takes a whole number from a user's input and prints out its 2's multiplication table till 10. **********
Q: What are the two most important tasks or ideas to pay attention to while learning a new programming…
A: Describe a variable: Any programme, and hence any programming language, is built on variables. I…
Q: ) Number of usable hosts in each subnet.
A: The answer is
Q: The definition of manual software testing and its benefits are covered in the next section.
A: Manual Evaluation: During the manual testing phase, software test cases are executed by a tester by…
Q: Just as with other controls, a control's runtime attribute determines whether or not it appears on…
A: Introduction: The value of a control's attribute at runtime determines whether or not it will be…
Q: How much freedom do we now have to pick among the several computer language sub-genres? A few…
A: Definition: Language is the fundamental means of communication between computer systems, and we use…
Q: Is a web-based mental health program a good fit for a certain software architecture? a mobile…
A: Assuming the software is only available online and therefore accessible via smartphone, it's safe to…
Q: 19.))) Perform the following arithmetic operation: 11012 + 10012 + 00102 = _________
A: Arithmetic Operation's are Addition , Subtraction , Multiplication ,Division. The operations are…
Q: How do you choose among the several commercial software options? Which criteria should you use?
A: Software Available for Purchase: With the procurement of software, there are a number of factors…
Q: Is the overall impact of computer gaming on human health positive or negative? Is there any proof to…
A: Answer: The overall impact of computer gaming on human health can be both positive and negative…
Q: Why is it required for a programmer to be able to learn new programming languages if they are…
A: To Do: for justification. Answer: This is because you may be required to learn new languages for…
Q: Just as with other controls, a control's runtime attribute determines whether or not it appears on…
A: Run Time Control: The runtime Control function object allows you to terminate and write a…
Q: draw a DFA, NOT AN NFA that accepts exactly the strings over the alphabet {0,1} that contain the…
A: Solution: DFA: A deterministic finite automaton is a specific kind of deterministic algorithm with…
Q: Network Operating System providers that yo
A: Network Operating System: The network operating system is designed to work with PCs, workstations…
Q: What is the most effective way to get around WPS security?
A: Introduction: To do with WPS Security: WPS is easy to use and convenient, but it could be dangerous.…
Q: A.1 8 + 0.081n2 + 0.040n A.2 100 + n log2 n A.3 100n + 0.081 log3 n + n3
A: Note: As per the company policy, the answers of the first three subparts are given. Please repost…
Q: Is it possible for you to comprehend the measurements used in the software's development more…
A: The answer for the above mentioned question is given in the below steps for your reference.
Q: Are there any negative social effects from the extensive usage of smartphones?
A: The smartphone is a cell phone that lets you do more than make phone calls and send text messages.
Q: explanation of one intriguing data or text mining application.
A: Answer:- ->Data mining is becoming the backbone of every business ->Data mining is the mining…
Q: What happens in the code editor when the mouse cursor is held on a ragged line?
A: Mouse Cursor: 1) On a computer display screen, a cursor indicates the location where a user can type…
Q: What are two of the topics/activities that are most often explored while learning a new programming…
A: Given: We have to discuss What are two of the topics/activities that are most often explored while…
Q: Write a complete Java program that performs the following tasks: Print your full name with double…
A: Disclaimer: “Since you have asked multiple questions, we will solve the first question for you. If…
Q: There is a reason for this: the power of computers has increased significantly. How can it be shown…
A: Definition: Computers have been reliable ever since they were invented, but now that they are so…
Q: Do software developers have to produce maintainable code even if their employers don't require it?
A: Introduction: According to the company's statement, academic credentials will still be taken…
Q: Write a java code for java class named FTOCGUI, the object of this class results int following GUI:
A: temperature in celsius = (temperature in fahrenheit – 32)*(0.5556)Enter the temperature in…
Q: Where did the phrase "good enough" originate in the software industry?
A: Encryption: We must talk about the importance of the successful application development and the key…
Q: CX=000AH and SP=100H. Give the contents OV
A: The answer is
Q: How important is it for an IT professional to get acquainted with local laws and regulations? Are…
A: So this is a question on knowing the laws and regulations
Q: Write a function in C that returns the second minimum value in a binary search tree at root. struct…
A: Here is the c++ code. See below step for code.
Q: Determine how many cycles are needed to complete five instructions assuming that one cycle is…
A: Distill the divide: The cycle time of your team may therefore be calculated by dividing the net…
Q: mov edx,1 mov eax,7FFFh
A: The answer is
Q: Please provide a brief explanation of the metrics for the software development process. It must be…
A: Introduction: A software metric is a measurable, countable indicator of a program's characteristics.…
Q: e and Find the big-O time complexity of each of the foll
A: Solution - In the given question, we have to find the time complexity for (e) and (f) part.
Q: doing online research Mafiaboy's adventures When did he start hacking websites, and how? How did…
A: Introduction: Investigators tracked Mafia boy to computer assaults on a research facility at the…
Q: Why is Access superior than Excel when it comes to monitoring this data?
A: Microsoft Access and Excel: Microsoft Access and Excel are both important tools. However, distinct…
Q: What are the two most important tasks or ideas to pay attention to while learning a new programming…
A: Just what exactly is a variable: Variables are the fundamental building blocks of every programme,…
Q: Write a program named ConvertDate that converts a date entered by the user into another form. The…
A: Java Program: /* Java Program that converts date from one format to another format */ import…
Q: Is it possible for you to comprehend the measurements used in the software's development more…
A: Introduction In software engineering, a software development process is a course of separating…
Q: difference between react js and angular js. why react .js in not a framewor?
A: React is a JavaScript library for building user interfaces, while Angular is a full-fledged…
Q: What are the two most important tasks or ideas to pay attention to while learning a new programming…
A: Describe a variable. Any programme, and hence any programming language, is built on variables. I…
Q: Convert the following infix to prefix and valuate prefix expression without using stack : (50 - 2 *…
A: Given infix expression is, (50 - 2 * (2 + 3) - 5 * 4) * 2 Prefix expression means writing the…
Q: My language is not good for English, its not my native language. I couldn't understand the answer…
A: Linked list: It is a linear data structure in which elements are stored at contiguous memory…
Q: How do you choose among the several commercial software options? Which criteria should you use?
A: Introduction: Prefabricated Computer Programs Package: A variety of variables and possible issues…
Q: Do you have any knowledge of the metrics used in the software development process? The subject must…
A: These metrics are used to evaluate the various phases of the software development lifecycle. Think…
Q: What role does a signature file play in protecting a machine with anti-malware software?
A: Definition: Malware, which includes viruses, Trojan horses, worms, and other malicious attacks, is a…
Q: What does a mobo mean specifically with relation to computer science?
A: The term mobo is one of an alternative of the main part of computer's CPU . Let's discuss what part…
Q: What "flavours" of Windows 2016 are available?
A: Introduction part :- The Server Core (no Graphical user interface (GUI)),…
Q: In the world of Harry Potter, Flagrate is a spell used to draw or write in midair with fiery lines.…
A: Below I have provided a c++ program for the given question. Also, I have attached a screenshot of…
Q: Assume each user has a 500 kilobit per second demand and uses the network only 25% of the time. How…
A: Introduction: The statistical multiplexing gain is a link usage enhancement that may be achieved…
Q: The easiest way to obtain application programming software is to... Shouldn't you support your…
A: Application software is software that has been developed to solve a specific problem for users – to…
Q: Does database technology have a place in the management of an organization's data?
A: Introduction: Data management is the technique of gathering, organizing, safeguarding, and…
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- I have a "user.json" file that looks like this { "something@somewhere.com": "maybe", "john@beatles.uk": "lennonj!", "paul@beatles.uk": "mccartney", "mick@rollingstones.uk": "jaggerm!" } using java script i have to parse this file and then check this email and file conbinations against user input This is the code i m using to parse the file. function lookUpCredentials(filePath, cb) { fs.readFile(filePath, (err, fileData) => { if (err) { return cb && cb(err); } try { const object = JSON.parse(fileData); return cb && cb(null, object); } catch (err) { return cb && cb(err); } }); } lookUpCredentials("./user.json", (err, data) => { if (err) { console.log(err); return; } credentials = data; }); and this is the code i m using to get input from the user app.post('/login', (req, res) => { let username =…6.18 LAB: JavaScript game object Create an object called game in the script.js file. Add 2 properties: lives - initially 3, and coins - initially 0. Add a getter called points that returns coins * 10. Add a playerDies() method that subtracts 1 from lives if lives is greater than 0. Add a newGame() method that sets lives to 3 and coins to 0. The script.js file includes several console.log() statements, which should match the output below if the game object works correctly. lives = 3 coins = 0 points = 0 points = 20 lives = 2 lives = 0 lives = 3 coins = 0 View the program's output in the browser's JavaScript console. --------------------- // Your solution goes here console.log("lives = " + game.lives); // should be 3console.log("coins = " + game.coins); // should be 0console.log("points = " + game.points); // should be 0game.coins = 2;console.log("points = " + game.points); // should be 20game.playerDies();console.log("lives = " + game.lives); // should be…// switch_stdout.c: demonstrates use of dup2() and dup() to redirect // standard output to a new location temporarily and then restore it. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> int main(){ int stdout_bak = dup(STDOUT_FILENO); // make a backup of stdout system("rm -f mystery.txt"); // remove file using a shell command int out_fd = open("mystery.txt", // open file mystery.txt O_WRONLY|O_CREAT, // for writing, create if needed S_IRUSR|S_IWUSR); // give user read/write permission if(out_fd == -1){ // check for errors opening file perror("Couldn't open file 'mystery.txt'"); exit(1); // bail out if open fails } printf("1. Now you see me.\n"); // print to the screen dup2(out_fd, STDOUT_FILENO); // change stdout to go to mystery.txt printf("2. Now you don't!\n"); // print goes to…
- You have been given the file awards.psvThis file contains information about Nobel Prize, Turing Award and Fields Medal winnersEach line in the file contains the following six fields:1. Award Name2. Award Year3. Winner Name4. Winner Gender5. Winner Country6. Winner Birth YearEach field is separated from the next field by a pipe character ( | ).Your task is to write four grep commands which will print specified lines from this file.You have been given the file final_q1.txt .In final_q1.txt add answers to the four questions.Add each answer in the specified location.Do not add, remove, or change any other text in the file.The autotest depends on the exact format of the file.Each question should be answered with a single grep command.You may use any regular expression syntax supported by grep.You may use any options supported by grep except -P/--perl-regexp .1. Question 1Write a grep command that will print the lines in awards.psv that contain awards won by an Australian.2. Question 2Write…Consider you are given a data file with the following text: FirstName LastName, 25 You are just interested in reading the FirstName LastName into a string variable named fullname. What will work? Assume all streams have already been defined. Group of answer choices a) fin>>fulllname; b) getline(fin, fullname); c) getline(fin, fullname, ','); Both (b) and (c) All (a), (b) and (c) None of these ------------------------------ Which of the following is/are used to check for the end of file? Group of answer choices .fail() .end() .bad() Both .fail() and .bad() None of the above All of the above =============== Which of the following code segments would result in the number 14.56 being output? Group of answer choices cout << showpoint << setprecision(2) << 14.5555; cout << fixed << showpoint << 14.5555; cout << scientific << setprecision(2) << 14.5555; None of theseWHATS THE ALGORITHIM FOR THIS The course records are shown below: Each student has 4 assignments. 108194 9 10 10 10 197526 10 10 10 10 197008 10 10 0 10 197746 10 10 9 10 108154 10 0 10 9 Create an input file ‘CSassignments.txt’ using an editor such as Notepad++ with a student number, then a space, then four assignment marks on one line. The assignment marks are whole numbers and are separated by a space. Your C++ program will read from the file ‘CSassignments.txt’ and write to a second file ‘CSgrades.txt’ which includes the average of the student’s four assignments. e.g. 108194 9 10 10 10 9.75 Your C++ program should work with any number of records in the ‘CSassignments.txt’ input file – that is –…
- can someone check why my code is not working? intergers.txt 4 7 2 5 3 #include <iostream>#include <fstream>using namespace std; int main(){int num[100],i=-1; // variable declaration to read the integer data char tx;//variable declared ifstream myFile; // input file declaration myFile.open("numbers.txt"); // Syntax for open the file and read integer.txt while (!(myFile.eof())){ myFile >> num[i]; i++; // read the integer content from the file //myFile>>tx; // read the comma}num[i] = num[i+1]; // Delete the last garbage valuecout<<"The elements in the array are "; for(int j=0;j<i;j++){ // Loop to run for all the elements in the array if(j==i-1) cout<<num[j]<<endl; // print element with new line else cout<<num[j]<<","; // print the array} myFile.close(); //close the filereturn 0;}in java Variables bananaStream and bananaDataFS are FileOutputStream and PrintWriter, respectively. String bananaDataName is assigned a file's name read from input. Perform the following tasks: Assign bananaStream with a new FileOutputStream that opens bananaDataName for writing. Assign bananaDataFS with a new PrintWriter created using bananaStream. Ex: If the input is note.txt Ina, then note.txt contains: Ina ordered bananas 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 public class BananaDataProcessor { publicstaticvoidmain(String[] args) throwsIOException { Scannerscnr=newScanner(System.in); StringbananaDataName; StringbananaPurchase; FileOutputStreambananaStream=null; PrintWriterbananaDataFS=null; bananaDataName=scnr.next(); /* Your code goes here */ bananaPurchase=scnr.next(); bananaDataFS.println(bananaPurchase+" ordered bananas"); bananaDataFS.close(); } }After every word on a line is spellchecked, it should be written to an output file called checked.txt. The arrangement of words on lines should be the same in the document and in checked.txt. The difference between the document and checked.txt is that in checked.txt each word is in lowercase and there is no punctuation. Also, some words might be changed by the spellcheck process. For example, suppose the document contains the following: The Hunter Moon waxed round in the night sky, and put to flight all the lesser stars. But low in the South one star shone red. Then checked.txt will contain: the hunter moon waxed round in the night sky and put to flight all the lesser stars but low in the south one star shone red (In a real spellchecker, the output will be in the same case as the original, and all punctuation will be retained. For simplicity, we will not worry about case and punctuation.) How to Process Words Which Are Not in the Dictionary The spellcheck method also needs to handle…
- Create a script file voting_age that, given the name and age of citizen A, returns a message indicating if citizen A is eligible or not eligible to vote this coming election 2010. a. Test the script file voting_age for the following cases:i. Juan dela Cruz, age 33ii. Zion Alexander, age 18Write a program that reads the-zen-of-python.txt and writes each line to UpdatedZen.txt, a new text file. It capitalizes the first character of each line and adds a period to the end of each line before writing it back to updatedzen.txt. the-zen-of-python.txt file contents: beautiful is better than ugly explicit is better than implicit simple is better than complex complex is better than complicated flat is better than nested sparse is better than dense readability counts special cases aren't special enough to break the rules although practicality beats purity errors should never pass silently unless explicitly silenced in the face of ambiguity, refuse the temptation to guess there should be one-- and preferably only one --obvious way to do it although that way may not be obvious at first unless you're Dutch now is better than never although never is often better than *right* now if the implementation is hard to explain, it's a bad idea if the implementation is easy to explain, it…Suppose you have Java source files under the directorieschapter1, chapter2, . . . , chapter34. Write a program to remove the statement package chapteri; in the first line for each Java source file underthe directory chapteri. Suppose chapter1, chapter2,. . . , chapter34are under the root directory srcRootDirectory.The root directoryandchapteridirectory may contain other folders and files. Use the followingcommand to run the program:java Exercise12_20 srcRootDirectory