{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

EC327 2009 HW2

EC327 2009 HW2 - float viii double Problem 2-4[10 points...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EC327 Introduction to Software Engineering HW #2 – Due Monday Oct. 05, 2009 Name: ___________________ BUID: ___________________ Homework guidelines: You are expected to do individual work on homework assignments. They are a learning tool to reflect with greater depth on some of the concepts discussed in class. Homework should be handed in during class on the due date. Please use extra sheets as necessary and staple them to this grading sheet. Problem 1 [24 points] Please write a short C program that displays the range of values that can be assigned to the following data types. For example, unsigned byte should show a range of 0x00 to 0xFF. Please make sure to include your code. i. char ii. unsigned byte iii. short int iv. int v. unsigned int vi. long vii.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: float viii. double Problem 2-4 [10 points each, 30 points total] Please complete problems 2, 4, 7 of Chapter 3, and include a printout of your code. Problem 5 [46 points] Write a program that prompts the user to enter an integer, and then converts that integer into its ASCII equivalent without using any of the standard string C libraries . Your code must use a case statement to lookup relevant ASCII values, and use a while loop to iterate through the digits. Please provide both the code and its printout. Problem 6 [Quiz 1 Extra Credit – 15 pts, maximum total points for Quiz 1 remains 20 pts] Extend Problem #5 to prompt a user for a decimal number and convert that into its ASCII equivalent. Score: _______ Extra credit towards Quiz 1: _______...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern