Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSE 320 Fall 2018 Computer Project #6 Assignment Overview This assignment develops familiarity with the C programming language, the gcc compiler, integer bitwise operations, and

image text in transcribed

CSE 320 Fall 2018 Computer Project #6 Assignment Overview This assignment develops familiarity with the C programming language, the "gcc" compiler, integer bitwise operations, and floating point representation and arithmetic. It is worth 40 points (4% of course grade) and must be completed no later than 11:59 PM on Thursday, 10/18 Assignment Deliverables The deliverables for this assignment are the following files: proj06.makefile -the makefile which produces "proj06" proj06.support.c-the source code for your support module proj06.driver.c -the source code for your driver module Be sure to use the specified file names and to submit them for grading via the CSE handin system before the project deadline Assignment Specifications Some computer systems do not have floating point hardware: they have an Integer Unit, but not a Floating Point Unit. Thus, floating point operations on those systems must be performed using software. 1. You will develop the C function listed below: double add ( double, double) The two arguments are the double precision floating point values to be added, and the return value is the sum of those two values. The sum will be as accurate as possible Arguments which are denormal will be processed as the value zero. If either argument is the floating point value "not-a-number", function "add" will return that value. Otherwise, if either argument is the floating point value "infinity", function "add" will return that value Function "add" (and any associated "helper" functions which you develop) will constitute the support module. The functions in that support module will not call any C library functions, and they will not use any floating point operations. There is one exception: the functions may use the assignment operation to copy a floating point value from one variable to another 2. You will develop a driver module to test your implementation of the support module. The driver module will consist of function "main" and any additional helper functions which you choose to implement. All output will be appropriately labeled. Assignment Notes 1. Your driver module and your support module must be in separate source code files. 2. Your source code must be translated by "gcc", which is a C compiler and accepts C source statements. CSE 320 Fall 2018 Computer Project #6 Assignment Overview This assignment develops familiarity with the C programming language, the "gcc" compiler, integer bitwise operations, and floating point representation and arithmetic. It is worth 40 points (4% of course grade) and must be completed no later than 11:59 PM on Thursday, 10/18 Assignment Deliverables The deliverables for this assignment are the following files: proj06.makefile -the makefile which produces "proj06" proj06.support.c-the source code for your support module proj06.driver.c -the source code for your driver module Be sure to use the specified file names and to submit them for grading via the CSE handin system before the project deadline Assignment Specifications Some computer systems do not have floating point hardware: they have an Integer Unit, but not a Floating Point Unit. Thus, floating point operations on those systems must be performed using software. 1. You will develop the C function listed below: double add ( double, double) The two arguments are the double precision floating point values to be added, and the return value is the sum of those two values. The sum will be as accurate as possible Arguments which are denormal will be processed as the value zero. If either argument is the floating point value "not-a-number", function "add" will return that value. Otherwise, if either argument is the floating point value "infinity", function "add" will return that value Function "add" (and any associated "helper" functions which you develop) will constitute the support module. The functions in that support module will not call any C library functions, and they will not use any floating point operations. There is one exception: the functions may use the assignment operation to copy a floating point value from one variable to another 2. You will develop a driver module to test your implementation of the support module. The driver module will consist of function "main" and any additional helper functions which you choose to implement. All output will be appropriately labeled. Assignment Notes 1. Your driver module and your support module must be in separate source code files. 2. Your source code must be translated by "gcc", which is a C compiler and accepts C source statements

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions