import java.util.Scanner;
import java.text.DecimalFormat;
public class PresentValue
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
...
Type: Posts; User: rosiems95
import java.util.Scanner;
import java.text.DecimalFormat;
public class PresentValue
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
...
I tried both what Norm and jashburn suggested, and they both worked. The only thing is that with jashburn's suggestion it displays the output 10 times. Should it be doing that?
Also, does this part...
When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specified time period:
d = 1/2 gt^2
The variables in the formula...
My code compiles, but when running it, it continues to infinity. How do I change that?
Here is the problem:
The distance a vehicle travels can be calculated as follows:
Distance = Speed *...
It worked! Thank you so much.
import java.text.DecimalFormat;
import java.util.Scanner;
public class SoftwareSales
{
public static void main(String[] args)
{
DecimalFormat money = new...