Informazioni sul documento
- Università
- Politecnico di Milano
- Corso di laurea
- Computer Engineering
- Materia
- Principles of Programming Languages
- Classificazione
- Esercizi · Completi
- Formato originale
- Testo
- Testo ricercabile
Completi di Principles of Programming Languages per il corso di Computer Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.
Completi di Principles of Programming Languages per il corso di Computer Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.
Qualità dell’importazione: il testo è stato estratto direttamente dal documento originale.
Passaggi rappresentativi riconosciuti nelle diverse parti del materiale. Il testo completo resta presente nella pagina per la ricerca, mentre l’anteprima compatta rende più semplice la lettura.
C++ Workbook Ettore Speziale In the following sections you can found some assignments, each related to a particular aspect of the C++ language. The assignments are more or less of the same difficulty of the ones you are required to solve during the exam. 1 Object Oriented The Scrooge McDuck corporation needs to continuously observe the stock market in or- der to compete with other rival corporations. Data for stock market analysis is provided by the Huey, Dewey, and Louie Inc., that asks 1000$ for each access to data. Due to is greed, Scrooge McDuck does not want to pay 1000$ too many times, so he assign you the design of a new stock market analysis tool: • when a new analysis is needed, a command containing analysis code is sent to the analysis server • the analysis server buffers commands, until a fixed threshold is reached • at that point, a command representing all pending analysis is built, and sent to Huey, Dewey, and Louie Inc., thus allowing to pay its fee only once • a special command forcing the execution of all pending analysis can be sent to the analysis server You are required to sketch the solution of the problem using C++. 2 Operator Overloading The Orion Crew Exploration Vehicle is a new manned aircraft being built by NASA to replace the Shuttle Space Transportation System. It is equipped with state of the art computers in order to increase the aircraft reliability. The implementation of the flight-control systems has been commissioned to your com- pany. You are in charge of providing a software-based fault-tolerant implementation of single precision floating point arithmetic to be used by software running on flight-control CPUs. Your boss asks you to sketch an initial version of the library with the following features: 1 • the base data type is a floating…
Prima pagina del documento.