Write code that generates a random odd integer (not divisible by 2) between 50 and 99 inclusive.

Answers

Answer 1

import random

nums = [x for x in range(50,100) if x%2!=0]

print(random.choice(nums))

We use a list comprehension to create a list of the odd numbers between 50 and 99. Then we randomly choose one of those numbers using the random module.


Related Questions

Write a value function called sugarScaled with the following three parameters: A real-number scale that defaults to 1.7.
A whole-number naturalSugarLevel that is a sugar amount in grams.
A whole-number artificialSugarLevel that is a sugar amount in grams.
The function adds the two sugar levels, multiplies the sum by the scale, and returns that value from the function.

Answers

Explanation:

const double scale = 1.7;

int sugarScaled(double scale, int naturalSugarLevel, int artifiialSugarLevel){

   return scale * (naturalSugarLevel + artifiialSugarLevel);

}

//CODEvoid f(int a){while(a--) {static int n = 0;int x = 0;cout << "n: " << n++ << " ,x: " << x++ << endl;}}int main(){f(3);return 0;}Question: What is the output of the above code?

Answers

Answer:

The static n variable is incremented twice and the results printed in the console but the output of the x variable remains constant.

Explanation:

The while loop in the C++ source code increments the n variable as the argument of the function "a" is decremented. The n variable output is 0,1, and 2 while the x variable is 0 for every iteration.

lits q4 plz help...in the end i'll mark brainiest

Answers

HTTPS is a more secure and highly advanced version of http

Assume you are part of the systems development team at a medium-sized organization. The database will enable sales reps to have more control over their customer information including up to date information on purchases, backorders, returns, and invoices. As a result of the system the company will be able to assign accounts to sales reps based on their expertise, the proximity to their other accounts, and experience level in the company. Commissions will also vary based on the types of products and services sold and the reps will be able to see special promotional programs in their regions. Part 1: you have just completed the database design portion of the systems design phase, and the project sponsor would like a status update. Assuming the project sponsor is a VP in the marketing department, with only a high-level understanding of technical subjects, how would you go about presenting the database design you have just completed? Part 2: how would your presentation approach change if the project sponsor were the manager of the database team?

Answers

This is my answer


2. Presenting to a non-technical manager should be much more high-level, with few if any technical details. The focus should be on how the database design will benefit the business (for example, with faster report generation). Presenting to a technical manager would be focused much more on the technical aspects of the database, with less of a focus on the business benefits of the design.

Best of Luck
for your work and
d
Best wishes for you
.​

Answers

oh, why thank you same to you

Awwwww thank you
( please mark brainliest)

Edhesive Intro to CS Code Practice 1.8


I am pretty sure I got it right. But it keeps telling me that I have an EOF error on the E input.

Answers

Questions:

CS Code Practice 1.8  Question 1:

Write a code that accepts the user's age as an input, then print their age in 10 years.

CS Code Practice 1.8  Question 2:

Write a code that accepts a whole number as an input, subtracts 5 and print the answer

Answer:

Question 1:

currentage = int(input("Enter your age: "))

print("Your age in 10 years is "+str(currentage + 10))

Question 2:

userinput = int(input("Enter a whole number: "))

print(str(userinput)+" - "+str(5)+" = "+str(userinput - 5))

Explanation:

There are two questions in this category and I don't know which of them you need; So, I answered both.

Question 1:

This line prompts user for age

currentage = int(input("Enter your age: "))

This line adds 10 to user input and prints the result

print("Your age in 10 years is "+str(currentage + 10))

Question 2:

This line prompts user for a whole number

userinput = int(input("Enter a whole number: "))

This line subtracts 5 from the whole number and prints the result

print(str(userinput)+" - "+str(5)+" = "+str(userinput - 5))

Which TWO objects are likely to have SSD chips in them?
office access card
bank debit card
food service token
discount coupon
business card

Answers

Bank card and discount coupon

Answer:

Bank card and discount coupon

Explanation:

Describe two circumstances where access services might get implemented by organizations please.​

Answers

Answer:

Answered below

