1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Kobotan [32]
3 years ago
7

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); } }
Computers and Technology
1 answer:
kkurt [141]3 years ago
5 0

Answer:

522

Explanation:

You might be interested in
Write a function negateOdds that takes a list of integers and returns a list of integers with all of the odd integers negated. n
aleksley [76]

Is this computer science?

If so, then the function you would need for your code is this...

_____

if (someValue%2 != 0) {

 value *= -1;

        }

_____

//basically <u>number%2 == 0</u> means even so "!" means false so "not even" meaning "odd."

Assuming you are doing an array list (given a set value) or a for-loop with an

int someValue = Integer.parseInt(args[i]); inside (not given a set value and not restricted)

Otherwise ignore me....lol

5 0
3 years ago
You want to create a watermark image. Which tab on the Format Picture box would you use?
Marianna [84]
You should use Picture tab
8 0
3 years ago
Discuss three ways you could (or currently do) use the Excel software in your personal or professional life. Provide examples an
professor190 [17]
Both in my personal and professional life, I use the Excel software in order to create tables and lists. It's much easier to do that in Excel rather than in Word, for example, because Excel was actually created for that purpose, whereas Word was created for writing, above all. I use Excel for work to create tables of various things, such as names, emails, payments, etc. whereas I use it in my personal life to create lists of things such as movies, books, etc.
3 0
2 years ago
Convert the following MIPS assembly code snippet into machine language (hex). Write the code in a memory arrangement (address -
Snezhnost [94]

Answer:

Check the exlanation

Explanation:

1) add $s0,$s0,$s1 \rightarrow R-format

   

opcode                 rs        rt      rd          shamt      function

000000            $s0       $s1    $s0        00000    100000

000000            10000  10001  10000    00000  100000

  = 0X42118020

2) lw $s0,0X20($t7)\rightarrow I-format

opcode                     rs      rt            offset

100000                  $s0     $t7          0X20

100000               10000    01111       0000000000010000

  = 0X820F0010

3) addi $s0,$s0,-10 \rightarrow I-format

opcode             rs           rt            offset

001000            $s0         $s0       -10

001000             10000   10000    1111111111110110

= 0X2210FFF6

4) ori $s1,$a0,100 \rightarrow I-format

opcode             rs        rt            offset

001101             $s0     $a0         100

001101            10000  00100    0000000001100100

= 0X36040064

5) j 0X400C \rightarrow J-format

opcode  rs

000010  0X400C

000010  0000000000100000000001100

= 0X0800400C

4 0
3 years ago
The creation of MySpace pages by candidates in the 2008 Presidential Election is an example of the use of ___________________ to
jarptica [38.1K]
This is descriptive of the use of mass media.
7 0
3 years ago
Other questions:
  • I'm using my PS4 dual shock controller to connect to the fire stick on the tv so I can play games with it but whenever I try to
    10·1 answer
  • Clusters always occur in multiples of what? <br> A.)10 <br> B.)5<br> C.)2 <br> D.)100
    10·2 answers
  • Which wireless communication technology is most likely used when synchronizing device information to an automobile?
    14·1 answer
  • How can you efficiently restrict the read-only function of a requesting SNMP management station based on the IP address?
    14·1 answer
  • __________ contain(s) remnants of word processing documents, e-mails, Internet browsing activity, database entries, and almost a
    9·1 answer
  • A group of students is performing an investigation to measure how much liquid water is produced from a 10 L sample of snow. What
    6·1 answer
  • What is MS-Word? Write some versions of MS-Word.
    8·2 answers
  • How to create a network of relevant prospects?
    5·1 answer
  • When importing data using the Get External Data tools on the Data tab, what wizard is automatically
    11·1 answer
  • 1 point
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!