1. Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z
2. Write an if statement that assigns 10 to the variable b, and 50 to the variable c if the
3. Write an if-else statement that assigns 0 to the variable b if the variable a is less
than 10. Otherwise, it should assign 99 to the variable b.
Has and how does it work?
Algorithm Workbench
of the variable x is greater than 100.
variable a is equal to 100.​

Answers

Answer 1

Answer:

if x > 100:

   y = 20

   z = 40

Explanation:


Related Questions

write a an algorithm to find out volume?​

Answers

This for the algorithm of a sphere:
Define the radius of the sphere.
Define the pie and assign (22/7)
Calculate the volume of the sphere as (4/3)*pie*r3
Assign the volume of the sphere to volume_of_sphere.
Print the volume of the sphere.

some of the ways we can resolve IPv4 address shortage

Answers

Answer:

NAT

Proxy

IPv6

Explanation:

Network Address Translation (NAT) allows a local area network (LAN) to connect to the internet using only one external IP address. The LAN addresses (typically 192.168.x.x) can be used over and over again.

A proxy is a computer that makes requests to the internet on behalf of the computers on a LAN. It is a more restricted flavour compared to the NAT, but the effect is the same.

IPv6 is a new addressing scheme that will use a 48 bits address space rather than a 32 bits address space of IPv6, and that would provide plenty of addresses.

What do you understand by storage devices ? Name any two storage devices.​

Answers

Answer:

Types of storage devices

Primary Storage: Random Access Memory (RAM) Random Access Memory, or RAM, is the primary storage of a computer. ...

Secondary Storage: Hard Disk Drives (HDD) & Solid-State Drives (SSD) ...

Hard Disk Drives (HDD) ...

Solid-State Drives (SSD) ...

External HDDs and SSDs. ...

Flash memory devices. ...

Optical Storage Devices. ...

Floppy Disks.

Answer:

this are the 2 examples of storage device

Hard Disk Drives (HDD)

Solid-State Drives (SSD)

Explanation:

basically storage device is a piece of hardware that is primarily used for storing data.

I hope it helps mate

mark me brainliest plsss

I will always help you understanding your assingments

have a great day

#Captainpower :)

What is a commonly used software access restriction for a computer system connected to other networks such as the internet?
a.Passwords
b. Firewall
c. encryption
d. biometric systems

Answers

Answer:

firewall

Explanation:

This is similar to the last problem, except that the first number on a line is an ID number that identifies an account. The same ID number may appear on any number of lines. Use a Dictionary to accumulate, for each ID, the sum of all the numbers that are on all the lines with that ID number. Call the input file id_data.txt. Write an output file called ID_sums.txt. On each line of the output fille, print an ID number and the sum. Sort the lines by the numerical order of the IDs

Answers

Answer:

Following are the code to this question:

def getSum(ID):#defining a method getSum that accept an ID

   t= 0#defining a variable t

   while ID!= 0:#defining while loop to check ID not equal to 0

       t+= ID % 10# holding remainder value

       ID = ID // 10#holding quotient value

   return t#return total value

def readRecord(S):#defining a method readRecord that hold list  

   f_Read = open("idInfo.txt","r")#defining a variable f_Read to open file

   for C_ID in f_Read:#defining for loop to hold file value  

       C_ID = C_ID.replace('\n', '')#use replace method

       S[C_ID] = getSum(int(C_ID))#use list to method value

   f_Read.close()#close file

def sortRecord(ID_List, t_List):#defining a sortRecord

   for x in range(len(ID_List) - 1):#defining for loop to calculate the length of list  

       for y in range(0, len(ID_List) - x - 1):#defining for loop to calculate the length of list

           if ID_List[y] > ID_List[y+1]:#defining if block to check value is greater

               ID_List[y], ID_List[y+1] = ID_List[y+1], ID_List[y]#swap the value

               t_List[y], t_List[y+1] = t_List[y+1], t_List[y]#swap the value

def showReport(ID, t):#defining a method showReport that accept id and t

   for i in range(len(ID)):#defining for loop to hold index value

       print(ID[i]," ",t[i])#print index value

def writeRecord(ID_List, t_List):#defining a method writeRecord that accept two list

   f_Write = open("idSorted.txt","w")#defining a variable f_Write to hold store value in file

   for i in range(len(ID_List)):#defining a for loop to store value with index

       f_Write.write(ID_List[i])#hold list value

       f_Write.write(" ")    #for space

       f_Write.write(str(t_List[i]) + "\n")# add index value

   f_Write.close()#close file

def run():#defining method run

   S = {}#defining an empty list

   readRecord(S)#passing list into readRecord method

   ID_List = list(S.keys())#defining a variable that holds key value in list

   t_List = list(S.values())#defining a variable that holds values value in list

   sortRecord(ID_List, t_List)#calling a method sortRecord by passing value

   showReport(ID_List, t_List)#calling a method showReport by passing value

   writeRecord(ID_List, t_List)#calling a method writeRecord by passing value

if "run":

   run()

Output:

Please find the attached file.

Explanation:

In the above program code, 6 method getSum, readRecord, sortRecord,showReport, writeRecord, and run method is defined, in which getSum and readRecord is used a single list store value in parameters, and in other methods, it accepts two parameter to store value in key and values form and use a txt file to store and take value.    

In the run method, an empty list s is declared, that pass into the variable ID_List and t_List, and call the method, in this program two a text file "idInfo.txt" is used, that holds some value in the file, and create another file that is "idSorted.txt", in this file it stores the value in the numerical order of the ID's.

public class Main{ public static void main(String [] args){ String name=WelcomeJava; Runnable r1=() -> System.out.println(name); String name1 = name.toUpperCase(); Runnable r2=() -> System.out.println(name1); r1.run(); } }
What is the output of the above program?

Answers

Answer:

Concept: Programming

You take a string as an input, and you output the result which is a user defined name.Then you take that name and turn all the strings to uppercase in name and return that result.Rate brainlist

The output of the given program is,

''WelcomeJava''

Given program is,

public class Main {

   public static void main(String[] args) {

       String name = "WelcomeJava";

       Runnable r1 = () -> System.out.println(name);

       String name1 = name.toUpperCase();

       Runnable r2 = () -> System.out.println(name1);

       r1.run();

   }

}

Now, This program defines a class called Main, with a main method as the entry point.

It declares a String variable name with the value "WelcomeJava".

Then, it creates a Runnable r1 that prints the value of the name when executed.

Next, it converts the name to uppercase and assigns the result to name1.

Finally, it creates another Runnable r2 that prints the value of name1 when executed.

In the main method, r1 is called using the run method, resulting in the output "WelcomeJava".

Read more about Python programs at:

brainly.com/question/26497128

#SPJ4

In the Dognition_aggregated_by_DogID data set, what is consistent about the relationship between breeding group and number of tests completed, regardless of whether you aggregate the variable representing the number of tests completed by the median or the average of the breeding group?

Answers

Answer:

Toy dogs

Explanation:

Tableau is an application used for statistically analyzing and visualizing data. It is very popular for its ecstatic data visualization figures and works with all dataset types to create a tableau data format.

The Dognition_aggregated_by_DogID dataset holds data for the different dog types, breeding, and tests done on them. The consistent relation between the breeding group column and tests completed is the toy dogs.

Mary is writing an article about the animal kingdom. She wants to place an image below the text. Which menu should Mary choose for this
purpose?
Mary needs to choose the _________
menu in order to place the text in a desired fashion around the image

Plato btw

Answers

Answer:

she needs to choose the insert menu

what type of collection is used in the assignment statement
info: [3:10,4:23,7:10,11:31]

tuple
list
Duque
dictionary ​

Answers

Answer:

The correct answer to this question is given below in the explanation section.          

Explanation:

There are four data types in Python used to store data such as tuple, list, set, and dictionary.

The correct answer to this question is option D: Dictionary

Dictionary data type is used to store data values in key:value pairs as given in the question. It is a collection that is changeable, unordered, and does not allow duplicate entries.

Dictionaries in Python are written with curly brackets and have keys and values such as car={name="honda", model=2010}

when you run the given assignment statment such

info= {3:10,4:23,7:10,11:31}

print(info)

It will print the info dictionary (key:value pair)

{3: 10, 4: 23, 7: 10, 11: 31}

While other options are not correct because:

Tuples in Python are used to store multiple items in a single variable. For example:

info=("apple", "banana", "cherry")

List is used to store multiple items in a single variable. for example

myList = ["apple", "banana", "cherry"]

print(myList)

The list is ordered, changeable, and allows duplicate entry. But you can not put key: value pair in the list.

Deque is a double-ended queue that has the feature to add or remove an element on it either side.

Answer:

Dictionary is the answer

A formal method for designing and representing human-computer interaction dialogues using box and line diagrams is called:________.

Answers

Answer:

Dialogue Diagramming

Explanation:

Dialogue is simply a sequence of interaction that usually occurs between a user and a system.it consists of Designing the dialogue sequence, Building a prototype and Assessing Usability

Dialogue diagramming is a known widely anf formal means by which we are designing and representing human-computer dialogues using box & line diagrams.

I'm in Paris and want to take a picture of my mom in front of the Eifel Tower. I want both her and the tower to be in sharp focus. Which aperture is likely to do the best job of giving me that deep depth of field?
a) 2
b) 5.6
c) 11
d) 22
50 Points and brainliest mark

Answers

Answer:

Explanation:

It depends on the day. 5.6 might be best if it is a cloudy day. 2 would not work under any conditions.

11 might work well on a hazy day, but the sun is sort of visible.

A nice clear sunny day would allow you to use 22.

Answer:

Generally, a small aperture like f/8 will give you enough depth of field to be able to make most of your image sharp. However, if the subject is too close to your camera, you might need to either move back or stop down the lens even further to get everything looking sharp

And mostly :

It depends on the day. 5.6 might be best if it is a cloudy day. 2 would not work under any conditions. 11 might work well on a hazy day, but the sun is sort of visible. A nice clear sunny day would allow you to use 22.

what is priori criteria in econometric?

Answers

a priori probability refers to the likelihood of an event occurring when there is a finite amount of outcomes and each equally likely to occur. the outcomes in a priori probability are not influenced by the priori outcome.

Answer:hbvfcxzsxdfcgvhbgfds

Explanation:

explain the major innavotions made from the establishment of abacus​

Answers

Answer:

The abacus is one of many counting devices invented to help count large numbers.

Explanation:

A(n) __________ records the activities of computer operators surrounding each event in a transaction.
A. threat analysis
B. audit trail
C. DNA profile
D. expert systems analysis

Answers

Answer:

B. audit trail

Explanation:

A(n) audit trail records the activities of computer operators surrounding each event in a transaction.

I believe the answer is b


If you wanted readers to know a document was confidential, you could include a ____ behind the text stating
"confidential".
watermark
theme
text effect
page color

Answers

I have no idea for that

Answer:

watermark

Explanation:

Which focal length and aperture combination is most likely to give you a deep depth of field?
a)50mm f2
b)120mm f4
c)18mm f22
d)120mm f5.6
50 points and brainliest mark

Answers

Answer:

f/11 is the answer I think

Amanda would like to add text to a slide in her presentation. Select all of the correct methods she can use to add text.
Select "Text" from the Insert menu.

Click in the Task pane and enter text.

Draw a text box, click in it, and enter text.

Click in a placeholder and enter text.

PLEASE help

Answers

Answer:

Draw a text box

Explanation:

Because if she draw it she can edit and write what she want

A specific packet journey, from your computer to a remote server, end-to-end across multiple networks, has the following link bandwidths (packet travels across each of these links, in order): 1000 Mbps, 1 Mbps, 40 Mbps, 400 Mbps, 100 Mbps, 1000 Mbps. Assuming your computer and the server can transfer data at > = 1000 Mbps (so neither device is limiting the data transfer relative to the links), how long, in seconds, will it take to transfer a 125 MB file?

Answers

Answer:

0.125 seconds

Explanation:

The formula for the time taken to transfer the file is = file size / bandwidth

Assuming the computer and server could only transfer data at the speed of 1000 Mbps or more, The time of transmission is;

= 125 MB / 1000 Mbps = 0.125 seconds.

GIVEING BRAINLIST TROLL ANSWERS GET REPORTED Don't worry about making a vid 100 POINTS IF U DONT KNOW DONT ANSWER UNIT 2
Lab

Each lab includes instructions or questions requiring the use of the internet to complete the task. Please use complete sentences and appropriate headings where applicable. If included, refer to the rubric below to see how you will be graded. Note that links open a new browser window.


Submit your work as a file attachment using the dropbox tool.


This lab is worth 10 points.


UNIT 2 LAB

Chemistry Matters

Subjects that we learn in school can lead us down all kinds of different career pathways. In these three cases, watch how an interest in chemistry helped some people find the perfect career. Note how each of these chemistry enthusiasts ended up in different career clusters.


Career Connections: Food Scientist


Career Connections: Chemical Engineer


Career Connections: Chemist


Now imagine that you are a reporter. Your local high school has decided to do away with chemistry class because no one seems to want to take it. You have been asked to do a five-minute news segment on the ways that keeping the chemistry class can positively impact the community. To prepare for the segment, watch the above videos and consult the Bureau of Labor Statistics’ Occupational Outlook Handbook.


In your video, answer the following questions:


How did chemistry prepare each of these people for their career?

What opportunities was each person able to take advantage of as a result of their background in chemistry?

What is the career outlook for each of these careers?

How you get into the field (Hint: See the “How to become…” section of the Occupational Outlook Handbook)

Typical pay (Hint: See the “Pay” section of the Occupational Outlook Handbook)

How fast this career is expected to grow (Hint: See the “Job Outlook” section of the Occupational Outlook Handbook)

How does each person’s work benefit the community? (This will help people understand the importance of offering chemistry to those who are still in school.)

It’s up to you to convince your viewers that chemistry can be useful in planning their career paths! Create and upload a five-minute video of your news segment.


TABLE Grading Rubric

Video Mechanics Video Content

Full Credit

Student has submitted a video that is clear and five minutes long.


Student has discussed all three careers and answered all four questions.


Partial Credit

Student has submitted a video that is unclear OR that is less than five minutes long.


Student has discussed one or two of the careers OR student has not adequately answered all four questions for each career.


Little Credit

Student has not submitted a video OR student’s video is unclear.


Student has not discussed the three careers OR student has not answered the questions.


?

Answers

How did chemistry prepare each of these people for their career?

All of their jobs are related with some form of Chemistry. Food Scientists work with different foods, and working on making better ones. Chemical Engineers focus on finding new and innovative uses for different elements. And Chemists focus on different breakthroughs in the periodic table. It all came from the first Chemistry Course they took in high school.

What opportunities was each person able to take advantage of as a result of their background in chemistry?

As said previously, they all studied chemistry from College (Maybe even High School.) If they never took these courses, they would be behind and it would be much harder for them to pursue any of these careers.

What is the career outlook for each of these careers?

All of these careers make $72,610  per year, as of 2015. This is a whole $6,050 per month, $1,512 a week. Plenty of influential people were Chemists, included Alfred Nobel, Marie Curie, and Louis Pasteur.

How you get into the field (Hint: See the “How to become…” section of the Occupational Outlook Handbook)

To enter the field, you need to start studying Chemistry. There are many paths of Chemistry, such as Biochemistry and Chemistry. These each branch out in several different ways. Think of it like a tree.

Typical pay (Hint: See the “Pay” section of the Occupational Outlook Handbook)

As said in an earlier segment, the average Chemist makes $72,610 per year, as of 2015, and the average Chemical Engineer makes up to 90k per year.

How fast this career is expected to grow (Hint: See the “Job Outlook” section of the Occupational Outlook Handbook)

This is a career that will always be needed. Discovering new elements for the periodic table is extremely important. No matter where we live, whether in America, in Europe, even on another planet, this job will always be a necessity.

