Difference between revisions of "Program a day"

From CompSciWiki
Jump to: navigation, search
(Week 11: More with Arrays)
(Beefed up the intro)
 
(46 intermediate revisions by 20 users not shown)
Line 1: Line 1:
<!--__NOEDITSECTION__-->
+
{{1010Chapter|ChapterNum= Program-A-Day
{{1010Chapter|Introduction=Practice your programming and problem-solving skills. Write a program for each (week) day you are in COMP 1010. |Overview=Find the programs listed for each day as well as the solutions]}}
+
|Picture=Wiki_array01.jpg
 +
|Introduction=As a programmer it is very important to practice your programming and problem-solving skills. Write a program for each (week) day you are in COMP 1010 by following through the list of programs below.
  
 +
__NOTOC__
 +
 +
|Body=
 
=Week 1: Getting Started=
 
=Week 1: Getting Started=
 
 
===[[Hello World]]===
 
===[[Hello World]]===
 +
===[[Alternate Hello World]]===
 
===[[Mad Lib]]===
 
===[[Mad Lib]]===
  
 
=Week 2: Primitive Data Types=
 
=Week 2: Primitive Data Types=
 
 
 
 
===[[Calculating Area]]===
 
===[[Calculating Area]]===
===[[Pythagoras]]===
 
 
===[[Converting Temperatures]]===
 
===[[Converting Temperatures]]===
===[[Sine Wave]]===
+
===[[Tip Calculator]]===
===[[Advanced Data Types]]===
+
===[[Food and Drink]]===
 
+
===[[Windchill]]===
=Week 3: If/Nested If Statements and Named Constants=
+
===[[ifless Grade Calculator|Sunday Stumper WARNING: Challenging]]===
  
 +
=Week 3: Math and String Methods, If Statements and Named Constants=
 
===[[Dimensions of a Can of Soup]]===
 
===[[Dimensions of a Can of Soup]]===
 
+
===[[Pythagoras]]===
 +
===[[Lie Detector]]===
 
===[[Days in a Month]]===
 
===[[Days in a Month]]===
 
 
===[[The Labyrinth]]===
 
===[[The Labyrinth]]===
 
+
===[[Know Your Standards]]===
 
===[[Letter Grade Conversion]]===
 
===[[Letter Grade Conversion]]===
  
=Week 4: While Loops - Do While Loops - For loops=
+
=Week 4: While and For Loops=
 
+
 
===[[Print Out the Alphabet]]===
 
===[[Print Out the Alphabet]]===
 
===[[Guess my Number]]===
 
===[[Guess my Number]]===
Line 34: Line 34:
 
===[[Convert this While to a For]]===
 
===[[Convert this While to a For]]===
 
===[[Print Powers of Two]]===
 
===[[Print Powers of Two]]===
 +
===[[Count the Alphabet]]===
  
=Week 5: Nested Ifs and Loops - String Methods - Debugging Techniques=
+
=Week 5: String Methods and Debugging=
===[[Debugging Practice]]===
+
===[[Leap Year Problem]]===
+
 
===[[Vowel Counter]]===
 
===[[Vowel Counter]]===
 +
===[[Leap Year Problem]]===
 +
===[[Debugging Practice]]===
 
===[[Secret Code]]===
 
===[[Secret Code]]===
 
===[[Radar Trap]]===
 
===[[Radar Trap]]===
Line 44: Line 45:
  
 
=Week 6: Problem Solving with Nested Loops=
 
=Week 6: Problem Solving with Nested Loops=
 
+
===[[Oh Rocket Tree]]===
===[[Rainfall Averager]]===
+
===[[Clock Simulation]]===
===[[Adding Two Matrices]]===
+
===[[Rainfall Averaging]]===
 
===[[Computing Prime Numbers]]===
 
===[[Computing Prime Numbers]]===
 
===[[Print a Calendar]]===
 
===[[Print a Calendar]]===
 +
===[[Cash Register]]===
  
 
=Week 7: Midterm Review=
 
=Week 7: Midterm Review=
 
+
===[[Personal Greeting]]===
===[[Week 1]]===
+
 
===[[Temperature Calculator]]===
 
===[[Temperature Calculator]]===
===[[Week 3]]===
+
===[[Days In A Month]]===
 
===[[Fibonacci sequence]]===
 
===[[Fibonacci sequence]]===
 
 
===[[Palindromes]]===
 
===[[Palindromes]]===
 
+
===[[Russian Roulette]]===
===[[Roulette]]===
+
  
 
=Week 8: Static Methods=
 
=Week 8: Static Methods=
 
+
===[[Print Numbers]]===
===[[Print Array]]===
+
 
===[[Add Area Code]]===
 
===[[Add Area Code]]===
 
===[[Fix Code Sample]]===
 
===[[Fix Code Sample]]===
Line 71: Line 69:
 
===[[Creating an Array]]===
 
===[[Creating an Array]]===
 
===[[Printing an Array]]===
 
===[[Printing an Array]]===
 +
===[[Equating Two Arrays]]===
 +
===[[Passing Arrays]]===
 
===[[Fibonacci Numbers]]===
 
===[[Fibonacci Numbers]]===
===[[Passing Arrays]]===
 
===[[Multi-dimensional Arrays]]===
 
===[[Equating Two Arrays]]===
 
  
 
=Week 10: Arrays and Methods=
 
=Week 10: Arrays and Methods=
 
 
===[[printArray Method]]===
 
===[[printArray Method]]===
 
===[[fillArray Method]]===
 
===[[fillArray Method]]===
 
===[[reverseArray Method]]===
 
===[[reverseArray Method]]===
 
===[[commissionCalculator]]===
 
===[[commissionCalculator]]===
 +
===[[Cellphone Texting]]===
  
 
=Week 11: More with Arrays=
 
=Week 11: More with Arrays=
Line 88: Line 85:
 
===[[Sales Report]]===
 
===[[Sales Report]]===
 
===[[Creating a grocery list]]===
 
===[[Creating a grocery list]]===
===[[Finding a class average]]===
 
===[[Game of Life]]===
 
  
 
=Week 12: Array Algorithms=
 
=Week 12: Array Algorithms=
Line 99: Line 94:
 
=Week 13: Problem Solving and Programming Examples=
 
=Week 13: Problem Solving and Programming Examples=
 
===[[Break This Combination]]===
 
===[[Break This Combination]]===
===[[ASCII Art Examples]]===
 
 
===[[Rock Paper Scissors]]===
 
===[[Rock Paper Scissors]]===
 
===[[Student Record List With Parallel Arrays]]===
 
===[[Student Record List With Parallel Arrays]]===
===[[String Manipulation]]===
+
===[[Top Secret]]===
 
===[[String Binary Search]]===
 
===[[String Binary Search]]===
 +
 +
|PChapterNum=1
 +
|PChapterLink=[[What is Programming?]]
 +
|NChapterNum=2
 +
|NChapterLink=[[Java Fundamentals]]
 +
}}
 +
 +
 +
{{Category:COMP 1010}}

