Semester Schedule – COSC 1315-091 / ITSE-2317-090 (JAVA)

 

Announcements:

http://www.accd.edu/pac/htm/Current/academics/depts/science_adv_tech/cis/help/

 

 

 

 

Week

Start

Date

Textbook
Chapter

Topic and in-class Activities
(Following UTSA CS 1063)
Please note that links leading to UTSA material contain optional supplementary material

 

Hands-on activities

Related
programs

Assignments
 

(homework is due on Friday midnight
of the given week)

 

8/25

3.1-3.3

Course Orientation, The Web, and JBuilder

(ignore download instructions found here)

  • Extend helloWorld" program so that each word is written on a separate line. Do this first with 2 print(ln) statements, and then with one only.

 

Update: The newest compiler download instructions can be found here

 

 

9/1

3.4,3.7

  • Extend tax1 program so that the user can enter number of items as well. Display pre-tax total, tax amount and tota in a form of store receipt.
  • Write the program to solve the "returned change" problem. Use % and operators.

tax1

 

9/8

 

  • Extend simpleQuad program so that (1) discriminant is calculated only once and (2) output resembles the following form: Solutions to equation 1.0*x^2 + 5.0*x + 6.0 = 0 are -2.0 and -3.0. The program has to work for any a,b and c.
  • Implement the "Heron formula" program

simpleQuad

9/15

3.6

  • Extend simpleQuad, so that the user can enter the coefficients.
  • Write the program that accepts 2 numbers as input, displays the larger one, or (if they are equal) informs the user that the numbers are equal
  • Write the program that converts letter grade to Grade Points. Use if statements

formatColumns
ifMax3
ifTricky

9/22

4.1-4.4

  • Extend ifTax program so it checks f income is negative (in which case you should stop processing) and calculates effective tax percentage (tax/income*100)
  • Write a program that accepts age and income. Write a message such as:       "You are old and rich" (for income > 100,000 and age > 70), "You are poor and old" (for income < 100,000 and age > 70) etc. Write an error message if either income or age is negative. Use constants OLD_AGE, and LOTS_OF_MONEY

ifExpon
ifTax
ifGradeConv



TAX TABLE

9/29

3.3 (strings)

  • Write the program that converts letter grade to Grade points. Use switch statement
  • Redo tax1 program with improved formating
  • Extend the milDiff program so that there is no restriction on minutes (still assume that the first time is larger than the second). Also, quit if hours and minutes are not within allowable range, and do not hardcode the times. If you still have time, make the program handle seconds as well.  Question: Where does "528" come from?

switchGrades
switchBanana
milDiff
betterFormatColumns
stringEqu
 

 

10/6

 

TEST 1 (25%)

  •  

 

 

10/13

5.1

  • write cosX program using sinEx as a template (cos(x) = 1 - x^2/2! + x^4/4! ..)

forExamples
sinEx

Quadratic equation (9%)

10/20

5.2,5.3

  • modify maxN so that it displays min as well as max value
  • modify box program so that it produces a nicer looking box, such as:

        +----+
        |    |
        +----+

  • modify box program so that it produces a row of cells such as:

        +----+----+----+
        |    |    |    |  
        +----+----+----+

maxN
box

10/27

5.4,5.5

  • modify whileAvg program so that the user is able to enter the weight of each grade. Do not ask the user whether they want to enter another grade. Instead make a decision based on the total of weights being equal to 100%. If at any time this total exceeds 100%, enter into an error loop and let the user know what the max remaining grade weight is

whilePow
whileAvg

11/3

7.6

  • in methodTable program, make your table look the way you did in box program
  • extend the methodTax program so that it includes all 4 schedules
  • rewrite betterWhileAvg in the same way you did whileAvg. Make sure that all error loops are methods

methodFact
methodTable
methodTax
betterWhileAvg

 

11/10

8.1

  • rewrite your homework Grades1 so that it uses arrays. Your main needs to contain three method calls:

          inputGrades
          calculateStudentAvg
          displayStudentAvg

  • Note: xxxStudentAvg methods should process only a single student. That means that your main program will still have the main student loop.

arrayReverse1
arrayLookUp
reverse2
methodArray

11/17

9.1

Sorting

  • convert one of the sort algorithms so that it can sort strings and where user can choose descending or ascending sort order. Let the user enter the names. Your main program should consist of only 3 methods :

        inputNames
        sortNames
        displaySortedNames

bubble
selection
 

 

11/24

9.2

Other array algorithms

  • Rewrite all (well, at least some) array algorithms so that they use a.length field instead of separate count variable n. Do they have the same value?

 

 

12/1

 

Study for final

 

12/8-12/10

 

 

search
insert
delete

Grades 2 (10%)

* Please notice that while browsing the Java course website (reading lectures (UTSA), assignments  etc.), you might encounter some other test dates, due dates etc. These are not applicable to our section. This and only this page determines our schedule !
Back to home page