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
hichkok12 [17]
3 years ago
5

Create a program that will read in a Salesperson name, employment status (1=Full-time AND 2=Part-time) and the sales amount.

Computers and Technology
1 answer:
Oliga [24]3 years ago
5 0

Answer:

Written using Python

name = input("Name: ")

print("1 for Full time and 2 for Part time")

status = int(input("Status: "))

sales = float(input("Sales Amount: "))

if status == 1:

     commission = 0.04 * sales

else if status == 2:

     commission = 0.02 * sales

print(name)

print(commission)

if status == 1 and sales>1000:

     print("You have exceeded the sales quota!")

if status == 2 and sales>500:

     print("You have exceeded the sales quota!")

Explanation:

I've added the full source code as an attachment where I used comments to explain some lines

Download txt
You might be interested in
Only the _________ can add users with passwords and limit user access to selected areas.
Iteru [2.4K]

Answer:

The answer to this question is "Quickbooks administrator.

Explanation:

The answer is the Quick books administrator because Quick books is a software that is used for accounting developed. It helps us to keep in mind all the expenses in the business and things like invoicing, reporting.In this software, we can add new users and give them permission. If we want to allow Users to access the software.

In the Quickbooks administrator, we can add the user with limited access also. So the correct answer is Quickbooks administrator.

8 0
3 years ago
If you have created users with administrator privileges on your windows 7 or linux systems, why bother creating other user accou
Free_Kalibri [48]

The reason one bother creating other user accounts so that others such as friends can be able to make some changes that you want them to do and it is also to make sure that an administrator does not inadvertently make alterations  without knowing that is any form of administrative change.

<h3>What Does Administrative Privileges Mean?</h3>

The term Administrative privileges are known to be the ability to have or create some major changes to any given system, such as an operating system.

Note that based on the above, The reason one bother creating other user accounts so that others such as friends can be able to make some changes that you want them to do and it is also to make sure that an administrator does not inadvertently make alterations  without knowing that is any form of administrative change.

Learn more about administrator privileges from

brainly.com/question/26389124

#SPJ1

8 0
1 year ago
A ____ is harmful computer code that spreads without your interaction, slipping from one network to another and replicating itse
blondinia [14]
Malware is the answer

3 0
3 years ago
A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 servings in the bag and that a se
laila [671]

Answer:

import java.util.Scanner;

public class ANot {

   public static void main(String[] args) {

   Scanner in = new Scanner (System.in);

       System.out.println("How many cookies did you eat today");

       int numOfCookies = in.nextInt();

       double numCalories = (numOfCookies*300)/4;

       System.out.println("The total number of calories you consumed in "+numOfCookies+" cookies is " +

               " "+numCalories);

   }

}

Explanation:

This code is implemented in Java.

  1. We know from the question that 4 cookies contain 300 calories
  2. Therefore number of calories consumed = (number of cookies eaten*300)/4
  3. To implement this in java we used the scanner class to prompt user for the input
  4. save the input to a variable and write mathematical expression for the number of calories consumed
  5. Then output the result

4 0
3 years ago
Classes cannot:
dexar [7]

Classes cannot Initialize data members in the class definition.

B) Initialize data members in the class definition

<u>Explanation:</u>

Class is defined by end user data type where it can handle multiple data type and referred to other classes also. Class is also called as data structure object or object class.

Due to class methods total programming language coding style is changes. For example employee of an organization should hold his or her employee number, address detail, spouse details, salary details

Where in old style programming language we need to declare separate variable to hold the data types, where we can define employee as class which can hold employee number, address fields, and again define salary details as other class and add employee->employee number where key connect between to class which is called derived class.

5 0
3 years ago
Other questions:
  • Which social media marketing concept engages visitors, getting them to revisit your website and tying them to offline events for
    7·2 answers
  • This activity will help you meet these educational goals:
    7·2 answers
  • )a___ is a complete binary tree such that each node in the tree contains a comparable object that us greater than or equal to th
    9·1 answer
  • A photographer uses which of these tools to form an argument?
    14·2 answers
  • What is "mob of the dead"?
    7·1 answer
  • Suppose cell C5 contains the formula =B$6+C1.
    6·1 answer
  • Davingould1115...................answer 2​
    11·2 answers
  • Question 1(Multiple Choice Worth 5 points)
    9·2 answers
  • How do you mark the brainiest?
    8·2 answers
  • Given three floating-point numbers x, y, and z, output x to the power of y, x to the power of (y to the power of z), the absolut
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!