0

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!?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Rashakil Fol
1

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.