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

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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