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
sukhopar [10]
3 years ago
5

Can someone help me?

Computers and Technology
2 answers:
stich3 [128]3 years ago
7 0

Answer:

2nd one

Explanation:

Trava [24]3 years ago
7 0

Answer:

A

Explanation:

3*6+2/2 = 19

(3*6)+2/2 = 19

3*(6+2/2) = 21

You might be interested in
Which of the following pathways relates to the Architecture and construction career cluster
Murrr4er [49]
*Design/Pre-Construction
*Construction
*Maintenance/Opreations
5 0
4 years ago
Design a class named Cake. Data fields include two string fields for cake flavor and icing flavor and numeric fields for diamete
kkurt [141]

Using the computer language in pseudocode to write a function code that  declares two Cake objects and sets and displays their values.

<h3>Writting the code in pseudocode:</h3>

<em>- cake flavor: string</em>

<em>- icing flavor: string</em>

<em>-diameter: num</em>

<em>-price: num</em>

<em>+set cake flavor (cake flavor : string) : void</em>

<em>+set icing flavor (icing flavor: string) : void</em>

<em>+set Diameter(size : num) : void</em>

<em>+set Price(price : num) : void</em>

<em>+get cake flavor () : string</em>

<em>+get cing flavor () : string</em>

<em>+get Diameter() : num</em>

<em>+get Price() : num</em>

<em>Answer A=</em>

<em>Pseudocode:</em>

<em>class Cake</em>

<em>Declarations</em>

<em>private string cake flavour</em>

<em>private string icing flavor</em>

<em>private num diameter</em>

<em>private num price</em>

<em>public void set Cake flavour (string Cake flavour)this. Cake flavour = Cake flavour</em>

<em>return</em>

<em>public void set icing flavour (string icing flavour)this. icing flavour = icing flavour</em>

<em>return</em>

<em>public void set Diameter(num size)</em>

<em>diameter = size</em>

<em>return</em>

<em>public void set Price(num price)</em>

<em>this price = price</em>

<em>return</em>

<em>public string get Cake flavour ()</em>

<em>return Cake flavour</em>

<em>public string get icing flavour ()</em>

<em>return icing flavour</em>

<em>public num get Diameter()</em>

<em>return diameter</em>

<em>public num get Price()</em>

<em>return price</em>

<em>end Class</em>

<em>start</em>

<em>Declarations</em>

<em>Cake my Cake</em>

<em>Cake your Cake</em>

<em>myCake.set cake flavour (“chocalate”)</em>

<em>myCake.set icing flavour (“peppermint”)</em>

<em>myCake.setDiameter(15)</em>

<em>myCake.setPrice(18)</em>

<em>myCake.set cake flavour (“pineapple”)</em>

<em>myCake.set icing flavour (“orange ”)</em>

<em>yourCake.setDiameter(20)</em>

<em>yourCake.setPrice(25)</em>

<em>output “Cake 1 info:”</em>

<em>output myCake.get cake flavour ()</em>

<em>output myCake.get icing flavour ()</em>

<em>output myCake.getDiameter()</em>

<em>output myCake.getPrice()</em>

<em>output Cake 2 info:”</em>

<em>output yourCake.get cake flavour ()</em>

<em>output yourCake.get icing flavour ()</em>

<em>output yourCake.getDiameter()</em>

<em>output yourCake.getPrice()stop</em>

See more about pseudocode at brainly.com/question/13208346

#SPJ1

5 0
2 years ago
Given a list of numbers, find the correct function to find the sum of the squares of only the positive elements.
vovikov84 [41]

Answer:

sqsum4

Explanation:

So to raise a number to a power in python, you can use the ** operation, which is usually confused with the ^, which is an operation, but it is not for raising numbers to a power. It is the xor bit operation, which if you don't know at the moment, it's fine, since it's not necessary for this. each of these lists uses a generation comprehension which is generally defined as: (x for x in object if condition) with the if condition being optional, but in this case it's necessary. If it's a bit confusing, you can define a generator using a function so it's a bit more spread out:

def generator(object):

   for x in object:

       if condition:

           yield x

Although in this instance were going to be performing some operation on x, which in this case is squaring it. So let's just look at the two functions that use the **, since they should be the only options that will be correct.

sqsum1(nums):

   This function does square x, except it uses incorrect syntax. The condition should come after the for loop. Python likely wont tell you this, because it may think you're trying to do something else. You can do one line if statements like this: a if condition else b, which will return a if the condition is true, and b if it isn't. So it may think that you're trying to do this one line if statement, and say that you're missing an else. The function could even implement in this way: <em>x**2 if x > 0 else 0 for x in nums</em>. This way if the x is negative it counts as 0, or in other words isn't counted towards the sum. But without this fix, the function will raise a syntax error

sqsum4(nums):

   This will square each number in x only if the current element "x" is greater than 0, or in other words positive. And then it returns the sum. So this function returns the expected output

5 0
2 years ago
What measures are needed to trace the source of various types of packets used in a DoS attack? Are some types of packets easier
cestrela7 [59]

<u>Explanation:</u>

Note, a DoS (Denial of Service) attack is <u>different in scope from a DDoS (Distributed Denial of Service) </u>attack. In a DoS attack, the attack on the website's network comes from just a single source (IP address) repeatedly, while in a DDos attack several Ip addresses or sources attack the network of a website.

To trace the source of various types of packets used in a DoS attack (which of less complexity than a DDos attack), a software application like Wireshark could be used to measure trace the packets used in the attack.

4 0
3 years ago
Which of the following is NOT an algorithm?
Nina [5.8K]
I’m pretty sure it would be “A novel assigned in English class” (algorithm is a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.) Example: the recipe for baking a cake.
3 0
3 years ago
Other questions:
  • The intersection of a row and a column is commonly called what?
    15·1 answer
  • If your TV was showing a flat black or blue screen, or had "snow", what steps would you take to fix it?
    11·1 answer
  • Give an example of movies or games that use teleportation
    11·1 answer
  • A communications medium that carries a large amount of data at a fast speed is called
    14·1 answer
  • GDP measures the production levels of any nation. This implies a correlation between production levels and ____________.
    8·1 answer
  • First identify the formula to compute the sales in units at various levels of operating income using the contribution margin app
    12·1 answer
  • NEED FIVE QUESTIONS ANSWERED!!!
    7·1 answer
  • Whats the highest rank in brainly
    14·2 answers
  • 1. Write a query in SQL to list the following information of the artists in movie industry. Limit this information to only 5 art
    12·1 answer
  • Which statement about sample size is true?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!