954,170 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

assignment due today, have had several days of troubles?

hi, i have an "easy" assignment due today and for the past several days i have been completely unable to run these questions without errors,

one is asking to create a function drop-units to take an integer of 10 or greater and produce a new integer by dropping units.
ex. drop-units 148 should produce 140
drop-units 234 should produce 230
drop-units 300 should produce 300

i have no idea where to even start any help would be greatly appreciated.

as well...a second question

i have to create a function monogram which takes two strings (in this case first and last names) and produces a monogram of the two.
ex. monogram barack obama should produce b.o.
monogram michael jackson should produce m.j.

i would really appreciate a hand here!?

jlew
Newbie Poster
3 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 
i have no idea where to even start any help would be greatly appreciated.

Look at the behavior of the division and modulo operators.i would really appreciate a hand here!?

Learn how to take substrings and how to append strings to one another.

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 176
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: