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
tangare [24]
3 years ago
9

In Java please,

Computers and Technology
1 answer:
Bogdan [553]3 years ago
8 0

Answer:

  1. import java.util.Scanner;
  2. public class Main {
  3.    public static void main(String[] args) {
  4.        Scanner input = new Scanner(System.in);
  5.        System.out.print("Enter meal total: $");
  6.        double meal = input.nextDouble();
  7.        double finalAmount = meal + meal *0.09;
  8.        if(finalAmount * 0.15 > 8){
  9.            finalAmount = finalAmount + 8;
  10.        }else{
  11.            finalAmount = finalAmount + finalAmount * 0.15;
  12.        }
  13.        System.out.println("Final amount: $" + finalAmount);
  14.    }
  15. }

Explanation:

Firstly, create a Scanner object and print user to input total meal (Line 5-7). Next, add the 9% tax to the meal total (Line 8). Use an if statement to check if the finalAmount multiplied by the 15% of tips is bigger than 8 (Line 10), if so, only add 8 to the final amount (Line 11). If not, add 15% tips to final amount (Line 12). At last, print out the final amount (Line 15).

You might be interested in
____ is the process of drawing a series of increasingly detailed DFDs, until all functional primitives are identified.
cupoosta [38]

Answer:

a. Leveling          

Explanation:

  • Leveling is also called decomposing.
  • It is a method to depict more detail in lower-level Data Flow Diagrams
  • It is the technique to expand or decompose DFDs into more details or levels to extract more information and identify all functional primitives until no further detail is required.
  • An information system can be comprised of multiple processes. Leveling partitions each process into sub-processes which identifies more details about the process with each level.
  • 0-level DFD: it starts with context diagram which depicts the whole system as a single process e.g. Grading system.
  • 1-level DFD: the context diagram is decomposed in this level. This means a single process is expanded into multiple processes which extracts more details about a process of a system.
  • 2- level DFD: this level decomposes the the process of level 1 going into further details.
  • This decomposition and expansion continues until no further details are required and all functional primitives are identified.
8 0
4 years ago
What is the output of the following?
lys-0071 [83]

Answer: a. the number is: 14

Explanation:

i mean just try to write in 7 instead of x in the second line

then it would say the number is: ....

what is 7 times 2?

14

so the answer is a

5 0
3 years ago
Plz plz plz subsribe to my channel, CookieFunTime
Nesterboy [21]

ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok

7 0
3 years ago
Select all True statements! Question 1 options: a) Host A is sending Host B a large file over a TCP connection. Assume Host B ha
VikaD [51]

<u>Solution:</u>

a)   False. Piggyback is used only for efficiency. If there's no data packet to be piggybacked to, then B will just send the acknowledgement packet.

b)  False. It is the size of the receiver's buffer that's never changed. RcvWindow is the part of the receiver's buffer that's changing all the time depending on the processing capability at the receiver's side and the network traffic.

c)  The given statement is True.

 d) False. The sequence number of the subsequent segment depends on the number of 8-byte characters in the current segment.

e)  True. Every TCP segment has a current value of rwnd in the receive window.

f)  False. Next_RTT = alpha * last_estimated_RTT + (1-alpha)*newly_collected_RTT_sample. In this case even though the last sampleRTT which is the newly_collected_RTT_sample is 1sec, the next_RTT still depends on alpha and last_estimated_RTT. Therefore, the next_RTT is not necessarily greater than 1sec.

g) False. The acknowledgement number has nothing to do with the sequence number. The ack. number indicates the next sequence number A is expecting from B.

5 0
4 years ago
When ____ is pressed after entering an email address or web address, Word automatically formats the address as a hyperlink, that
butalik [34]

Answer:ENTER

Explanation: Hyperlink is the situation that states that the document belongs to some other location. So, if the enter key is pressed by the user after the typing of any email address , then it marks it as the hyperlink which shows it belongs to some other file.

Hyperlink actions also occurs when the user presses space-bar and the web address gets marked by the change in color or by underlined function.

4 0
3 years ago
Other questions:
  • Hotspots are an example of ______________ wireless networks.
    7·1 answer
  • Online companies typically have a(n) _________ on their websites that clearly states what information is collected from users an
    7·1 answer
  • 1.The character escape sequence to force the cursor to go to the next line is________: 2. The character escape sequence to force
    8·1 answer
  • ????????????????????????????????
    5·1 answer
  • Rick is teaching a photographic worship about sun color and image. He shows the students a few images to teach them about contra
    12·1 answer
  • Can u guys report me as much as u can I’m trying to delete this account
    7·1 answer
  • 1. What is the difference between a group and a topic?
    10·1 answer
  • What software can be used for remote operation of a sunsdr2 dx?.
    13·1 answer
  • TensorFlow and Pytorch are examples of which type of machine learning platform?
    7·1 answer
  • The top-level domain (tld), also known as the ________, typically identifies the type of organization an address is associated w
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!