Create dictionary with the names of the country
"de", "Germany";
"sk", "Slovakia";
"us","united states";
"ru","russia";
"hu","hungary";
"pl","poland";
a)display the names of the countries with the key values "hu" and "sk"
b)print the number of items in the dictionary
c)display all the keys in the dictionary
d)display all the values in the dictionary
e)display all the values and keys in the dictionary
Loading
VulpesPosted Jun 2, 2013, 9:51 AM
Sinu JosephPosted Jun 2, 2013, 1:45 PM
Sinu JosephPosted Jun 2, 2013, 10:46 AM
1) input a sentance and print the frequency of words repeating in the sentance. use arraylist or hash table
2) create a linked list . add new elements and delete existing elements and traverse through the list
3)write a prgm that accept a postfix expression nd determines its value.
input specification:
the input to the prm will consist os a well formed postfix expresion terminated by a newline charector ('\n'). the expression will consist of operands and operators seperated by a single sapace . this possible operators are
+ Adddition
- subtratoin
* multiplication
/ integer division
% remainder
^ exponentiation
operants will be positive integers
input will not be such tht it will cause an overflow or underflow in an integer variable
output spec
output should be the value of the expression follwed by a newline charector
example
input
10 20+
output
30
input
9 8+3 5 - /
output
-8
input
7 3 2 ^ %
output
8