|
-
Jan 13th, 2010, 12:28 AM
#1
Thread Starter
New Member
help needed for Repetition
hey guys
My name is Laura and this is my first thread and I need your help please
Write programs to solve the following problems using loops:
1) You are offered two salary options for 10 days of work. Option 1: $100 per day. Option 2: $1 the first day, $2 the second day, $4 the third day, and so on, with the amount doubling each day. Determine, and output, which is the better option.
2) Request a sentence from the user and then display the number of sibilants (that is, letters ‘S’ or ‘Z’ – not case sensitive) in that sentence. The counting should be carried out by a procedure (sub-routine or function).
Thank you so much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|