subject

Given the following code, what will be the value of finalamount when it is displayed? public class order { private int ordernum; private double orderamount; private double orderdiscount; public order(int ordernumber, double orderamt, double orderdisc) { ordernum = ordernumber; orderamount = orderamt; orderdiscount = orderdisc; } public int getorderamount() { return orderamount; } public int getorderdisc() { return orderdisc; } } public class customerorder { public static void main(string[] args) { int ordnum = 1234; double ordamount = 580.00; double discountper = .1; order order; double finalamount = order. getorderamount() – order. getorderamount() * order. getorderdisc(); system. out. printf("final order amount = $%,.2f\n", finalamount); } }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
You know the right answer?
Given the following code, what will be the value of finalamount when it is displayed? public class...
Questions
question
Mathematics, 04.02.2020 02:51
Questions on the website: 13722362