Lab6 - Lab 6: Decimal Converter Worth 50 points - 10 extra...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 6: Decimal Converter Worth 50 points - 10 extra credit Due by Sunday 11:59pm, February 10 th , 2009 Lab Objective: You know how to get character input from the user. Now you want to be able to input and output integer values. Here are the specifications: Print out a greeting message. Ask for a decimal number followed by a carriage return. Expect the user to only input valid digit characters (0-9) and a possible leading negative sign (-). Convert the string of digits entered into a two‟s complement number (you will have to do something special for the negative sign). Print the number out in binary. Pretty straight forward but it will require the use of loops and procedure calls. Lab Requirements: You must do the following for this lab: Create a flow chart for your program first, submit this to the TA/tutor when you demonstrate, I have included an example of one called Lab6_Flowchart.pdf Create the following procedures: 1. A get decimal integer procedure, it will read a character string
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/14/2009 for the course CMPE 12/l taught by Professor Bazeghi during the Fall '09 term at University of California, Santa Cruz.

Page1 / 4

Lab6 - Lab 6: Decimal Converter Worth 50 points - 10 extra...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online