0

Error: Expected ‘)’

if (bazGP > 10,957.00 || bazGP = 10,957.00) System.out.println ("Income Class: Poor"); else if (bazGP >= 10,957.00 && bazGP <= 21,914.00) System.out.println ("Income Class: Low Income"); else if (bazGP >= 21,914.00 && bazGP <= 43,828.00) System.out.println ("Income Class: Lower Middle"); else if (bazGP >= 43,828.00 && bazGP <= 76,669.00) System.out.println ("Income Class: Middle Income"); else if (bazGP >= 76,669.00 && bazGP <= 131,484.00) System.out.println ("Income Class: Upper Middle"); else if (bazGP >= 131,484.00 && bazGP <= 219,140) System.out.println ("Upper But Not Rich"); else System.out.println ("Rich");

26th Feb 2021, 2:25 AM
Bensho
Bensho - avatar
5 Respostas
0
As visph said, you are not allowed to use comma (,) as thousands separator in Python. And tip: you can just write, for example, 10954 instead of 10,954.00
26th Feb 2021, 4:38 AM
#0009e7 [get]
#0009e7 [get] - avatar
+ 7
you are not allowed to type comma as thousand separator in numbers ;)
26th Feb 2021, 2:27 AM
visph
visph - avatar
+ 2
get underscore works great for identifiers, but not inside number literals ^^
26th Feb 2021, 4:40 AM
visph
visph - avatar
+ 2
that's true for almost every languages ;) identifiers = variables/functions/... names
26th Feb 2021, 4:44 AM
visph
visph - avatar
+ 1
Oh, thanks. Accidentally garbled the programming languages. And... Identifiers = variables etc.?
26th Feb 2021, 4:41 AM
#0009e7 [get]
#0009e7 [get] - avatar