Задача Fruit Market
Здравейте, не намирам грешката. Може ли някой да съдейства?
import java.util.Scanner; public class FruitMarket { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Double StrawPrice = Double.parseDouble(scan.nextLine()); Double BananasQuantity = Double.parseDouble(scan.nextLine()); Double OrangesQuantity = Double.parseDouble(scan.nextLine()); Double RaspQuantity = Double.parseDouble(scan.nextLine()); Double StrawQuantity = Double.parseDouble(scan.nextLine()); Double RaspPrice = StrawPrice * 0.5; Double OrangePrice = StrawPrice - (StrawPrice * 0.4); Double BananaPrice = StrawPrice - (StrawPrice * 0.8); Double Straws = StrawPrice * StrawQuantity; Double Rasps = RaspPrice * RaspQuantity; Double Bananas = BananaPrice * BananasQuantity; Double Oranges = OrangePrice * OrangesQuantity; Double Money = Straws + Rasps + Bananas + Oranges; System.out.println(Money); } }
Благодаря!