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
Anton [14]
3 years ago
11

Create a pseudocode showing logic steps to perform the required task below.

Computers and Technology
1 answer:
Ludmilka [50]3 years ago
4 0

Answer:

#Function for the calculcations needed

function subtotal_gratuity_total(subtotal,gratuity_rate):

  gratuity_rate = gratuity_rate/100 #this is assuming the user enters the gratuity as a percentage value (e.g. 15)

  gratuity = subtotal*gratuity_rate

  total = subtotal+gratuity

  return subtotal, gratuity_rate, gratuity, total

#Reading the values the user enters

Output(“Input subtotal”)

input (subtotal)

Output(“Input gratuity rate”)

input (gratuity_rate)

#Calling function we created with the values the user enters as inputs,

#and  the 4 values required as outputs

subtotal,gratuity_rate,gratuity, total = subtotal_gratuity_total(subtotal,gratuity_rate)

You might be interested in
What is the cause of electronic signals on electronics?
max2010maxim [7]

Explanation:

Electric devices, such as lights and household appliances, change electric current to other forms of energy. For example, an electric stove changes electric current to thermal energy. ... A message encoded this way is called an electronic signal, and the use of electric current for this purpose is called electronics

MARK ME AS A BRAIN LIST

8 0
3 years ago
Which of the following is the output of the code
olya-2409 [2.1K]

Answer:

need to see code

3 0
3 years ago
A java ____ is a program written in the java programming language that can be included in a web page.
Evgen [1.6K]

Answer:

Java Applets are used to include java programs on web page.

Explanation:

Java Applets are small java programs that can be run on any browser with appropriate Java Plug-in and displays applet as a section of web page.

How to Create Applet

Create an applet class by extending it with JApplet and add a paint method in it. for example

import java.awt.*;

import javax.swing.*;

public class HelloWorld extends JApplet {

          public void paint(Graphics graphic)

           {

            super.paint(graphic);

           }

}

The above code will create an applet and super.paint(graphic) method will draw the applet for you.

In order to display "Hello World" string in applet. you just need to add the following line after super.paint(graphic); method.

graphic.drawString("Hello World" , 20, 20);

Run Code

Click on Run Button and you will able to see the applet in applet viewer window.

4 0
3 years ago
Read 2 more answers
The control variable of a counter-controlled loop should be declared as ________ to prevent errors. Group of answer choices int
yanalaym [24]

Answer:

int

Explanation:

<h2><u>Fill in the blanks </u></h2>

The control variable of a counter-controlled loop should be declared as  <u>int </u> to prevent errors. Group of answer choices int double float Any of the above.

7 0
3 years ago
Is there anyone willing to sign into my google classroom account and help with my work :( i had surgery on monday and have about
Soloha48 [4]

Answer:

yeah I can help u but how will I get ur email and password?

3 0
3 years ago
Read 2 more answers
Other questions:
  • Write code to assign the number of characters in the string rv to a variable num_chars.
    10·1 answer
  • Emily is an aspiring lyricist. She wants to make a demo tape to send to recording companies. Which input device can she use to r
    5·1 answer
  • Which piece of code results in the following? Italics
    15·1 answer
  • From the standpoint of the governing bodies of .com, why is it important that owners of individual domains maintain authoritativ
    5·1 answer
  • Which of the following dimensions of e-commerce technology involves the integration of video, audio, and text marketing messages
    11·1 answer
  • Explain briefly the purpose of the Computer Management Console in Microsoft Windows.
    12·1 answer
  • As a digital strategist, Jared wants to add something extra to his ads to give users more incentive to click and convert. He's c
    11·1 answer
  • The two major types of system software programs are utility programs and the ________. Select one: A. user interface B. supervis
    13·1 answer
  • What game is this? help mee?
    8·2 answers
  • Consider sending a stream of packets from host a to host b using ipsec. typically, a new sa will be established for each packet
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!