Write a Python program segment, using a loop, to calculate and print the sum of the odd integers from 20 to 120. (Hint: 21 23 25 . . . 117 119)

Answers

Answer 1

Answer:

for x in range(20,120):

   if x % 2 == 0:

       continue

   print(x)

Explanation:

in a range of 20 to 120 it does the following, if x is divisible by two as an int, then try again with a new number. If not, print that number.


Related Questions

Write a program whose inputs are three integers, and whose output is the smallest of the three values.Ex: If the input is:7153the output is:3

Answers

Answer:

The program is written in C++ language and given below in explanation section. All bold faced words are C++ keywords and symbols. Nested         if-else decision branch is used to determine smallest number of all three integers. First of all you have input three integers then the program prints smallest integer of all

Explanation:

#include <iostream>

using namespace std;

int main() {

   int num1,num2,num3;

   cout<<"enter first integers"<<endl;

   cin>>num1;

   cout<<"enter second integers"<<endl;

   cin>>num2;

  cout<<"enter the third integers"<<endl;

   cin>>num3;

   if(num1<num2){

      if(num1<num3){

           cout<<"Smallest integer is "<<num1<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }else {

       

      if(num2<num3){

           cout<<"Smallest integer is "<<num2<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }

  return 0;

}

Could someone help! I need to write a Python program based on Graphical User Interface.
The sum of the terms of an arithmetic progression and the identification of that value
with being “LESS OR EQUAL TO 50” or “GREATER THAN 50”
The program must have a program presentation window, containing at least one image and
two buttons, which will open other windows: one for data entry (the value of the first term,
reason and number of terms) and another for presentation by group members (credits). At
window for data entry (with another image), there will be a button that when pressed (clicked)
will show the calculated sum value and the identification of that value. This may appear in the same
(data entry) window.

Answers

Answer:

I can help with the code for performing the maths but the GUI aspect of it

how do i change my desktop theme on my chromebook?

Answers

Answer:

open Chrome.

At the top right, click More. Settings.

Under "Appearance," click Themes. You can also go to the gallery by visiting Chrome Web Store Themes.

Click the thumbnails to preview different themes.

When you find a theme you'd like to use, click Add to Chrome.

Explanation:

Java Eclipse homework. I need help coding this
Project 14A - Basically Speaking

package: proj14A
class: TableOfBases

Create a project called TableOfBases with class Tester. The main method should have a for loop that cycles through the integer values 65 <= j <= 90 (These are the ASCII codes for characters A – Z). Use the methods learned in this lesson to produce a line of this table on each pass through
the loop. Display the equivalent of the decimal number in the various bases just learned (binary, octal, and hex) as well as the character itself:
Decimal Binary Octal Hex Character
65 1000001 101 41 A
66 1000010 102 42 B
67 1000011 103 43 C
68 1000100 104 44 D
69 1000101 105 45 E
70 1000110 106 46 F
71 1000111 107 47 G
72 1001000 110 48 H
73 1001001 111 49 I
74 1001010 112 4a J
75 1001011 113 4b K
76 1001100 114 4c L
77 1001101 115 4d M
78 1001110 116 4e N
79 1001111 117 4f O
80 1010000 120 50 P
81 1010001 121 51 Q
82 1010010 122 52 R
83 1010011 123 53 S
84 1010100 124 54 T
85 1010101 125 55 U
86 1010110 126 56 V
87 1010111 127 57 W
88 1011000 130 58 X
89 1011001 131 59 Y
90 1011010 132 5a Z

Answers

Answer:

I can't just do your project but use this as a head start.

Explanation:

public class TableOfBases

{

   public static void main(String[] args)

   {

       // print out "Decimal    Binary   Octal   Hex    Character";

       //  write a for loop from 65 to 90

       for (int i ...  ) {

         // get a string for integer i with base 2

           String binary = Integer.toString (i,2);

         // get a string for integer i with base 8

           String octal = Integer.toString( ...   );

         // get a string for integer i with base 16

           String hex =  ...

        // get a char for a chararater that has ASCII code i

           char ch = (char) i ;

         // print out binary, octal and hex, and ch

       }

   }

}

/*

Project... Basically Speaking

Create a project called TableOfBases with class Tester.

The main method should have a for loop that cycles through the integer values

65 <= j <= 90 (These are the ASCII codes for characters A – Z).

Use the methods learned in this lesson to produce a line of this table on each pass

through the loop. Display the equivalent of the decimal number in the various bases

just learned (binary, octal, and hex) as well as the character itself:

Decimal Binary Octal Hex Character

65 1000001 101 41 A

66 1000010 102 42 B

67 1000011 103 43 C

68 1000100 104 44 D

69 1000101 105 45 E

70 1000110 106 46 F

....

71 1000111 107 47 G 72 1001000 110 48 H 73 1001001 111 49 I 74 1001010 112 4a J 75 1001011 113 4b K 76 1001100 114 4c L 77 1001101 115 4d M 78 1001110 116 4e N 79 1001111 117 4f O 80 1010000 120 50 P 81 1010001 121 51 Q 82 1010010 122 52 R 83 1010011 123 53 S 84 1010100 124 54 T 85 1010101 125 55 U 86 1010110 126 56 V 87 1010111 127 57 W 88 1011000 130 58 X 89 1011001 131 59 Y 90 1011010 132 5a Z

*/

Create a formula for sheet Inventory that highlights any rows where the Reorder level is below the On Hand level in yellow on excel 2016. Will mark brainliest if you can tell me how.

Answers

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

Assuming the reorder level (column C4 and the on-hand level or actual inventory (column B starting at row 4) are columns in the Excel worksheet. The reorder level is the minimum level of inventory before inventory is populated. So the formula compares the value of the actual level with the reorder level, if any row is less than or equal to the reorder level, the row is formatted with the selected color.

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

Cloud vendors that are hosting hardware, operating system, database, and other software, which clients can then use to build their own applications, are said to be providing: _______

a. Software as a Service.
b. Hardware as a Service.
c. Platform as a Service.
d. Service Oriented Architecture.
e. Service Level Agreement.

Answers

Answer:

a. Software as a Service.

Explanation:

These Cloud vendors are said to be providing Software as a Service. This is because regardless of that the underlying specs are in regards to hardware, operating systems, database, etc. The vendor is selling a subscription to their cloud software which bundles all of these services together. Therefore, what they are ultimately providing is a Software that the individual can use as a service, and enjoy all of the included benefits/capabilities.

Examples of applying successful visual design principles to bring a web page together are _________________. (Choose all that apply)

Question 2 options:

a) balance, contrast, and similarity


b) gestalt, unity, and hierarchy


c) gestalt, scale, and simplicity


d) balance, contrast, and unity


e) balance, control, and dominance

Answers

I think A & D but im note sure but I definitely think A is one of the options

The examples of applying successful visual design principles to bring a web page together include:

a) balance, contrast, and similarityd) balance, contrast, and unity

The importance of visual design is to improve the aesthetic appeal of a product or design by using suitable images, space, layout, color, typography, etc.

It should be noted that balance, contrast, similarity, and unity are important for the application of a successful visual design.

Read related link on:

https://brainly.com/question/14581705

What is the Big-Oh of the following computation? int sum = 0; for (int counter = 1; counter < n; counter++) sum = sum + counter;

Answers

Answer:

The Big-O notation of the algorithm is O(n)

Explanation:

The declaration and update of the integer variable sum is a constant of O(1). The for loop statement, however, would repeat relative to the size of "n", increasing the counter variable and updating the sum total by the counter.

Google Slides is most similar to which of the following programs?
a
Adobe Photoshop
b
Microsoft Word
с
Microsoft PowerPoint
d
Microsoft Project

Answers

Answer:

Option C: Microsoft PowerPoint is the correct answer

Explanation:

Google slides is a tool to make presentations using different options like adding pictures, animations and videos. Microsoft office suite also provide a software for this purpose which is Microsoft power point.

Hence,

Option C: Microsoft PowerPoint is the correct answer

Answer:

the answer is c microsoft powerepoint

Explanation:

it just is

How do people make video games

Answers

Answer:

requieres a lot of hardcore coding

Explanation:

HTML question please help

Answers

Answer:

background-color: (Color)

Explanation:

This is actually CSS coding, as you would code it like:

Body {

background-color: (Color)

}

Determines the steps in the process, the material, and the tools to make

high quality products.

Answers

Explanation:

In order to make high quality products and tools:

1. We should select the proper raw material that we want to make product with.

2. Every metal or every material have certain properties or characteristics. So choose the material properly for the product so that the right amount of hardness or stiffness or any other characteristics necessary for the product is maintained.

3. The process selection should also be carefully chosen.

4. The product should be such that it is made out of limited resources but can give maximum output.

5. Post production process should be done properly such as annealing,  tempering, etc to maintain its properties.

can a 3048 hp motherboard support a i7 10700k cpu?

Answers

Answer:

Yes

Explanation:

Answer:

yes it can

Explanation:

no need to explain

Create a program that displays a menu to select addition, subtraction, or multiplication. Using random numbers between 0 and 12 (including 0 and 12), present a math problem of the type selected to the user. Display a "correct" or "incorrect" message after the user enters their answer. In C++

Answers

Answer:

This question is answered using C++

#include<iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int main(){

   int ope, yourresult;

   cout<<"Select Operator: \n"<<"1 for addition\n"<<"2 for subtraction\n"<<"3 for multiplication\n";

   cout<<"Operator: ";

   cin>>ope;

   srand((unsigned) time(0));

   int num1 = rand() % 12;

   int num2 = rand() % 12;

   int result = 1;

   if(ope == 1){

       cout<<num1<<" + "<<num2<<" = ";

       result = num1 + num2;

   }

   else if(ope == 2){

       cout<<num1<<" - "<<num2<<" = ";

       result = num1 - num2;

   }

   else if(ope == 3){

       cout<<num1<<" * "<<num2<<" = ";

       result = num1 * num2;

   }

   else{

       cout<<"Invalid Operator";

   }

   cin>>yourresult;

   if(yourresult == result){

       cout<<"Correct!";

   }

   else{

       cout<<"Incorrect!";

   }

   return 0;

}

Explanation:

This line declares operator (ope) and user result (yourresult) as integer

   int ope, yourresult;

This prints the menu

   cout<<"Select Operator: \n"<<"1 for addition\n"<<"2 for subtraction\n"<<"3 for multiplication\n";

This prompts the user for operator

   cout<<"Operator: ";

This gets user input for operator

   cin>>ope;

This lets the program generates different random numbers

   srand((unsigned) time(0));

This generates the first random number

   int num1 = rand() % 12;

This generates the second random number

   int num2 = rand() % 12;

This initializes result to 1

   int result = 1;

If the operator selected is 1 (i.e. addition), this prints an addition operation and calculates the actual result

   if(ope == 1){

       cout<<num1<<" + "<<num2<<" = ";

       result = num1 + num2;

   }

If the operator selected is 2 (i.e. subtraction), this prints an subtracttion operation and calculates the actual result

   else if(ope == 2){

       cout<<num1<<" - "<<num2<<" = ";

       result = num1 - num2;

   }

If the operator selected is 3 (i.e. multiplication), this prints an multiplication operation and calculates the actual result

   else if(ope == 3){

       cout<<num1<<" * "<<num2<<" = ";

       result = num1 * num2;

   }

If selected operator is not 1, 2 or 3, the program prints an invalid operator selector

   else{

       cout<<"Invalid Operator";

   }

This gets user input

   cin>>yourresult;

This checks if user result is correct and prints "Correct!"

   if(yourresult == result){

       cout<<"Correct!";

   }

If otherwise, the program prints "Incorrect!"

   else{

       cout<<"Incorrect!";

   }

   return 0;

In the Solmaris Condominium Group database, the number of the condo unit needing service with service_id 6 is _____.

Answers

Answer:

C06

Explanation:

From the attached table or images of Solmaris Condominium Group database we can see that the "ServiceRequest" table has 'ServiceID 6' attached to 'CondoID 14'.

However, in the "CondoUnit" table, we have the 'CondoID 14' attached to 'UnitNum C06.'

Hence, In the Solmaris Condominium Group database, the number of the condo unit needing service with service_id 6 is "C06"

1. Assume that in an implementation of the RSA cryptosystem one modular squar- ing takes 75% of the time of a modular multiplication. How much quicker is one encryption on average if instead of a 2048-bit public key the short exponent e

Answers

Answer:

3 times faster

Explanation:

The full form of RMS is Rivest–Shamir–Adleman. It refers to the public key crypto-system which is mainly used for securing the data transmission. It is one of the oldest algorithm.

The time taken bu modular squaring is 75 percent of the time required by the modular multiplication. Therefore, one encryption works three times quicker on an average if the short exponent of [tex]$e=2^{16}+1$[/tex] is used instead of the 2048 bit public key.

Select the correct navigational path to edit the name of a cell range using name manager

Answers

Answer:

Formula, Name Manager, Edit

Explanation:

for work

Answer:

Formula, Name Manager, Edit

Explanation:

Just did the assignment for Edge 2021

Plz click the Thanks button :)

<Jayla>

Write the function powersOf3ToN(n) that takes a possibly-negative float or int n, and returns a list of the positive powers of 3 up to and including n. As an example, powersOf3ToN(10.5) returns [1, 3, 9]. If no such powers of 3 exist, you should return the empty list. You may not use loops/iteration in this problem.

Answers

Answer:

def powersOf3ToN(n):

   try:

       num = int(round(n))

   except (ValueError, NameError, TypeError):

       print("Parameter of the function must be integer or float")

       quit()

   num_list = range(num)

   val_list = [pow(3,x) for x in num_list if pow(3,x) in num_list]

   print(val_list)

powersOf3ToN(30)

Explanation:

The python code prints out a list of integer numbers that are equivalent to the power of three. The function accepts integer and floating numbers but not strings or it prints an error message and quits the program.

Olivia wants to send a report to her boss concerning an upcoming project. Which communication format should she use to send a formal message to her boss? A. email B. chat C. forum D. blog

Answers

Answer:

A. Email. It is formal

Explanation:

Answer:

Email

Explanation:

Why do Selection Sort and Insertion Sort’s outer loops run 11 iterations if there are 12 elements in the array?

Answers

Answer:

The final case in selection sort is trivially sorted.

The final iteration in insertion sort is not needed.

Explanation:

For selection sort, you make sub arrays and find the smallest element placing it in the front and repeat until sorted.  This guarantees the final element will already be the greatest element, thus it is trivially sorted.

For Insertion sort, you use the initial element and compare it to the previous element and swap if the current is larger than the previous.  Using this sort, you will always perform n-1 comparisons where n is the total amount of elements in the array.  Thus, there are only 11 iterations for a 12 element array.

Cheers.

With the advent of cloud computing, different units within a business now share data much more easily. The sharing of data with their suppliers and distributors is also much more streamlined. This is an example of:___________

Answers

Answer:

Electronic data interchange

Explanation:

Electronic data interchange is often referred to or shortened to EDI. It is a contemporary strategy in which various firms carry out or electronically discharge information. Unlike the typical or conventional style of passing information through paper-based.

The purpose is to have an easy and efficient form of transactions without making extraordinary appointments.

Hence, in this case, The sharing of data by businesses with their suppliers and distributors which is also much more streamlined is an example of ELECTRONIC DATA INTERCHANGE

Please help! I need to submit this quick!

Answers

Answer:

B, C, A

Explanation:

i think those are right

For a data structure, such as a stack, who is responsible for throwing an exception if the stack is empty and a pop() is called:______.A. Application User.B. Data Structure Programmer.C. No one, you don't thow an exception in this case.D. End User Programmer.

Answers

Answer:

D. End-User Programmer.

Explanation:

A stack data structure is used to holds data for programs. The first data to go into a stack is always the last to be extracted (First-in-Last-out). Data is read into the stack with the push function and retrieved with the pop function.

When the stack is empty, it means there are no data left to pop from it. If a pop function is issued at this time, the program conventionally throws an error, there is no need for the end-user to write an exception handler for it because the end-user programmer has done that already.

Define and describe NAS. Assume you must implement a shared file system within the cloud. What company would you select

Answers

Answer:

The answer is below

Explanation:

1. NAS which is an acronym for Network-attached storage is a file computer data storage whereby a server connected to a computer network allows numerous users and heterogeneous clients to possess data access from a consolidated storage capacity.

For example various users on a local area network having data access to the central storage through a standard Ethernet connection.

2. Rackspace: this is because it offers a wide range of cloud computing services including but not limited to cloud hosting that covers but no huge subscribers.

They have a huge and efficient capacity across the globe.

They also offer pay as you go, which can be cheaper to manage.

What is one requirement for achieving Continuous Deployment

Answers

Answer:

You need to get everything in version control. You need to automate the entire environment creation process.

Explanation:

You need a deployment pipeline where you can create test and production environments, and then deploy code into them, entirely on demand.

hope this helped ^^

The one requirement for achieving Continuous Deployment is to get everything in version control. You need to automate the entire environment creation process.

What are the requirements to create test and production?

One need a deployment pipeline where you can create test and production environments, and then deploy code into them, entirely on demand. Development pipeline is a central part of continuous deployment.

Development pipeline  can be  used to provide quick feedback to the team during deployment. Development pipeline works in different ways and  software deployment can be divided in different stages and each stage is used to run a task to complete a deveploment on continuous basis.

System deployment is a challenging task that is an essential part of the software development lifecycle (SDLC), but it is almost completely overlooked by writers in favor of more exciting subjects like distributed object creation, components, or the newest SDK.

Therefore, The one requirement for achieving Continuous Deployment is to get everything in version control. You need to automate the entire environment creation process.

Learn more about environment on:

https://brainly.com/question/13107711

#SPJ2

How does SQL allow implementation of the entity integrity and referential integrity constraints?

Answers

Explanation:

Entity Integrity

The Entity Integrity helps to ensure each row in a table to be a uniquely identifiable entity. For example, product ID column  of products table is a primary key for the table.

Entity integrity ensures any two properties for the primary keys. The primary key for a row is unique. The primary key is not null, no component of the primary key my be set tonal. This property is unique and the second property ensures that primary key has a meaning has a value.

Referential integrity

The Referential integrity make sure that the relationship between tables remains or data is inserted, deleted or even modified. It specifies that the value that appears in a certain relation for a given set of some attributes, it also appears for the certain set of attributes in some other relation.

Referential triggered actions:

The Referential integrity actions are mostly triggered by physical and not by logical, or updates to unique value.

System trigger implement referential integrity actions.

What is the difference between a master device in a Bluetooth network and a base station in an 802.11 network?

Answers

Answer:

In an 802.11, a master device in a bluetooth network organize themselves into a "Piconet" of up to 8 slave devices. In an 802.11, a base station is a receiver and transmitter that plays a role of the WIFI network.

Explanation:

802.11 is the original wireless specification and it was developed by IEEE. IEEE stands for Institute of Electrical and Electronic Engineers (IEEE).

In an 802.11, a master device in a bluetooth network organize themselves into a "Piconet" of up to 8 slave devices. In an 802.11, a base station is a receiver and transmitter that plays a role of the WIFI network.

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

Answers

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.

What is the purpose of an End User License Agreement?
to ensure that software users understand their rights and responsibilities
to ensure that software users understand how to use and install the program
to require users to erase installer files after a software migration project
to license users to make multiple changes to proprietary software

Answers

Answer: A. To ensure that software users understand their right and responsibilities

Explanation:

End-User License Agreements are vital for preserving the rights of the company owner/licensor. The correct option is A.

What is an End-User License Agreement?

End-User License Agreements are vital for preserving the rights of the company owner/licensor as well as outlining the terms of usage and controlling the end expectations of the user.

The purpose of the end-user license agreement is to ensure that software users understand their rights and responsibilities.

Hence, the correct option is A.

Learn more about the End-User License Agreement:

https://brainly.com/question/14681311

#SPJ2

A programmer must add 1 to the value stored in the int variable sum. One way is given to get you started. Write two more distinct ways to add 1 to the value stored in sum.

Answers

Answer:

option 1: sum++

option 2: ++sum

Explanation:

In programming, a variable a container or memory location assigned to a value. The C++ syntax specifies the memory location type of value on the declaration. The major types of variables in C++ are; integer, float, double, char, string, and boolean.

To add 1 to an integer variable, the variable value could be summed with one and assigned to that same variable or '++before' and 'after++' with adds one to the variable before and after the execution of a statement.

Other Questions
Dont copy off google I will check and if u didnt Ill give you brainless What is the Ring of Fire, and how is it related to Southeast Asia? Why is it dangerous? Find the square of 14 without actualmultiplication Gotdam.n we know x and juice are dead,you ain't gotta post on here too How does mass affect acceleration during free fall?Pick a hypothesis below now.If an object falls freely, then heavy objects accelerate more than light objects.If an object falls freely, then heavy objects accelerate less than light objects.If an object falls freely, then heavy objects accelerate nearly the same as light objects. Which statement BEST explains why the divine right of kings theory conflicted with the idea of a social contract? A.The divine right of kings theory bound people to a religion, which, according to Rousseau and Locke, went against natural law.B.Social contracts required the consent of every individual in society, which meant kings had to obey the will of the majority.C.Because divine right of kings awarded absolute power to monarchs as leaders of society, there could not be a true consent of the people.D.As a purely Catholic idea, the divine right of kings theory conflicted with the Protestant theory of a social contract. What is borg's scale of perceived exertion tell you?A. The level of exertion at which you are exercising.B. Your target heart rate.C. Your maximum heart rate.D. The level of exertion at which you are recovering Answer these questions about Jos's and Anabela's pastimes.Quin piensa que es importante descansar? Egypt's physical environment limited trade. true or false please help!! Provide an explanation as to why all of the parakeet offspring look different, even though they have the same parents. Llene el espacio con el adjetivo posesivo correcto.Acabo de casarme, qu necesito hacer para cambiarapellido?A. suB. tuC. miD. nuestro What does "t eres" mean? As settlers moved west, they clashed with tribes. Many of those tribes had been forced to relocate to the Great Plains after the . Settlers slaughtered . Which were an important part of the tribal culture. The federal government created for the tribes, but often did not honor the they made with the tribes. In order to encourage , Congress passed the , which prevented from owning land as a group. What would the answer be to this question?You need to determine the approximate age of a red oak tree. The growth factor for the species is 4.0. The diameter of the tree is 20 inches. What is the age of the tree? 80 years24 years5 years16 years help ( picture ) its a fill in the blank Which of these groups of people would have been most likely to apply this idea to their feelings towardimmigrants?Nativists who opposed anti-SemitismSettlement house workers who ran Americanization programsPeople who believed that American society was a melting potNativists who believed in Social Darwinism If Steve throws the football 50 meters in 3 seconds, what is the average speed of the football? Speed = distance / time Question 2 options: A. 16.67 m/s B. 26 m/s C. 5 m/s D. 48.9 m/s 8) Kim rolls a white die and a red die. What is the probability that the sum of her two diceis 10? have yall ever faught in school and im big boreddddd 250 ward summary about The So-Called Kidnapping Club Featured Cops Selling Free Black New Yorkers Into Slavery 1. Summarize the story of The Fight" in no more than two sentences.