Develop a computer program in the java language

Assignment Help Software Engineering
Reference no: EM133319685

Assignment:- Java program

The goal of this project is to develop a computer program in the Java language which requires the design of a class that can be used to perform arithmetic involving fractions. For the purposes of this project, the following facts about fractions will be used.

OPTIONAL - The colour of a pixel is some average of the colours of all the rays fired through it. The power of ray tracing lies in the fact that secondary rays are fired from the ray-object intersection point to determine its exact illumination (and hence colour). This spawning of secondary rays allows reflection, refraction, and shadowing to be handled with ease. A simple raytraced image can be seen in Figure 1 and the basic algorithm in Figure 13. Ray tracing's big disadvantage is that it is slow. It takes minutes, or hours, to render a reasonably detailed scene. Ray tracing was first implemented in hardware by a Cambridge company, Advanced Rendering Technologies2 , in the late 1990s. Let us Assume a processor has two symmetric groups that contain both utilitarian units and an issue cradle. (a) How many flip-flops will be required to implement the mystery module, and how will signals c and r be connected to these flip-flops? 15 marks] (b) What is the state transition diagram for this mystery module? [5 marks] (c) If this module were synthesised to the minimum sum of products form, what would the equations be for next state bits s[0], s[1] and s[2]? [10 marks] 2 CST.2004.3.3 3 Data Structures and Algorithms Compiler Construction Programming answers should be written in some notation approximating SML or OCaml. (a) Describe what is meant by tail recursion. [4 marks] (b) Eliminate tail recursion from foldl given below. Which of the lookup mechanisms in part (b.ii) is usually used for a TLB and why aren't the other mechanisms usually used? [5 marks] 5 ECAD Consider the following mysterious Verilog module. module mystery(c,r,a,s); input c,r,a; output [3:0] s; reg [3:0] s; always @(posedge c or posedge r) if(r) s<=0; else begin if(a && (s<7)) s<=s+1; else if(!a && (s>0)) s<=s-1; end endmodule (a.ii) How many flip-flops will be required to implement the mystery module, and how will signals c and r be connected to these flip-flops? [9 marks] (b.ii) What is the state transition diagram for this mystery module? [5 marks] (c.ii) If this module were synthesised to the minimum sum of products form, what would the equations be for next state bits Explain how it does this.With the three datasets you have decided to use multiple tools in your Hadoop environment, an external hive table called "Company" in the default database using Company_data. We might expect that this model would be implemented in a relational schema such as SwA, wB), T(wC, wAmount), and R(wA, wC). Discuss to what extent a programmer can expect a program that conforms to a standard to generate identical results when run under different conforming compilers on different machines. [6 marks] (b) ALGOL 60 provided call by value and call by name, Pascal provided call by value and call by reference, and ALGOL-W provided a variety of calling methods including call by result and call by value-result. Briefly describe the calling mechanisms just mentioned and discuss why most modern programming languages provide only call by value. [8 marks] Consider different versions of an optimizing compiler, What Explain how five free elements of visual handling are multiplexed together into the three accessible spatial components of brain tissue, by the construction of the cubic millimeter hyper columns should the two fundamental objectives of a decent guiding strategy be?

(c) Discuss the reasons why languages such as Fortran, Algol and PL/I designed in 1950s and 1960s are less widely used than languages designed in the last 202 years. However, the database implementor has noticed that a very common and expensive query is this: given an A-value a, find the sum of all Amount values for records in T related to this a value in S.

Reference no: EM133319685

Questions Cloud

How does the writers choice of words in the first sentence : ENGLISH 035 Burlington High School How does the writer's choice of words in the first sentence help to convey the mood? A CASE OF SUSPICION by Ed Wallace
Describe what is meant by tail recursion : Describe what is meant by tail recursion. [4 marks] (b) 4 CST.2016.3.5 4 Compiler Construction Consider writing a compiler for a simple language of expressions
What does god do for those men who have by all means sought : What does God do for those men who have by all means sought to avoid the calamities of war
Explain whether victoria woodruffs views on love : Explain whether Victoria Woodruffs views on love and marriage (stated in the excerpt of her 1871 "Steinway Speech" on free love) are more similar or more
Develop a computer program in the java language : The goal of this project is to develop a computer program in the Java language which requires the design of a class that can be used to perform arithmetic
Differentiate a childrens book from a book : ENG 260 SUNY Buffalo State College differentiate a children`s book from a book within the adult genre. Is there something about "pictures" within literature
Identify a common theme among the metamorphosis : ENGL 220 Hunter College Identify a common theme (note the theme has to be one full sentence) among "the metamorphosis" by Franz Kafka, "the Guest" by Albert
Draw a dataflow diagram to show fans interaction on website : Draw a dataflow diagram to show fans interaction on website. fans are able to upload and download content as well as sign up for an account and leave reviews
What are two ways thomas paine motivated his audience : What are two ways Thomas Paine motivated his audience (the colonists and troops) to be optimistic about war with Britain

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd