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

Could somebody please find the bugs and amend them? This question is worth 25 Brainly points!

Computers and Technology
1 answer:
Andreyy893 years ago
6 0

line 4

if salary < 30000

error missing ":"

solution

if salary < 30000:

line 6

tax = salary * 0.2

error is missing identifier for tax

solution add identifier for tax on line 3

tax = 0.0

line 11

error syntax

solution is move tax = salary * 0.4 + 6000 to the right

tax = salary * 0.4 + 6000

You might be interested in
: Show that the propositions (p ∨ q) ∧ (¬p ∨ r) and (p ∧ r) ⊕ (¬p ∧ q) are logically equivalent.
Ipatiy [6.2K]

Answer:

(p\vee q)\wedge(\neg p\vee r)\equiv(p\wedge r)\vee(\neg p\wedge q)

Explanation:

The statements are logically equivalent if they have the same truth tables. So let´s use truth tables in order to determine if they are logically equivalent or not:

The picture that I attached you shows the truth table for each case. As you can see in the highlight columns:

(p\vee q)\wedge(\neg p\vee r)\equiv(p\wedge r)\vee(\neg p\wedge q)

They are  logically equivalent because they have exactly the same truth values between each other. Hence, we can conclude that they are logically equivalent.

3 0
3 years ago
Joe always misspells the word calendar. He types the word as calender but the correct spelling appears on the document. Which fe
Anika [276]
A. Autocorrect is the answer
7 0
3 years ago
The Sleeping-Barber Problem:
s2008m [1.1K]

Answer:

Explanation:

Following are the Semaphores:

Customers: Counts waiting customers;

Barbers: Number of idle barbers (0 or 1)

mutex: Used for mutual exclusion.

Cutting: Ensures that the barber won’t cut another customer’s hair before the previous customer leaves

Shared data variable:

count_cust: Counts waiting customers. ------------copy of customers. As value of semaphores can’t access directly.

// shared data

semaphore customers = 0; semaphore barbers = 0; semaphore cutting = 0; semaphore mutex = 1;

int count_cust= 0;

void barber() {

while(true) { //shop is always open

wait(customers); //sleep when there are no waiting customers

wait(mutex); //mutex for accessing customers1

count_cust= count_cust-1; //customer left

signal(barbers);

signal(mutex);

cut_hair();

}

}

void customer() {

wait(mutex); //mutex for accessing count_cust

if (count_cust< n) {

count_cust= count_cust+1; //new customer

signal(customers); signal(mutex);

wait(barbers); //wait for available barbers get_haircut();

}

else { //do nothing (leave) when all chairs are used. signal(mutex);

}

}

cut_hair(){ waiting(cutting);

}

get_haircut(){

get hair cut for some time; signal(cutting);

}

6 0
3 years ago
What type would the object X be in the following statement:
Y_Kistochka [10]

Answer:

Boolean

Explanation:

If statement condition always returns true or false,which is a boolean data type.

X is true or false

it maybe a variable or an expression.

5 0
3 years ago
Read 2 more answers
Which technology allows multiple vms to have access to the internet? virtual machine manager hypervisor virtual pbx virtual swit
Elina [12.6K]

A virtual switch is special software that enables VMs to communicate with each other, without going outside of our system.

Virtual switches are a key technology that allows multiple virtual machines (VMs) to have access to the internet. By creating a virtual switch, you can essentially create a "mini-internet" for your VMs, allowing them to communicate with each other and with the outside world.

There are many benefits to using virtual switches, including improved security and performance. By isolating your VMs from the physical network, you can better protect them from attacks. And because virtual switches only forward traffic that is destined for their VMs, they can help improve network performance.

If you're looking to create a virtual switch, there are a few things you'll need. First, you'll need a physical server with multiple network adapters.

You'll also need a virtualization platform, such as VMware vSphere, to create and manage your virtual switches. Finally, you'll need a switch management tool, such as the Cisco Nexus 1000V, to help you configure and manage your virtual switches.

Creating a virtual switch is a great way to improve the security and performance of your virtual machines. By using virtual switches, you can create a safe and efficient network for your VMs.

Learn more on virtual switches here:

brainly.com/question/27980989

#SPJ4

7 0
1 year ago
Other questions:
  • Here are the codes for producer and consumer problems.
    10·1 answer
  • In 1-2 sentences, describe how to change the font.
    8·2 answers
  • When adopting the use of social media in emergency management, it is important to have
    10·1 answer
  • 9.18 LAB: Exact change - methods Write a program with total change amount as an integer input that outputs the change using the
    11·1 answer
  • What is the largest place value in a 12 bit binary number?
    10·1 answer
  • What are some other ways to program a robot to navigate a complicated environment other than straight paths and right angle (90
    15·1 answer
  • any one that owns a chrome book there is a new update there is new features and there is a game on settings where you see what y
    15·2 answers
  • What is the difference between PowerPoint and Outlook?
    5·1 answer
  • After reading his e-mail messages, Orlando became very frustrated. Many of the messages he received did not conform to netiquett
    6·1 answer
  • 20 POINTS! Which music making software is better? Ableton Live or Logic Pro? Name the advantages and disadvantages of each one!
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!