CSC 3501 Chapter : Project 1

63 views3 pages
15 Mar 2019
School
Course
Professor

Document Summary

In this assignment you will become familiar with doing basic bit-level operations, and get further practice with unix-style programming. First, create the directory prog1, which will be used for submission. Change to this directory, and issue the following command to get the files you need: cp ~cs3501_lee/cs3501_f15/p1/* . View and understand the provided makefile and tester. c so that you can write your own in the future. You will write two functions prototyped below in the file int2bitstr. c: void int2bitstr(int i, char *str); int get_exp_value(float f); The first character in the string will be the most significant bit from i, and the last non-null character will be the least significant. You must use bit-level operations to determine whether a character should be a zero or one. The only allowed integer arithmetic is that of the loop itself, which must not do this calculation. Switch statements, function calls, and macro invocations.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions