Thursday, November 15, 2012

Assignment Answers

Assignment Answers

1) Write a program to check the given number is positive or negative.


2) Write a program to Add two numbers if the first one is greater than the second number if not
display an error message.


3) Write a program to display the grade (A, B, C or D) according to the given mark.
hint: A(between 100 and 75)/ B(between 74 and 65)/ C(between 64 and 55)/ D(between 54 and
0)

4) Write a program to read a two characters and display them if both are not equal.
5) Write a program to input a temperature reading in either Celsius (c) or Fahrenheit (f)scale and
convert it to the other scale. The temperature reading consists of a decimal integer followed by
letter “F” or “f” if the temperature is in Fahrenheit scale or letter “C” or “c” if it is in Celsius
scale. You may use a similar format for the output of the program.








1 comment:

  1. Myassignment - Professional Assignment Writing Service in Sri Lanka

    My assignment is assignment Writing Service In Sri Lanka and we have the best assignment writers in Sri Lanka. We help on assignments of Sri Lankans and foreign MBA students. Providing customized assignment for MBA / Degrees.

    Visit h ere:- Assignment Help In Sri Lanka

    ReplyDelete