EEEE1001 Computer Aided Engineering - Assignment Problem

Assignment Help Other Engineering
Reference no: EM132407578

EEEE1001: Computer Aided Engineering, University of Nottingham, UK

1. Overview of task

This task is designed to show you how to produce the material required for the successful development of a small piece of software (the coding of which may be done by a third party).

As such, instructions (both written and associated diagrams such as flowcharts) need to be unambiguous. In addition, sufficient test data must be supplied to allow the code to be tested at function level (the individual parts) and at system level.

When designing (and writing) code you should remember a few key points

The code should be written using ‘best practice' e.g.

o Remembering to use comments

o Good indenting

o Sensible variable/function names

Where input is required from the user you should validate this to ensure it is ‘fit for purpose' e.g.

o If the user is required to enter a length/resistance check it is ≥ zero

o If a range is specified, ensure the value entered is within this.

Error checking should be used e.g.

o If a file is required to be opened, was this successful? If not - what should be done?

o If memory is to be allocated dynamically, was this successful? - what happens if not?

2. The Task

Consider a projectile fired from a cannon with velocity Vo at the angle α as shown in figure 1.

320_Graph.jpg

Figure 1 – Projectile fired from a cannon

These values can be resolved into two separate velocities, one horizontal VX and one vertical VY , as given by:

VX = Vα cos(α)

VY = Vα sin(α)

It is then possible to calculate the horizontal and vertical components of the projectile at time t by using the following two equations:

x = vx .t
y = vyt + ½ at2

You may assume that a = -9.81ms-1 (The value is negative as we are opposing gravity).

2.1 Requirements (to be reflected in your flowchart & other material)

Documentation (primarily a flowchart & test data) are to be created to ensure the following tasks are performed. Note that in some cases you will need to specify the exact message to be displayed (e.g. for an invalid input) which should then be validated through test cases.

(a) The application should prompt the user to enter the firing angle and velocity of the projectile.

NOTE: Suitable error checking should be included to ensure that the values entered are appropriate to the task.

Where they are not, the user should be informed of the correct range(s) and the application is to terminate.

(b) Functions (external to main() ) are to be used to resolve the firing angle into the horizontal and vertical components. These values are to be displayed on the screen at a suitable precision.

(c) Design a suitable function (external to main() ) that determines the time of flight (TOF) after which the projectile will return to ground level (i.e. when y=0). Display this value on the screen at a suitable precision.

(d) Display the horizontal and vertical distances of the projectile for the duration of the flight (i.e. t=0 to t=TOF) at 10 equally spaced intervals (which include t=0 & t=TOF).

You may wish to use sub processes (mini flowcharts) for the functions - these indeed would be ideal as part of a larger project as then individual developers/programmes could work on these - bringing the parts together to form the finished application.

2.2 Development of code

For this exercise you DO NOT need to submit your code (this exercise focuses on the design of code).

Reference no: EM132407578

Questions Cloud

How does business rule differ from product requirement : What is the reason for using each of the following groups in requirements elicitation? How does a business rule differ from a product requirement?
How can a project lead continually challenge the team : How can a Project Lead continually challenge the team to make sure project overhead reflects what is really required to get the work done?
Accommodate work inspections and potential rework : How can a Project Lead develop a WBS that provides the flexibility to accommodate work inspections and potential rework to ensure work
What specifically will you tell her about : What specifically will you tell her about one step you would take with managers and one step you would take with employees?
EEEE1001 Computer Aided Engineering - Assignment Problem : EEEE1001 Computer Aided Engineering Assignment Help and Solutions, University of Nottingham, UK-How to produce the material required for successful development.
Valuable in collecting both live memory images : Go online and research some tools that would be valuable in collecting both live memory images and images of various forms off media.
What are some concerns of implementing a new database : RDBMS are currently very popular, and many are available in the marketplace. The application that specific RDBMS are most appropriate for depends.
COMP 20002 Fundamentals of Relational Database Management : COMP 20002 Fundamentals of Relational Database Management Assignment Help and Solution, Middle East College - Assessment Writing Service - Apply normalization
What is the lowest probability of a correct guess : A contestant thinks his guess will be right 50% of the time. Should he play? What is the lowest probability of correct guess that would make playing profitable

Reviews

Write a Review

Other Engineering Questions & Answers

  Demonstrate that an angle ply laminate has given

Demonstrate that an angle-ply laminate has A16 = A26 = 0 using an example laminate of your choice. In which case D16 = 0? In which case D16 ?= 0?

  Draw a plan of a typical strip mine

Draw a plan of a typical strip mine showing all operational features and equipment.

  Compare the sequencing rules

Compare the following sequencing rules: FCFS, SPT, EDD, CR. (Show your supporting calculations below).

  Explain the operation of a multiplexer

Briefly explain the operation of a multiplexer.

  How you would envision the arduino enabling each feature

What are some other products and features of those products for which the Arduino would be a possible candidate as that product's microcontroller? Describe the products, features and how you would envision the Arduino enabling each feature/functio..

  What is the voltage reached at the end of one time constant

During the precharge interval, φ is lowered to 0 V. Estimate the time required to charge a bit line from 0 to 5 V. Use as an average charging current the current supplied by a PMOS transistor at a bit-line voltage halfway through the excursion of ..

  How many years would the pavement''s design life be reduced

If the number of 18-kip single-axle loads were to increase by 30%, by how many years would the pavement's design life be reduced?

  Read the scenario below and answer the following

read the scenario below and answer the following questionsyou are working on an office automation project in the

  Implementation of control strategies for the water twin tank

Prepare a written report on the design and performance of your control strategies-design and implementation of control strategies for the water twin tank process.

  What are environmental issues that australia is facing now

What are the two most severe environmental issues that Australia is facing now and how are these linked to climate change? How can Australia tackle this issue

  What is the limit on power that can be transmitted on line

What is the limit on power that can be transmitted on the line? What is the energy content of pulses propagating on the two infinitely long lines?

  Is the system a time-invariant system

For a system as follows: , repeat the same operations and answer the following questions: a) is the system a linear system. is the system a time-invariant system. Delta function and sampling

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