Latest revision as of 15:12, 8 December 2011


Wiki 1010 Table of Contents

Wiki array01.jpg

Chapter Program-A-Day

As a programmer it is very important to practice your programming and problem-solving skills. Write a program for each (week) day you are in COMP 1010 by following through the list of programs below.


  Write a Program a Day Case Studies

Week 1: Getting Started

Hello World

Alternate Hello World

Mad Lib

Week 2: Primitive Data Types

Calculating Area

Converting Temperatures

Tip Calculator

Food and Drink

Windchill

Sunday Stumper WARNING: Challenging

Week 3: Math and String Methods, If Statements and Named Constants

Dimensions of a Can of Soup

Pythagoras

Lie Detector

Days in a Month

The Labyrinth

Know Your Standards

Letter Grade Conversion

Week 4: While and For Loops

Print Out the Alphabet

Guess my Number

Input Validation

Convert this While to a For

Print Powers of Two

Count the Alphabet

Week 5: String Methods and Debugging

Vowel Counter

Leap Year Problem

Debugging Practice

Secret Code

Radar Trap

Currency Converter

Week 6: Problem Solving with Nested Loops

Oh Rocket Tree

Clock Simulation

Rainfall Averaging

Computing Prime Numbers

Print a Calendar

Cash Register

Week 7: Midterm Review

Personal Greeting

Temperature Calculator

Days In A Month

Fibonacci sequence

Palindromes

Russian Roulette

Week 8: Static Methods

Print Numbers

Add Area Code

Fix Code Sample

Concatenate Strings

Week 9: Introducing Arrays

Creating an Array

Printing an Array

Equating Two Arrays

Passing Arrays

Fibonacci Numbers

Week 10: Arrays and Methods

printArray Method

fillArray Method

reverseArray Method

commissionCalculator

Cellphone Texting

Week 11: More with Arrays

Summing arrays

Concatenating arrays

Sales Report

Creating a grocery list

Week 12: Array Algorithms

Find Element x Using Linear Search

Find Max Using Linear Search

Count Element x Using Linear Search

Find Element x Using Binary Search

Week 13: Problem Solving and Programming Examples

Break This Combination

Rock Paper Scissors

Student Record List With Parallel Arrays

Top Secret

String Binary Search




Chapter Expression error: Unrecognized word "program".: What is Programming? Table of Contents Chapter Expression error: Unrecognized word "program".: Java Fundamentals



Template loop detected: