Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

java question You have defined the following java variables, fill out the blanks

ID: 3810061 • Letter: J

Question

java question

You have defined the following java variables, fill out the blanks of ? mark in the ANS space to complete the statements double myIncome;//income amount ___?__taxRate = 0.25;//(1) income tax rate in percentage double taxAmt;//income amount equals income amount times tax rate double netPmt;//subtract tax amount to get net payment (income) myIncome = _?_;//(2) fillout the statement to I/P from keyboard in the ANS space using style of DOS tax Amt. = _?_;//(3) fillout the statement to calculate tax amount in the ANS space using style of DOS or GUI netPmt = _?_;//04) fillout the statement to calculate tax amount in the ANS space using style of DOS or GUI

Explanation / Answer


double myIncome;
____double___ taxrate = 0.25;
double taxAmt;
double nextPmt;
myIncome = input.nextDouble();
// assuming scanner is used and input is obejct of scanner
// a constant value can also be taken as an inpu for myIncome

taxAmt = ____myIncome*taxAmt___;
netPmt = ____myIncome - taxAmt___;

ANS:
(1) double
(2) input.nextDouble();
(3) myIncome*taxAmt
(4) myIncome - taxAmt