Question
Coding Exercise: Pig Latin Pig Latin is a nonsense language. To transform a word from English to Pig Latin, you move the first letter to
Coding Exercise: Pig Latin
Pig Latin is a nonsense language. To transform a word from English to Pig Latin, you move the first letter to the end and add "ay" after that. For example, monkey becomes onkeymay in Pig Latin, and word becomes ordway. Write a program that takes a single word as input and translates it to Pig Latin. (In reality, Pig Latin has rules that are more complex than this, but we ignore them for the purposes of this exercise.)
Coding Exercise: Divisibility
Write a program that reads two positive integers a and b on separate lines. If a is divisible by b, print the message "divisible". Otherwise, print the message "not divisible". For example, when the input is
14 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started