Computer programming techniques

Assignment Help C/C++ Programming
Reference no: EM131466

Task 1

Write, compile and run the following two programs using C/C++ programming method. Select the appropriate defined data types to carry out the calculations:

Program 1:

a. Prepaare a list of sine and cosine values for angles from 0O to 360O using float (real) data types.

b. Knowing that processors deal with radians and not degrees, remember to modify values from degrees to radians then convert values back to show in degrees.

c. Use looping such as for and while statement.

d. Use conditions (if statement) to remove dividing on zero and limit the output values between e-5 to e+5.

e. Using simple input and output statements, input program's input data from the screen and print out the output data into the screen.

Program 2:

a. Prepare a list of complex numbers using the following limits:

i. Real values from 0 to 10 using a step of 2 (2 increment).
ii. Imaginary values from 0 to 10 using a step of 2 (2 increment).

b. determine the amplitudes and the angles in degrees

c. Using simple input and output statements, input program's input data from the screen and print out the output data into the screen For both programs, provide source codes, screenshots for input/output data and screenshots of running programs

Task 2

Prepare a program from a design and use appropriate functions/procedures.

For the engineering problem given in this task produce the followings:

1 Construct a C/C++ program and use appropriate functions and procedures.

2 Show the effect of changing variables, constants and complex data types on the time required to run the program.

3 Program could be constructed using statements and modules within the main program. Data should be passed effectively between different parts of the main program

Task 3

Prepare technical documentation for a pre described program application

1 Produce a complete documentation including the user interface. This must be used as user guide to show the input data required and their types, their range and a display of the source code name the user interface should also display the choice of output data and a user friendly display of the output data.

2 Produce a technical document that gives a clear guidance to the program user on the technical problem solved, the constants and variables being dealt with.

Task 4

Use appropriate methods for detecting errors.

1 Programming errors will be classified as syntax and semantic errors. Describe both types of errors and illustrate the difference between them. Produce a list of both types of errors that you faced in the program produced in task 2.

2 Produce a test documentation showing a procedure for the user to follow in testing the program before using it.

3 Change some of the variables in the developed program of task 3 to explain at least one logic error in the program. On compiling and running the program, illustrate the method used to detect the program errors. Illustrate how errors are found and how are they corrected.

Reference no: EM131466

Questions Cloud

Escher style tessellation : Escher style tessellation
Significance of the center of gravity : Define a value chain and the significance of the center of gravity.
Examine the behavior of airfoil : Write HW assignment written in Matlab airfoils have different C mc/4
Computer programming techniques : Construct a program from a design and use appropriate functions
Write a c++ program to find the intersection : Write a C++ program to find the intersection, A set is a collection of distinct entities regarded as a unit, being either individually specified or (more usually) satisfying specified conditions.
Write a program for checking a circle : Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.
Combinational logic devices for specific purposes : Interpret manufacturer's data sheet to select appropriate combinational logic devices for specific purposes
Addition and subtraction of numbers in binary : Addition and Subtraction of numbers in binary and round to the nearest decimal number with three significant decimal digits

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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