How does each person’s work benefit the community? (This will help people understand the importance of offering chemistry to those who are still in school.)

Each person's work is extremely beneficial, because without this branch, and every chemist's work, we would not have:

1. Clean Water

2. Gasoline

3. Antibiotics or Vaccines

4. Electricity

5. Plastic

And many other things would not exist.

Ryan is a manager who maintains an official record of the events that happen in his company. At the end of the day, he writes about the events that took place. The words that he frequently mentions in his record are today, client, and meeting. The moment he types the first two letter of these words, they appear as a suggestion. Which feature of the word processing program makes these suggestions

Answers

Answer: word completion

Explanation:

Answer:

Word Completion

Explanation: because i took the test.

Put the steps in order to produce the output shown below. Assume the indenting will be correct in the program.

5 3
9 3
5 7
9 7

Answers

Answer:

I took a screenshot of the test withe that question

Explanation:

C++

Write a program that reads in at most 100 integers that are between 1 and 100 and counts the occurrence of each number in the list. Assume the list ends when a zero is inputted.

Answers

Answer:

#include <iostream>

#include <map>  

using namespace std;

int main()

{

   map<int, int> numbers;

   cout << "Enter numbers, 0 to finish" << endl;

   int number;

   while (true) {

       cin >> number;

       if (number == 0) break;

       numbers[number]++;

   }

   for (pair<int, int> element : numbers) {

       std::cout << element.first << ": occurs " << element.second << " times" << std::endl;

   }

}

Explanation:

One trick used here is not to keep track of the numbers themselves (since that is not a requirement), but start counting their occurrances right away. An STL map< > is a more suitable construct than a vector< >.

Please help with this

Answers

Answer:

Horizontal lines chart/graph

Select the correct answer. Which type of computer application is Apple Keynote? OA. word processor O B. spreadsheet O C. presentation OD. database O E. multimedia

Answers

Answer:

Apple Keynote is presentation Software

The correct option is C

Explanation:

Now let explain each option

Word processor:

Word processor is incorrect because it is used to type text, format it add tables and figures, For example MS Word

Spread Sheet:

Spread Sheet is incorrect as it is used for calculation. Like MS Excel

Presentation:

Key tone is a presentation software. it is used to make presentation and add animation and transition to it.

Database

Database is incorrect because databases are used for storing data. Not for presentation.

how do you evaluate the use of the navigational aids and technology

Answers

Explanation:

A navigational aid or AtoN or navaid is any sort of marker that guides to mark safe waters and also help mariners in determining their position with respect to land or any navigational hazard or hidden danger. Traditionally aids to navigation have been physical aids such as lighthouses, buoys and beacons

describe the impact of technology in your life . how does it affects your human relations with other people .​

Answers

Answer:

Technology has a huge impact on my life, it has helped me visit places, talk to people, and captivate me. For example, using a car I have visited my friends and family. This is making a stronger bond with those people I visited. And, using my phone I can call and text people. this has led to making lots of friends and stronger relationships. Technology is important for human contact unless you want to ride carriages around the streets.

what is bullk email software​

Answers

Bull email software is a software that is used to send emails in large quantities

Hope this helps

The type of device which is 3 ½ inch floppy drive is​

Answers

Answer:

That would be known as a floppy disk(literally)

Explanation:

It is a removable magnetic storage medium. They are used for moving information between computers, laptops or other devices.

explain the major innavotions made from the establishment of abacus​

Answers

Answer:

The summary of that same question would be described throughout the following section.

Explanation:

Specification of simple or rough arithmetic has been accomplished through imaginative technologies with stone blocks, developers have always used computer systems again for the past decades. The varying forms of technology of the 5th generation were indeed desktops, notebooks, or laptops, and they can look at images of pieces of machinery that have been pioneered before today's computer systems.

The U.S. military's standard for computer security is known as
DCS-3000.
TEMPEST.
Daubert standard.
Carnivore.

Answers

Answer:

TEMPEST.

Explanation:

TEMPEST is an acronym for Telecommunications Electronics Materials Protected from Emanating Spurious Transmissions and it is a secret (classified) project of the government of the United States of America that originated with its military in the 1960s based on the study of security with respect to telecommunication devices emitting Electromagnetic Radiation (EMR).

Hence, the U.S. military standard for computer security is known as TEMPEST.

The main purpose of the Telecommunications Electronics Materials Protected from Emanating Spurious Transmissions (TEMPEST) is to prevent the theft, compromise or interception of informations that are being transmitted on various telecommunications devices through the use of Electromagnetic Radiation (EMR).

Other Questions
On a team, 6 girls and 5 boys scored a total of 57 points. The difference between the number of points scored by the 6 girls and the number of points scored by the 5 boys is 27. Each girl scored the same number of points and each boy scored the same number of points. Find the number of points scored by each girl and each boy. PLZ ANSWER IF U KNOW THE ANSWER PLA ANSWER I DONT KNOW THIS Identify types of toxic waste generated in a dental office Determine whether the relation is a function. Quick EMERGENCY PLEASE FAST If Earth did not rotate and there were no Coriolis effect, surface winddirection would primarily be *From east to westFrom west to eastFrom the poles to the equatorO From the equator to the poles PLZ HELP, GIVING BRAINLIEST!!!Use the graph to state the intervals of increase and decrease. (Check pic below to find the graph and answer choices) Why was the Carolina split interesting? What role did de Bor play in the Louisiana colony? He was the first governor of Louisiana. He was the first mayor of New Orleans.He created new rights for enslaved workers. He led the largest slave revolt in US history. What is the net force of the diagram? A shop keeper purchased 200 bulbs for Rs.10 each. However 5 bulbs were fused and had tobe thrown away. The remaining were sold at Rs.12 each. Find the gain or loss % Tevebaugh Corporation is a manufacturer that uses job-order costing. The company closes out any overapplied or underapplied overhead to Cost of Goods Sold at the end of the year. The company has supplied the following data for the just completed year The cost of goods available for sale is:________Beginning inventories: Finished goods $ 30,000 Estimated total manufacturing overhead at the beginning of the year $ 568,000 Estimated direct labor-hours at the beginning of the year 32,000 direct labor-hoursResults of operations:Raw materials (all direct) requisitioned for use in production $ 501,000 Direct labor cost $ 683,000 Actual direct labor-hours 33,000 direct labor-hoursManufacturing overhead: Indirect labor cost $ 176,000 Other manufacturing overhead costs incurred $ 420,000 Selling and administrative: Selling and administrative salaries $ 219,000 Other selling and administrative expenses $ 346,000 Cost of goods manufactured $ 1,567,000 Sales revenue $ 2,498,000 Cost of goods sold (unadjusted) $ 1,376,000 The net operating income is:$892,750$765,750$546,750$1,111,750 Erica earn money by tutoring and babysitting. She always tutors for 5 hours each week and the amount she babysits changes from week to week. let x be the hours that arica babysitters. Write an expression to show the total numbers of hours erica works each week.Numbers That you have to use to solve this problem: +,-, . , =, ( , ), x, 5, 8, 13 HELPPPPP :pExplain how precipitation happens. Use complete sentences and give at least two supporting details. Write a thesis statement for your argument for why kids should do vollunteer work Amine passes through the points (710) and (7, 20). Which statement is true about the line?It has a slope of zero because it in the formula -is zero, and the numerator of a fraction cannotIt has a slope of zero because in the formula -is zero, and the denominator of a fractioncannot be zeroIt has no slope because yn dy in the formulais zero, and the numerator of a fraction cannot beit has no slope because ty - to in the formula m-is zero, and the denominator of a fraction cannot bezero Andrew Carnegie wrote, The contrast between the palace of the millionaire and the cottage of the laborer with us todayis not to be deplored, but welcomed as highly beneficial. Which idea is best reflected in this quotation?A) unionismB) capitalismC) grangerism D) populism write a an algorithm to find out volume? Which value of x makes the equation x + 7 = 21 true?O A. 7O B. 14O c. 21OD. 28 A. The United states annexed Texas.i need evidence from the text book on why this is correct