Question: Question 1 : Write a Java program to declare and initialize two integer variables and then display their sum. Question 2 : Calculate and display
Question : Write a Java program to declare and initialize two integer variables and then display their sum.
Question : Calculate and display the area of a rectangle with given length and width.
Question : Convert a temperature in Celsius to Fahrenheit using the formula:
Question : Calculate the area and circumference of a circle given its radius. Use pi as
Question : Given a person's age, calculate and display their age in months.
Question : Calculate the sum of the first natural numbers.
Hint: You may need to use a formula you might have learnt in Maths class to solve this.
Question : Given the base and height of a triangle, calculate its area using the formula: Area base height.
Question : Calculate the volume of a cube given its side length.
Question : Convert a given number of minutes into hours and minutes.
Question : Calculate the compound interest earned on a principal amount with given interest rate and time period.
Formula for Compound Interest: amount principal rate years
Formula for Interest: interest amount principal
Hint: Use Math.pow to calculate the exponent.
Note your submission should include the question number program screenshot and output screenshot
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
