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

Create a c program that computes the areas of rectangles

Create a C++ program that computes the areas of rectangles and tells the user which rectangle has the greatest area, or if the areas are the same. Create a C++ program that calculates the gross cost and net cost for call ...

In an 80211 communication the size of the payload frame

In an 802.11 communication, the size of the payload (frame body) is 1200 bytes. The station decides to fragment the frame into three fragments, each of 400 payload bytes. Answer the following questions: a. What would be ...

In some applications particular information needs to be

In some applications, particular information needs to be retrieved from a list with a much higher frequency than other information. Under these conditions the best way to arrange the list is to put the most frequently re ...

Given that all ascii codes are less than 128 design an

Given that all ascii codes are less than 128, design an algorithm that reads a given set of data and decides whether or not it may contain decimal data.

The task this week is to complete the following 2

The task this week is to complete the following 2 structures using a linked list: Stack Queue Assume the occurrence of a linked list node is represented by the object "Node" and its "Data" and "NextRef" attributes. Part ...

1 provide to string and equals methods for the question and

1. Provide to String and equals methods for the Question and Choice Question classes of How To 10.1. 2. Implement a subclass Square that extends the Rectangle class. In the constructor, accept the x- and y-positions of t ...

The isvalidsource function can be used to evaluate a c

The isValidSource() function can be used to evaluate a C++ source file, but it is incomplete. Brackets encountered inside comments and literal strings would not be paired with those found elsewhere in the program. (a) C+ ...

Write a windows application that allows the user to explore

Write a Windows application that allows the user to explore the knapsack problem. The user should be able to change the capacity of the knapsack, the sizes of the items, and the values of the items. The user should also ...

1 the maximum window size of the tcp was originally

1. The maximum window size of the TCP was originally designed to be 64 KB (which means 64 × 1024 = 65,536 or actually 65,535). Can you think of a reason for this? 2. What is the maximum size of the TCP header? What is th ...

1 what is the most common form of violation of intellectual

1. What is the most common form of violation of intellectual property? How does an organization protect against it? What agencies fight it? 2. What are the various types of force majeure? Which type might be of greatest ...

  • 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