Download presentation
Presentation is loading. Please wait.
Published byBaldric Johns Modified over 9 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.