Explanation:

Remote access enables access to an organisations network from remote places. Certain conditions require such access. An organisation might require their workforce to work from home especially in this coronavirus health pandemic situation. Therefore remote access is necessary.

Also attending to customers needs, virtual meetings and connections to workers and clients all over the world, can only be made possible by the implementation of secured remote access, by the organisation.

A software developer is creating a variable to hold whole numbers and will perform numeric operations on the values stored in that
variable. Which of the following data types is the BEST for this purpose?

Answers

Answer:

blue 80 Omaha a set hut

Explanation:

Will, there be any presents this year

Answers

Answer:

no why

Explanation:

Starting at time 0, a new process p of length 3 arrives every 4 time units. Starting at time 1, a new process q of length 1 arrives every 4 time units. Determine the ATT under FIFO, SJF, and SRT.

Answers

Answer:

A.T= Arrival Time B.T= Burst Time C.T= Completion Time T.T = Turn around Time = C.T - A.T W.T = Waiting Time = T.T - B.T ATT=sum of all Turn-around time / total no of process FIFO (first in first o

select all the apply. Effective presentations

Answers

Answer:are influenced by their setting, are consistent in their message, and are tailored to their audience.

Explanation:

Correct on Edge 2020

Write the HTML for a paragraph that uses inline styles to configure the background color of green and the text color of white.

Answers

Answer:

The full form of HTML is Hyper Text markup Language

Explanation:

HTML stands for Hyper Text Markup Language. It is a programming language. It is a standard markup language that is designed for the documents to be displaced in the web browser. It is used to structure the content of a web page.

The HTML is

<html>

<body>

<p style="bg-color:green;" "color=white;">This is paragraph study</p>

</body>

</html>

Give a recursive definition of the set of positive integer powers of 3.That is the set {3,9,27,81,...}

Answers

Answer:

We have set A,

3 ∈ S

n*3 if n ∈ S

Explanation:

A recursion can be defined as a way of defining objects in terms of itself or as parts of itself.

Lets say we a set that is defined as A,

Then the recursive definition of the sets of positive integers with the powers of 3 in A is given as

3 ∈ S

n*3 if n ∈ S

This tells us that 3 is an element of S such that if n is an element of S then in general we would have n*3 to be an element of S

Design a for loop that gets 6 integer numbers from a user, accumulates the total of them, then displays the accumulated total to the user. Just write the code segment to show what is asked, not a complete program. However, declare any variables that you need to use. Use a semicolon (;) at the end of each line of code so I can tell when you use a new line in your code.

Answers

Answer:

Explanation:

The following loop code is written in Java and asks the user for the 6 integer numbers as mentioned in the question and sums them up. Finally putting them into a variable named total and printing it out.

       int total = 0;

       for (int x = 0; x < 6; x++) {

           Scanner in = new Scanner(System.in);

           System.out.println("Enter an integer: ");

           total += in.nextInt();

       }

       System.out.println("Your total is: " + total);

Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways. Complete the program to read the needed values from input, that the existing output statement(s) can use to output a short story. Ex: If the input is: Eric Chipotle 12 cars

Answers

Answer:

statement = input("Enter four words separated by a space: ")

split_list = statement.split(" ")

print(f"{split_list[0]} went to {split_list[1]} to buy {split_list[2]} different types of {split_list[3]}")

Explanation:

The python program uses the input function to get user input from the STDIN and the words gotten are splitted to a list, then the items of the list are used as part of a sentence.

Answer:

Playing around with this and came up with this, it took about an hour before I understood what it was wanting.

first_name = input()

generic_location=input()

whole_number= input()

plural_noun= input()

print(first_name, 'went to', generic_location, 'to buy', whole_number, 'different types of', plural_noun)

Explanation:

I didnt understand it at first until I thought about it.  This would be the answer if you are looking for it.

A technology that can help a student to increase his or her understanding of the vocabulary used in a classroom is called:_______

a. assistive instruction.
b. UDL technology.
c. hypertext software.
d. adaptive instruction.

Answers

Answer:

c. hypertext software.

Explanation:

In Computer science, a hypertext can be defined as textual informations that are being displayed on a computer system and these texts usually links to other informations (texts) that the user can easily have access to in real-time.

Basically, some developers include encyclopedias and dictionaries in their software database, which makes other necessary informations or contents easier and immediately accessible to the users through the use of hypertexts that is activated by pointing and clicking on the link with a mouse, keypress set or soft touching the screen.

Hence, a technology that can help a student to increase his or her understanding of the vocabulary used in a classroom is called hypertext software.

Visual Design includes 4 elements: shapes, texture, lines and form.

Question 6 options:
True
False

Answers

Answer:

Explanation:

The answer is false

Because the 4 elements are shapes texture colour and size

use the drop-down menus to complete the statements about using column breaks in word 2016

Answers

Answer: layout, section, number, more options

Explanation:

Just did it on edge 2020

Answer:layout

Section

Number

More options

Explanation: got an A on the test

Define bit byte and word

Answers

Explanation:

Definitions. Bit = Binary digIT = 0 or 1. Byte = a sequence of 8 bits = 00000000, 00000001, ..., or 11111111. Word = a sequence of N bits where N = 16, 32, 64 depending on the compute

If a system's instruction set consists of an 8-bit opcode, what is the maximum number of output signal lines required for the control unit?
A) 8 B) 64C) 128 D) 256

Answers

Answer:

D. 256

Explanation:

Given

[tex]Instructions = 8\ bit[/tex]

Required

Determine the maximum number of output

To get the required value, we make use of the following:

[tex]Maximum = 2^n[/tex]

Where n is the bits of the opcode.

i.e.

[tex]n = 8[/tex]

Substitute 8 for n in [tex]Maximum = 2^n[/tex]

[tex]Maximum = 2^8[/tex]

[tex]Maximum = 256[/tex]

Hence, option D answers the question

. Write and execute a query that will determine the average age of customers broken out by the city in which they reside. Note: Make sure that the average age is not truncated to an integer.

Answers

Answer:

SELECT resid_city, avg(convert(float,age))

  FROM customer

 GROUP BY resid_city

Explanation:

SQL or structured query language is a language used to interact with databases. It is a relational database language, used to create, update, and query the content of databases.

The "SELECT" clause in the query statement above is used to read the content of the customer table querying the table based on the average age of customers grouped by their resident cities to return the "resid_city" and the float number of the average age.

An IT systems engineer creates a new Domain Name System (DNS) zone that contains pointer (PTR) resource records. Which zone type has been created?

Answers

Answer:

SOA

Explanation:

Statement of Authority, or you could also say that the zone that has been created is a reverse lookup

If a machine cycle is 2 nanoseconds , how many machine cycles occur each second?

Answers

Answer: 5 × 10^8 cycles per second

Explanation:

First and foremost, we should note that 1 nanosecond = 1 × 10^-9 seconds

We are told that the machine cycle is 2 nanoseconds.

The number of machine cycles that occur each second will them be calculated as:

1 = 2 × 10^-9

= 5 × 10^8 cycles per second

The number of machine cycles that occur each second is 5 × 10^8 cycles per second.

1. Write a high level algorithm for cooking a cheeseburger.

2. Write a detailed algorithm for cooking the same cheeseburger.

Answers

Answer:

1.  A high level algorithm for cooking a cheeseburger could be:

Heat fry panCook one side of the hamburgerWaitTurn hamburger upside downPut cheese over hamburgerWaitCut hamburger bread in halfPut cooked hamburger inside breadEnd (eat)

2. A detailed algorithm for cooking a cheeseburger could be:

Place fry pan over the stove heaterTurn on heater (max temp)IF fry pan not hot: wait, else continuePlace raw hamburger on fry panIF hamburger not half cooked: Wait X time then go to line 5, else continueTurn hamburger upside downPut N slices of cheese over hamburgerIF hamburger not fully cooked: Wait X time then go to line 8, else continueTurn off heaterCut hamburger bread in half horizontally Put cooked hamburger on one of the bread halves.Put second bread half on top of hamburgerEnd (eat)

Explanation:

An algorithm is simply a list of steps to perform a defined action.

On 1, we described the most relevant steps to cook a simple cheeseburger.

Then on point 2, the same steps were taken and expanded with more detailed steps and conditions required to continue executing the following steps.

In computational terms, we used pseudo-code for the algorithm, since this is a list of actions not specific to any programming language.

Also we can say this is a structured programming example due to the sequential nature of the cooking process.

Computer Hardware and Maintenance
Question 1 of 5
A protocol for maintaining technology and supplies may answer
questions such as:
What is the replacement life for each piece of equipment?
All of these answers
What should supplies be ordered?
When will security updates and enhancements be applied?
Submit Ansv

Answers

Answer:

All of these answers

Explanation:

A computer's physical components must be inspected, updated, and maintained over time to keep them functioning at their best. This process is known as hardware maintenance. Thus, option B is correct.

What is the best way for hardware Maintenance?

Regular hardware maintenance typically aids companies in avoiding unforeseen problems like device damage and severe data loss.

Regular hardware repair of servers and other physical parts enables businesses to retain their operational integrity and keep a stable IT infrastructure.

While corrective maintenance entails replacing or repairing a system or its components after they have already failed, preventive maintenance encompasses actions that can be taken to keep the system operating.

Therefore, Preventive and corrective maintenance are the two key elements of system upkeep.

Learn more about Hardware here:

https://brainly.com/question/28146743

#SPJ2

Is data science the sexiest job in 21st century according to Harvard business review?

Answers

Answer:

yuppp

Explanation:

i looked it up lol

5.14 Describe how the compare and swap() instruction can be used to provide mutual exclusion that satisfies the bounded-waiting requirement. (15 pts)

Answers

Answer:

Explained below

Explanation:

Compare and Swap(C&S) is simply an atomic operation whereby the compare and swap operations are automatically executed.

Now compare and Swap basically needs 3 arguments namely:

- 2 old values which we will label X and Y

- 1 new value which is written in X that we will call Z

Thus, we now have; C & S = {X, Y, Z}

To explain this well, let X be a variable where X has a value of 7.

Now, if a programmer gives a program me that X be multiplied by 2,then what C&S operation will do is;

I) Y = X where Y is a new variable.

II) Result = C&S(X, Y, X*7)

Variable X is global and this means that mere than one process and more than 1 thread can see the variable X.

Now, if a process named P1 wants multiply the variable X by 7 using C&S operation, it will first make a local copy of variable X (which in this case is now the new variable Y). After that it will atomically compare X & Y and if they are equal, it will replace X with 10X.

However, if they are not equal, P1 will re-read value of X into Y and carry of C&S instruction again.

