Task 1 write compile and run the following two programs

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

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: EM13347535

Questions Cloud

Project descriptionsauthentic assessment you will be given : project descriptionsauthentic assessment you will be given a scenario-based project that will require you to provide
Escher style tessellationselect any polygon that : escher style tessellationselect any polygon that tessellates.bull alter the polygon extensively using one or more of
Define a value chain and the significance of the center of : define a value chain and the significance of the center of gravity. please also give an example of a value chain from
Problem 1provide a listing of your code and comparison of : problem 1provide a listing of your code and comparison of the results from your code for cl cd cdf cdp and cmc4 with
Task 1 write compile and run the following two programs : task 1 write compile and run the following two programs using cc programming method. select the appropriate defined
Write a c program to find the intersection andor union of : write a c program to find the intersection andor union of two doubly linked lists using recursion. you are not allowed
1 checking for a circle on a line by itself your program : 1. checking for a circle. on a line by itself your program must either print is a circle yes or is a circle no
Task 1 interpret manufacturers data sheet to select : task 1 interpret manufacturers data sheet to select appropriate combinational logic devices for specific
1 add 12ten to 15ten in binary and then subtract 12ten from : 1. add 12ten to 15ten in binary and then subtract 12ten from 15ten in binary.2. using 4-bit numbers to save space

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implementation of sorting technique

Implementation of sorting technique

  1 write a c program that takes an eastern standard time

1. write a c program that takes an eastern standard time in hours minutes and secondsand prints it out in central

  Generate a two-dimensional array

Generate a two-dimensional array of integers of 10 rows by 10 columns that contains 100 random numbers between 0 and 9. Print out the array (well formatted) and do the following computations

  Calculates the sum of the cube roots of two integers.

Wrtie a program that calculates the sum of the cube roots of two integers. The program should use the following functions as well as a main funcion. 1) enter one positive value 2) compute the cube root of one integer 3) report the value of two intege..

  C programme to find the minimum and maximum value

write a c programme to find the minimum and maximum value each elements in each row ,to create table b,having 5 rows and 2 coloums,the first coloum of table b is the maximumvalue and thye second coloum is the maximum value in each row.

  Write a program to find out all 3-digit

Write a program to find out all 3-digit Narcissistic number. A number n is a 3-digit Narcissistic number if: (a) 100   n   999, (b) The sum of its own digits each raised to the power of 3 equals to itself. For example: 153 is a Narcissistic number ..

  Need a program that has the user enter a string

Need a program that has the user enter a string. The program will test to see if its a exact palindrome like "civic" or "level". then it should test if its an inexact palindrome like "a nut for a jar of tuna".

  Use the function to sort an array of 100 random element

Writing a C program to do a bubble sort. Use the function to sort an array of 100 random elements. Show the input array and the output array.

  Program that evaluates a infix expression

Program that evaluates a infix expression using stacks terminated by an equal sign. for example: (4-2)-5)/(2+1)-2))=the expression will contain single digit and the operators +, -, *,/. Make sure to consider the operator precedence.

  Use object oriented design to create a program to shuffle

Use object oriented design to create a program to shuffle and deal a deck of cards. Deal two, five card hands.

  Consider implementing subnetting to support three department

Consider implementing subnetting to support three departments within an organization. The three departments P, Q and R need support for 30, 40 and 60 hosts.

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