Skip to content

Instantly share code, notes, and snippets.

@prodeveloper
Last active March 27, 2018 06:56
Show Gist options
  • Save prodeveloper/f12f08f23e33b6fff3ec530bcfeba0e4 to your computer and use it in GitHub Desktop.
Save prodeveloper/f12f08f23e33b6fff3ec530bcfeba0e4 to your computer and use it in GitHub Desktop.
End of semester challenge
Write a script that converts celsius to farnheit
The formula for doing so would be:
(°C × 9/5) + 32 = °F or in plain English, Multiple by 9, then divide by 5, then
add 32.
The script should take input from STDIN.
Define a class called Person which has at least two methods:
getName: to get a persons from console input
printName: to print the name in upper case.
Also please include simple test function to test the class methods.
Write a program that requests for input from STDIN in a comma separated sequence
of words as input and prints the words in a comma-separated
sequence after sorting them alphabetically.
Suppose the following input is supplied to the program:
without,hello,bag,world
Then, the output should be:
bag,hello,without,world
"Write a program that prints the numbers from 1 to 100.
But for multiples of three print “Fizz” instead of the number
and for the multiples of five print “Buzz”.
For numbers which are multiples of both three and five print “FizzBuzz”."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment