Posted at 23:17h
in
archives
by admin
Problem Description
Jack is trying to invent some new words from old words. For every consonant (consonants are the letters except for a, e, i, o, u) in the old word is replaced by three letters, in the following order:
the consonant itself;
the vowel closest...
Posted at 23:09h
in
archives
by admin
Question:
Please change the fraction class program we made in the class, so the fraction can be mixed fraction which could accept whole number and fraction at same time. You could also add two mixed fractions together make sure the result is simplified and mixed fraction....
Question:
Joe Coder is camping near the Bay of Fundy between Nova Scotia and New Brunswick. When he arrived at the bay, he was told that the difference in height between high tide and low tide at the Bay of Fundy was the largest tidal difference...
Posted at 19:47h
in
Uncategorized
by admin
Question:
Write a program to ask the user for five names. The program should store the names in a list, and print them all out at the end. It should look something like this:
Sample input:
Enter 5 names:
Tony
Paul
Nick
Michel
Kevin
Sample output:
The names are Tony, Paul, Nick, Michel, Kevin
Hint:
You can use...
Posted at 18:05h
in
Uncategorized
by admin
Question 1:
Do you know how to figure out how long it will take to get somewhere in a car? The formula (in words) is “travel time equals distance divided by speed.” Make a program to calculate the time it will take to drive 200 km...
Posted at 18:01h
in
Uncategorized
by admin
Question 1:
A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20 percent off purchases of greater than $10. Write a program that asks the purchase price and displays the discount (10% or 20%) and the final price.
Sample Input...