Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Computer Engineering Expert

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

problem 1:

A) Program 1:

a) Generate 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 change values from degrees to radians then convert values back to display in degrees.
c) Use looping such as for and while statement.
d) Use conditions (if statement) to avoid 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.

B) Program 2:

a) Generate a list of complex numbers using the following limits:

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

 

b) find out 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

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

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

B) Demonstrate the effect of changing variables, constants and complex data types on the time required to run the program.

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

problem 3: For the program developed in task 2:

A) 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.

B) 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.

problem 4:

A) Programming errors can be classified as semantic and syntax errors. Define 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.

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

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M95276

Have any Question? 


Related Questions in Computer Engineering

Answer all questions and for all questions show the step

Answer all questions and for all questions, show the step using algorithm. Q1. Running time analysis (a) Given T(n) = 5T(n/2) + n 2 . Find out its asymptotic tight bound using the Master Theorem. (b) Prove the previous a ...

Computer security system security assignment objectivesthe

COMPUTER SECURITY (SYSTEM SECURITY) ASSIGNMENT Objectives: The main objective of this assignment is for the students to understand the security mechanisms in Unix-like operating systems and their interplay with software ...

Assignment1 we want to sort arpjmew into ascending ordera

Assignment 1. We want to sort (A,R,P,J,M,E,W) into ascending order. A) How many comparisons are there if we use BUBBLESORT Algorithm? B) Using the MergeSort Algorithm, How many times the function merge (11,12) will be in ...

1 assuming there are no stalls or hazards what is the

1. Assuming there are no stalls or hazards, what is the utilization of the data memory? 2. Assuming there are no stalls or hazards, what is the utilization of the write-register port of the "Registers" unit? 3. Instead o ...

1 design and implement a timedate adt that can be used to

1. Design and implement a TimeDate ADT that can be used to represent both a date and time as a single entity. 2. A line segment is a straight line bounded by two endpoints. The Line Segment ADT, whose operations are desc ...

1 intrusion detection hybrids are getting better research

1. Intrusion detection hybrids are getting better. Research the products on the market and comment on them as far as their interfaces are concerned. 2. Discuss how exploits can be used to penetrate a network. Research an ...

In 300 words or more plesae answer the followinginformation

In 300 words or more plesae answer the following: Information technology professionals face many ethical obligations, conflicts, and dilemmas. Discuss ethical issues an IT professional might face. Consider the new trends ...

Prove that the magnitude of determinant of a unitary

Prove that the magnitude of determinant of a unitary transform is unity. Also show that all the eigenvalues of a unitary matrix have unity magnitude Show that the entropy of an N x 1 Gaussian random vector u with mean p. ...

1 mapleland is considering expanding the mfn to include

1. Mapleland is considering expanding the MFN to include wireless access for its residences. What additional investigation will you do to prepare for a citywide wireless network? 2. What security concerns do you have for ...

Create a view integration to represent the combination

Create a View Integration to represent the combination between the conversion process with the acquisition payment, human resource and revenue process based on the REA patterns described on the textbook and slides for ea ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro