1) Create a program that subtracts a withdrawal from a Savings Account, and returns the following
on the screen:
Starting Balance (This is decided by you)
Amount withdrawn (User input)
If the withdrawal
print "Please enter the frist number "
a = 59
print "Please enter the second number "
b = 125
puts "First number to hex and binary "
print "%02x 0 %08b \n" % [a, a, a]
puts "Second number to hex and binary "
print "%02x 0 %08b \n" % [b, b, b]
Lab 6 Methods
We want to try creating our own methods or subroutines small programs inside another
Once we have them, we can use them any time we need to.
Lets try a simple method:
This is placed at the beginning of the pr
In this session well go over a few routines weve not given enough time to in previous sessions.
We have had instances where we are looking for a certain criteria among several criteria.
When weve tried this in the past, we have used several if statements
Lets begin by creating a simple program.
Open Note Pad or any text-editor you like.
Type in the following:
Save the program:
File Save As save it to a location change the file type to All Files
the extension is impor
In this lab, we want to manipulate text strings
We will write the program in a text-editor (notepad is fine, some people like J-edit, any one is fine).
Save the file as:
Change the File Type selection to A
There are hundreds of programming languages used today.
Which are the most in demand by employers, and what do they do?
According to Mashable.com the 10 most desired by employers are:
1) Java uses classes and Object Oriented Programming.
Its very accommod
IT 211 Second Project
This project is about writing the program to capture the input from the user and determine how much
will hotels cost for planning a vacation.
There are four hotels, and the user indicates which one (or more) and for how many nights: