![]() | ![]() | ![]() | 3 Assignments |
Plan on reading a chapter in the textbook each week. There will be a test on the chapter the following week. There will be no test the first week of class. In this class the test will usually be on Thursday.
CIS100 Lab 3 your-name
CIS100 Lab 4 your-name
CIS100 Lab 5 Project 2 your-name
CIS100 Lab 6 Project 3 your-name
CIS100 Lab 7 Project 4 your-name
CIS100 Lab 8 Project 5 your-name
The following Qbasic commands will be helpful:
SCREEN 12
(0,0) -- (320,0) -- (640,0) | | | (0,230) -- (320,230) -- (640,230) | | | (0,460) -- (320,460) -- (640,460)
LINE(X1,Y1)-(X2,Y2),color
LINE -(X1,Y1),color
LINE(X1,Y1)-(X2,Y2), color, B
CIRCLE(X,Y),radius,color
PAINT(X,Y),color,boundry
The colors are as follows:
0 Black 1 Blue 2 Green 3 Cyan 4 Red 5 Magenta 6 Yellow 7 White 8 Gray 9 Light Blue 10 Light Green 11 Light Cyan 12 Light Red 13 Light Magenta 14 Light Yellow 15 Bright White
FOR
loops for X & Y.
LET S=.1 FOR X = 0 TO 620 STEP 60 FOR Y = 0 TO 420 STEP 40 Your House Program NEXT Y NEXT X
PAINT
your houses different colors
using the MOD
operator.
PAINT (210*S+X,311*S+Y) (X+Y) MOD 15, 15
Table 5.12 gives the 1998 federal income tax rate schedule for a single taxpayers. Write a program that requests the taxable income and calculates the federal income tax. Use a subprogram for the input and a function to calculate the tax.
$0 $25,350 15% $0 $25,350 $61,400 $3,802.50 + 28% $25,350 $61,400 $128,100 $13,896.50 + 31% $61,400 $128,100 $278,450 $33,573.50 + 36% $128,100 $278,450 $86,699.50 + 39.6% $228,450
The Twelve Days of Christmas. Each year, Provident National Bank of Philadelphia publishes a Christmas price list. See Table 6.12. Write a program that requests an integer from 1 to 12 and then lists the gifts for that day along with that day's cost. On the nth day, the n gifts are 1 partridge in a pear tree, 2 turtle doves, ..., n of the nth item. The program also should give the total cost of all twelve days. A sample output is as follows:
![]() | ![]() | ![]() | 3 Assignments |