Display the order date and the ship date for all orders that were made April 1 through April 15. List the order date, ship date, order priority, and ship mode. Order the results by order_date. Do you notice anything unusual about the data? [Hint: You will need to join the orders and shipping together and use a join statement. You will need to limit the result set by the date field order_date <= to_date('04/15/2018', 'mm/dd/yyyy')This is what I was able to come up with but it still gave me an error.select orders.order_date, shipping.ship_date, orders.order_priority, shipping.ship_modefrom ordersinner join shipping on orders.order_date = shipping.ship_datewhere Orders.Order_date = Shipping.ship_date AND Order_Date BETWEEN TO_DATE (’04/01/2018’, ‘04/15/2018’)ORDER BY Order_Date;

Answers

Answer:

SELECT Order_date, Ship_Date, Order_priority, Ship_mode

FROM orders

JOIN Shipping ON Orders.Order_id = Shipping.Order_id

WHERE Order_date

BETWEEN TO_DATE('04/01/2018', '%m/%d/%Y') AND TO_DATE('04/15/2018', '%m/%d/%Y')

ORDER BY Order_date

Explanation:

The SQL statement above queries a database with four tables shipping, orders, market and product. The query returns four columns from two tables orders and shipping, returning only rows with order dates between April 1 and April 15 of 2018. The tables are joined with the primary key order_id and the dates are parsed with the to_date function. The result is also ordered by the order_date

Who designed the Apple I computer in 1976?

Answers

Answer:

Steve Wozniak

Answer:

Steve Wozniak

Explanation:

Other Questions
Select an expression that is equivalent to 3(n 3) + 4. (1 point) a3n + 1 b3n 5 c3n + 13 d3n 3 Which economic conditions in the North contributed to the Great Migration? cul es la similitud entre elaustralopithecus y el ser humano Complete the pattern. 45.8 100 = 45.8 101 = 45.8 102 = 45.8 103 = What are some of the powers given to the Senate? 25 POINTS!! PLS HELP History question who can solve it ? Could you look over my personal essay for college applications and tell me what you think.Essay:It looked like a prison. This was my first thought when I saw my school for the year. A crowd of students glanced up as I walked past the gate into the schoolyard. Feeling like a trophy, my stepsister Mireia proudly introduced me to her friends. I fumbled over the word hola, hating my accent, everyone staring at the foreigner with bad Spanish. Mireia led me over to some pieces of paper taped onto the side of the building. She promised to make sure I made it to the right class, and I had no reason not to believe her. There was a crowd of people trying to see what class they were in. I had no idea what I was supposed to be looking at on the paper. Was I supposed to make sure I was in the right grade? I felt stares. The bell rang, and Mireia led me to where my grades classrooms were. Then she left. The bell rang again, and everyone entered their classes. I was left behind in the hallway alone. Confused, I walked into a random class hoping it was right. The teacher started reading through the list of students in her class. I waited, praying that I heard my name, but never did. Sitting there waiting for someone to realize that I was completely lost, blood slowly flowing to my cheeks. I tried to act like I didnt care that I was in the wrong room, but my embarrassment must have been obvious. The teacher looked at me, saying something quickly in Spanish. I nodded, feeling trapped. Not knowing what she said, but hoping I had responded correctly. I had been promised that I would make it into the right class, but instead, I felt abandoned.A student from the class I was supposed to be in knocked on the door, telling me in a thick accent that I was in the wrong class. I panicked, knocking my chair backward, my cheeks reddening as the class started laughing at me. I kept telling myself that I didnt care what they thought, but I clearly did. I was led into the right room, my face burning as the whole class turned around to look at me. I hated myself for so clearly showing my embarrassment. I sat down, not noticing the teacher smiling sympathetically at me. Not noticing the person who kindly offered to let me sit next to them or that none of this was truly Mireias fault. I just wanted to go home. The final bell rang a few minutes later, and I walked out of the school alone.But I came back the next day. This time I focused on everyone welcoming me to school. I focused on the students kindly doing their best to translate for me, and how lucky I was to be able to live in Spain, even if it didnt feel like it at the time. While I occasionally slipped back into a pattern of negativity over the next few months, I now knew how to escape that prison and take advantage of the opportunities that lay before me. 5.5 cmWhat is the circumference of this circle?cm The information is in the picture PLEASE HELP ME After its introduction, congressional leaders usually refer a proposed bill to ? use the drop-down menus to complete the statements about using column breaks in word 2016 I need help plz help Are there any risk factors for cancer if so what are they? brad had $10 to spend at the Rubys. 1/2 pound of sausage and 1 1/4 Pound of chicken. How much money did brad have left after he pays for his order? I NEED HELP ASAP I WILL MARK YOU AS BRAINLYLIST Probably why his name is the least popular,Pope Urban II ordered the first Crusade to theHoly Land to do this.Destroy the Dome of the RockMurder the Muslim unbelievers.Covert the Musimo to Christianity When escaping domestic violence, which steps are part of the decision-making process? Select three options.Call a support line.Make a decision about whether to stay or go. Review the decision and its consequences.Explain the reasoning behind leaving to the abuser.Consider the pros and cons of leaving the situation. answeredIf y = 3x and 2x 4y = 3, then x= Macbeth hallucinates Banquos ghost at the state dinner. Describe the ghosts appearance.