This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 9) Divide by 2. For your output: Display the result after every step. You do not need to check for valid input each time. For the final answer, start the line with "Final Answer: " then print out the sum ON THE SAME LINE. A sample run of this program would look like: What are the first 3 digits of your phone number? 805 Multiply by 80 64400 Add 1 64401 Multiply by 250 16100250 What are the last four digitals of phone number? 5555 Add in the last four digits of phone number 16105805 Add in the last four digits of phone number again 16111360 Subtract 250 16111110 Divide by 2 Final Answer: 8055555 This assignment will be turned in electronically via turnin...
View
Full
Document
This note was uploaded on 12/27/2011 for the course CMPSC 30 taught by Professor Franklin during the Fall '09 term at UCSB.
 Fall '09
 FRANKLIN

Click to edit the document details