Write complete program that uses the functions listed below. Except…
Question Answered step-by-step Write complete program that uses the functions listed below. Except… Write complete program that uses the functions listed below. Except for the printOdd function, main should print the results after each function call to a file.Write function called productEven, that takes as its parameter an input file. The function should read two integers and calculate the total product of only even numbers between them.Write function in the C++called summary that takes as its parameters an input and output file. The function should read two integers find the sum of even numbers, the sum of odd numbers, and the cumulative product between two values lower and upper How do software engineering tools change as systems scale? Discuss this questionwith reference to(a) a 2000-line device driver for a safety-critical sensor on board an aircraft;(b) a 100,000-line engine control unit for a diesel engine that adapts it for use intrucks, generators or irrigation pumps;(c) a 1,000,000-line social networking site such as Facebook or MySpace;(d) a 50,000,000-line operating system. (a) A web server is an application that listens for incoming network connectionson TCP port 80. Once a connection is established, the task of processingclient requests and sending replies can be handled by an instance of aWorker class which you may assume already exists. Worker implements thejava.lang.Runnable interface and has an accessible constructor that takes asargument a java.net.Socket object representing the network connection toa client.Provide the Java code for a webserver which, upon start-up, attempts to listenon TCP port 80 and starts a new Thread running a new Worker for everyconnection. Your program should print helpful error messages indicating thelikely cause of problems when it is unable to proceed as expected. [10 marks](b) A busy web server might expect to handle concurrent requests to read andupdate some shared data and could use Timestamp Ordering (TSO) to enforceisolation between concurrent transactions.(i) Explain how TSO enforces isolation.(ii) Is TSO appropriate for a web server application? Explain your reasoning. Consider the following grammar for expressions (where Id is a terminal symbolrepresenting an identifier resulting from lexical analysis):Expr ::= 1 | 2 | Id | Expr + Expr | Expr / Expr |Expr ^ Expr | (Expr)(a) Explain in what principal respect this grammar is unsatisfactory.(b) Assuming further that + is to be left-associative, ^ is to be right-associative and/ is to be non-associative are allowed), re-write the grammar to reflect this.(c) List the terminal symbols and non-terminal symbols, and count the productionrules both in the original grammar and in the grammar in your answer topart (b). Indicate the start symbol in both grammars.Image transcription textProblem 4 For the following matrices Aand B, perform the following operations.Show your work: 1 2 5 5 0 … Show more… Show moreImage transcription textQuestion 7 (20 Marks] Write a syntaxdirected translation scheme to converta Hexa-decimal number In… Show more… Show more Computer Science Engineering & Technology C++ Programming COMPUTER S 1234578 Share QuestionEmailCopy link Comments (0)


