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

Design the following functions and call them in main1 int

Design the following functions and call them in Main 1) int get_student_data(void): This function asks the user to enter the student ID, Quiz, Test, Recitation, Final scores etc and prints them in a file "Stu_score.txt". ...

Assignment the university of wonderland library

Assignment: The University of Wonderland Library Management Consider the Library Management case study covered in Chapter 1 of the textbook where the fictitious University of Wonderland (UWON) wants to convert its librar ...

Implement the linear quotient hashing method described in

Implement the linear quotient hashing method described in note 6 and compare its performance with the algorithm above for a load factor of 80%. Use a random number generator to provide the key set. Make tests for sets of ...

Assume a tcp server is expecting to receive byte 2401 it

Assume a TCP server is expecting to receive byte 2401. It receives asegment with the sequence number 2401 that carries 500 bytes. If the server has no data to send at this moment and has not acknowledged the previous seg ...

Suppose you have a hdd that with an average seek time of 12

Suppose you have a HDD that with an average seek time of 12 msec and a rotational speed of 3000 RPM. How long would it take to transfer 102400 bytes. Assume 500 sectors on a track, and each sector contains 512 bytes.

1 we say that a router in dvmrp creates a shortest-path

1. We say that a router in DVMRP creates a shortest-path tree on demand. What is the meaning of this statement? What is the advantage of creating shortest path trees only on demand? 2. Does RPF actually create a shortest ...

1 search your librarys database and the web for an article

1. Search your library's database and the Web for an article related to individuals violating their organization's policy and being terminated. Did you find many? Why or why not? 2. Go to the (ISC)2 Web site at www.isc2. ...

Suppose a vending machine contains products and users

Suppose a vending machine contains products, and users insert coins into the vending machine to purchase products. Draw a UML diagram showing the dependencies between the classes VendingMachine, Coin, and Product.

Using figure 2419 explain how flow control can be achieved

Using Figure 24.19, explain how flow control can be achieved at the sender site in TCP (from the sending TCP to the sending application). Draw a representation.

1 explain the basic technology that makes residentialsoho

1. Explain the basic technology that makes residential/SOHO firewall appliances effective in protecting a local network. Why is this usually adequate for protection? 2. What key features point up the superiority of resid ...

  • 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