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

1 what is a footprint2 what is the relationship between the

1. What is a footprint? 2. What is the relationship between the Van Allen belts and satellites? 3. Compare an uplink with a downlink. 4. What is the purpose of GPS? 5. What is the main difference between Iridium and Glob ...

1 discuss four access methods giving the weaknesses of

1. Discuss four access methods, giving the weaknesses of each. 2. Discuss the many ways in which access can be abused. 3. Is it possible to implement full distributed authorization? What will be involved? 4. Web authoriz ...

Can you please help me to write a cover letter applying for

Can you please help me to Write a Cover Letter applying for an IT position in Computer Programming.

Assignmentpart ithis assignment requires you to write a

Assignment Part I This assignment requires you to write a paper to discuss your experience of human-computer interface. This paper should cover but not limited to topics such as what features you find are most user frien ...

Assignment questions -question 1 read the scenario in

Assignment Questions - Question 1: Read the scenario in Appendix 1 (Pickerings Properties). (a) List the functions of the system, as perceived by an external user. (b) List the external entities. Note that because we are ...

Create two pairs of sets using both the hash table

Create two pairs of sets using both the hash table implementation and the bit array implementation. Both implementations should use the same sets. Using the Timing class, compare the major operations (union, intersection ...

1 assume a 64 kib direct-mapped cache with a 32-byte block

1. Assume a 64 KiB direct-mapped cache with a 32-byte block. What is the miss rate for the address stream above? How is this miss rate sensitive to the size of the cache or the working set? How would you categorize the m ...

1 develop an equation that computes how many links in the

1. Develop an equation that computes how many links in the n-cube (where n is the order of the cube) can fail and we can still guarantee an unbroken link will exist to connect any node in the n-cube. 2. Compare the resil ...

1 determine the least upper bound and greatest lower bound

1. Determine the least upper bound and greatest lower bound for the pair of complex integers a and b in the subset C´ used in the examples. 2. Prove that the set of all subsets of a given set S (called the power set of S ...

1 in an internet we change the lan technology to a new one

1. In an internet, we change the LAN technology to a new one. Which layers in the TCP/IP protocol suite need to be changed? 2. Assume that an application-layer protocol is written to use the services of UDP. Can the appl ...

  • 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

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

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen