Presentation is loading. Please wait.

Presentation is loading. Please wait.

ITEC 320 Lecture 10 Examples. Review Strings –What types are there? –What are the differences? –What should you use where? Homework –Hardest part –Easiest.

Similar presentations


Presentation on theme: "ITEC 320 Lecture 10 Examples. Review Strings –What types are there? –What are the differences? –What should you use where? Homework –Hardest part –Easiest."— Presentation transcript:

1 ITEC 320 Lecture 10 Examples

2 Review Strings –What types are there? –What are the differences? –What should you use where? Homework –Hardest part –Easiest part –Thoughts?

3 Examples Outline Usage of ADA –Variables –Conditionals –Loops –Arrays

4 Examples Program 1 Character counter –Input strings less than 80 characters until eof and count number of spaces. Then count number of As, Bs,...Zs (case insensitive).

5 Examples Program 2 Given a string, compute recursively (no loops) the number of times lowercase "hi" appears in the string.

6 Examples Program 3 Caesar cipher of shift 3 to the right Character’val(65); Character’pos(‘A’);

7 Examples Program 4 Banking simulator –Customers –Account balances –Debit / Credit account

8 Examples Review Writing code in ADA Process Errors How to find answers


Download ppt "ITEC 320 Lecture 10 Examples. Review Strings –What types are there? –What are the differences? –What should you use where? Homework –Hardest part –Easiest."

Similar presentations


Ads by Google