Showing posts with label homework. Show all posts
Showing posts with label homework. Show all posts

Monday, December 12, 2011

Reading assignment - chapter 10

Read chapter 10, Applications of Arrays (Searching and Sorting) and the vector Type.

Due Date
Monday, December 12th, 6:00pm

Monday, November 28, 2011

Reading assignment - chapter 9 cont'd

Read chapter 9, Arrays and Strings.

Due Date
Monday, December 5th, 6:00pm

Saturday, November 26, 2011

Reading assignment - chapter 9

Read chapter 9, Arrays and Strings, pages 496-502.

Due Date
Monday, November 28th, 6:00pm

Reading assignment - chapter 8

Read chapter 8, User-Defined Simple Data Types, Namespaces, and the string Type.

Due Date
Monday, November 28th, 6:00pm

Sunday, November 6, 2011

Reading assignment - chapter 7

Read chapter 7, User-Defined Functions II.

Due Date
Monday, November 7th, 6:00pm

Monday, October 31, 2011

Homework 4 - is vowel

You are to complete exercise 2, p 340, writing a program which contains a user-defined function, isVowel. This is its header:

   bool isVowel(char c)

The user should be prompted to enter a character. Your function isVowel must determine whether the character is a vowel or not. Your code should recognize both uppercase and lowercase vowels.

Tuesday, October 25, 2011

Reading assignment - chapter 6

Read chapter 6, User-Defined Functions I.

Due Date
Monday, October 31st, 6:00pm

Monday, October 17, 2011

Homework 3 - guess

You are to write a program that calculates a random number from 1 to 10. Ask the user to guess the number. If the user guesses correctly, display a congratulatory message. If the user displays an incorrect answer, give the user two more tries. If after three attempts the user still has not guessed the number, display a message to that effect and terminate the program.

Friday, October 14, 2011

Homework 2 - random number -
      alternate input option

If you would like to write an enhanced version of the second homework assignment, you can read in a char (instead of an int) and you can switch on the character entered. If you apply the tolower() function to that input character, you can make your program transparently deal with case sensitivity:

c = tolower(c);

Monday, October 10, 2011

Grades

Final grades for this class will be determined according to the following criteria:
  • Test average
  • Lab assignments
  • Homework

Homework 2 - random number

You are to write a console application that generates a random number (from 1 - 10) for the user. Display a short menu to the user, informing them which input will generate a random number and which input will terminate the program. Your solution must include a do-while loop and a switch statement.

Sunday, October 9, 2011

Reading assignment - chapter 5

Read chapter 5, Control Structures II (Repetition).

Due Date
Monday, October 10th, 6:00pm

Code submission

I am using Bloodshed's Dev-C++ IDE to test your code. When you submit your homework and your labs from now on, you will need to send me your whole project, not just your .cpp file(s).

Monday, October 3, 2011

Homework 1 - days in month

You are to write a program that reads in the month and year and displays for the user the number of days in that month. You must use assert to error trap the input and you must be able to determine if the year entered is a leap year.

Deliverables

All programming assignments must be submitted by emailing the c++ source code file(s) to Professor Mayo at cmayo@brookdalecc.edu.

You will be submitting source code files, not executable files. Source code files must be attachments, not pasted into the body of the email. c++ source code files must have the .cpp extension, not .txt or any other extension.

Grades

Final grades for this class will be determined according to the following criteria:
  • Test average
  • Lab assignments
  • Homework

Sunday, October 2, 2011

Reading assignment - chapter 4

Read chapter 4, Control Structures I (Selection).

Due Date
Monday, October 3rd, 6:00pm