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

  Develop use case diagrams sequence diagram and class diagram

Software Development Specialist to develop these functionalities. Develop use case diagrams, sequence diagram and class diagrams, as appropriate.

  Kitchen gadgets sells a line of high-quality kitchen

kitchen gadgets sells a line of high-quality kitchen utensils and gadgets. when customers place orders on the companys

  Critically analyse and develop artefacts to define processes

ITECH7410 - Critically analyse and use complex decision making to research and determine the appropriate Software Engineering tools and methodologies to utilize

  Why might system software upgrades not be installed

What are the differences between documentation for end users and system operators?

  Familiarize basic operating system knowledge

Familiarize basic operating system knowledge, for some of you who didn't have experience with Linux or command line

  Describe challenge of cost estimation for software projects

Describe the challenges of cost estimation for software development projects where requirements are usually not clear in early stages of the project.

  Develop your research paper

Find a scholarly article in your field from a different publication than you have looked at previously. Working paragraph by paragraph

  Software development practices

Agile Development is a blanket term that covers a wide variety of software development practices many of which have been codified and documented.

  Draw diagram to model software system that you are familiar

Create 3 to 4 diagrams to model a software system that you are familiar with and understand. You can use various software applications (e.g., Visio, UML, etc.) to prepare the diagrams.

  Takes to execute a task

Given a list of numbers, assume each number represents the amount of time it takes to execute a task. How would you dive the tasks across

  Privacy-preserving data mining and k-anonymity

Discussion on how the proposed method/approach addresses and mitigates privacy concerns in data mining - It has drawn significant amount of interest

  What are some ways to motivate project teams

Are the ideas presented in the article "Using Earned Value Management Indexes as Team Development Factor and a Compensation Tool" applicable to your organization? Why or why not?

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