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

Assume that you are a judge for the malcolm baldrige award

Assume that you are a judge for the Malcolm Baldrige Award. Using Table 8.4 on in your text, how would you evaluate Crocs' for this prestigious award? Briefly describe the Baldrige Award. State each category of evaluatio ...

What elements do u think need to be inevitably considered

What elements do u think need to be inevitably considered when putting up a Data center?

You have a table that contains the following fields member

You have a table that contains the following fields: Member Last Name, Member First Name, Street, City, State, Postal Code, and Membership Fee. There are 75,000 records in the table. What indexes would you create for the ...

Review the processes of invention and innovation then

Review the processes of invention and innovation. Then, select a new product that you have been introduced to in the past 12 months. You are encouraged to research this new product using outside sources. You can use the ...

In unix-like operating systems there is both a api library

In Unix-like operating systems, there is both a API library function named read(), and asystem call referred to as read in the Unix documentation. However, Unix system calls do notactually have names like a library funct ...

Using the assumptions of exercise 2224 suppose we run a

Using the assumptions of Exercise 22.2.4, suppose we run a three-pass Multistage Algorithm on the dataset. Assuming that on the second pass there are again 100,000 buckets, and the hash function distributes pairs randoml ...

Consider your home school or current place of employment

Consider your home, school, or current place of employment. What would you do to increase your organization's physical security? Try to think of the most cost-effective measures that would have the biggest impact. You're ...

Suppose you have just joined a large financial services

Suppose you have just joined a large financial services company as the head of IT and are asked to create a formal code of ethics for IT. What steps would you take to research this, and what resources would you consider?

Laws regulations and formal requirements are part of every

Laws, regulations, and formal requirements are part of every corporate environment and need to be defined and/or distributed within the workplace for employee awareness.Define and describe the differences between policie ...

An interactive system using round-robin scheduling and

An interactive system using round-robin scheduling and swapping tries to give guaranteed response to trivial requests as follows: After completing a round robin cycle among all ready processes, the system determines the ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate