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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.