d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Simple Ruby
Closed New Topic New Poll
Member
Posts: 17,010
Joined: Mar 24 2009
Gold: 0.25
Apr 3 2013 04:40pm
Paying fg for all these to be done

I'm learning BASIC ruby things like puts, print, if, unless, case statements, diferent types of variables and Boolean. and just six variables: string, float, fixnum, array, hash, range.

Why is coding with proper programming standards so important when you use a decision strucutre?

Identifiy the major differences between if and unless statements.

Sometimes it's better to use the case statement rather than the if statement, to create flow control.
Explain why that using proper terminology. Write your own problem that requires some flow control and then, in sentences, describe everything a program would need to do to solve this problem.
Code a solution to the problem you created using the if statement and includ comments.
Code an alternative solution using the case statement. Again, include comments.

Using the problem-solving model you learned in Lesson 6, create a program that requests a word from the user and then displays the following:
- The word as entered
- The word in the title case; that is, with only the first letter capitalized
- the number of letters in the word
- the word in reverse order

Each of the above items should be concatenated to a phrase. Fore xample, the first one could say, "wordhere is the word that you entered," where wordhere is the word that he user entered.

Then create a report containing the following:
a) program analysis - a sentence or two which you examine the problem and consider the required outcome, the criteria of it
b) solution design - an algorithm for the program using psuedocode
c_ code-theprogram code with documentary, functional and explanatory comments

Write your own method that, whenc alled, will display the word "DROP" as many times as a paramete called num_drops tells it to. Include functional and explanatory comments, as required.

Let me know the price, need it done ASAP
Member
Posts: 17,010
Joined: Mar 24 2009
Gold: 0.25
Apr 3 2013 06:43pm
The sooner it's done the more I'll pay
Go Back To Homework Help Topic List
Closed New Topic New Poll