Task
Declare and initialize variables int i ,double d and string s to 4, 13.2 and “Hello Anantapur”. Declare 3 variables: one of type int, one of type double, and one of type String. Then read three lines of input and initialize the variables. Perform the following operations:
Print the sum of i plus your int variable on a new line.
Print the sum of d plus your double variable to a scale of one decimal place on a new line.
Concatenate with the string you read as input and print the result on a new line.
Task
Given the motor bike cost, brokerage percent, and tax percent for a motor bike, find and print the bike's total cost to the nearest integer.
Task
Calculate quotient and remainder when two integers are divided.
Task
Convert the temperature from Fahrenheit to Celsius and vice-versa.
Relation: C=5/9(F-32)
Task
Find the Area & Circumference of the following Geometrical shapes
i) Square ii) Rectangle iii) Circle iv) Right angled Triangle v) Scalene Triangle vi) Equilateral Triangle.
Task
Find the discriminant of a Quadratic Equation .
Task
Perform the following operations Conditional Operator.
i) Largest among two numbers ii) Largest among three numbers iii) Test a given number positive or negative iv) Test a given number is even or odd
Task
Swap the contents of two variables using a third variable and without using a third variable .