This problem practices the addition of 2-digit numbers. Encourage the students to share the methods that they use to solve the problem. For example some…

Print the sum of nth harmonic number: 1/1 + 1/2 + … + 1/n. Note: Use Double Data type and String.format(“%.02f”, variable name) INPUT_1:Enter nth…

Write a program to print following outputs. 1111111111112211113331114444115555516666667777777 INPUT_1:Enter any number: 7 OUTPUT:1111111111112211113331114444115555516666667777777 INPUT_2:Enter any number: 5 OUTPUT:1111111122113331444455555 INPUT_3:Enter any number: 6 OUTPUT:111111111122111333114444155555666666 INPUT_4:Enter any…

Java Program to convert from binary to decimal number. INPUT_1:Binary: 1101 OUTPUT:Decimal: 13 INPUT_2:Binary: 111 OUTPUT:Decimal: 7 INPUT_3:Binary: 001 OUTPUT:Decimal: 1 INPUT_4:Binary: 1111 OUTPUT:Decimal: 15…

Swapping two numbers by multiplication and division Java Program to Swap two numbers by using division and multiplication. INPUT_1:Enter any two numbers: 3 2 OUTPUT:Swapped…

Java Program to convert from octal to hexadecimal number. INPUT_1:Enter Octal number: 10453 OUTPUT:Hexadecimal number is: 112B INPUT_2:Enter Octal number: 10452 OUTPUT:Hexadecimal number is: 112A…

Many people think about their height in feet and inches, even in some countries that primarily use the metric system. Write a program that reads…

Write a program that prompts the user to enter the length from the center of a pentagon to a vertex and computes the area of…

Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user…

Create a program that reads a duration from the user as a number of days, hours, minutes, and seconds. Compute and display the total number…

Write a program to Convert the temperature from Celsius to Fahrenheit. INPUT_1:Celsius: 0 OUTPUT:Celsius to Fahrenheit: 32.0 F INPUT_2:Celsius: 30 OUTPUT:Celsius to Fahrenheit: 86.0 F…

In many jurisdictions a small deposit is added to drink containers to encourage people to recycle them. In one particular jurisdiction, drink containers holding one…

Write a program that computes the body mass index (BMI) of an individual. Your program should begin by reading a height and weight from the…

Sneha got a single integer as an input , and her task to perform all assignment operations in with the given input . Let us…

Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meter. Note: Use datatype…

Given take-off speed v and an airplane acceleration a, you can compute the minimum runway length needed for an airplane to take off using the…

Julius Caesar protected his confidential information by encrypting it in a cipher. Caesars cipher rotated every letter in a string by a fixed number, “K”,…

A pronic number is a number which is the product of two consecutive integers, that is, a number of the form n(n + 1).The study…

Write a program that takes a command-line argument n and prints a table of the powers of 2 that are less than or equal to…

Palindromes date back at least to 79 AD, as a palindrome was found as a graffito at Herculaneum, a city buried by ash in that…