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…
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…
Write a java program to display the following patterns. INPUT_1:Enter any number:Â 5 OUTPUT:5Â 4Â 3Â 2Â 1 5Â 4Â 3Â 2 5Â 4Â 3…
Write a java program to compare two strings lexicographically. Lexicographical order is nothing but the dictionary order or preferably the order in which words appear…
Write a java program to find Pair of Integers in Array whose Sum is Given Number. The Number of Inputs are as follows:The first line…
Mana is out on a hike with friends. She finds a trail of stones with numbers on them. She starts following the trail and notices…
Get array as input and display the sum of array elements as outputs. S = sum(A) returns the sum of the elements of A along…
If the user pressed number keys( from 0 to 9), the program will tell the number that is pressed, otherwise, program will show “”Not allowed”.…
Write a program to accept a n X n matrix and print addition of diagonal elements of that matrix. INPUT_1:Enter the size of matrix nxn…