While loop project
Reference codeacademy lesson called loops
Need help writing this code
Create a program that
1) outputs the name priya 100 times (all on different lines)
2) output the name priya 100 times (10 on 10 lines)
3) output the sum of numbers from 1 to 1000
4) output the product of numbers from 1-8
5) list all the numbers from 100 down to 1
Complet in this order

Answers

Answer 1

Answer: Change this however you'd like :)

Explanation:

for n in range(100):

   print("priya")

print()

for n in range(10):

   for i in range(10):

       print("priya", end= " ")

   print()

print()

tempList = []

for n in range(1, 1001):

   tempList.append(n)

print(sum(tempList))

print()

for n in range(1, 9):

   for i in range(1, 9):

       print(n*i)

print()

x = 100

while x != 0:

   print(x)

   x -= 1


Related Questions

Which types of computer hardware are internal?

Answers

Answer:

Here are some :) (sorry if there are too many)

Explanation:

RAM (Random Access Memory): It's a fast-access memory that is cleared when the computer is powered-down. RAM attaches directly to the motherboard, and is used to store programs that are currently running.

Video Card/GPU (Graphics Processing Unit): It's a specialized processor originally designed to accelerate graphics rendering.

Sound Card: USB sound "cards" are external devices that plug into the computer via USB.

Storage: SSD (Solid State Drive): It is a data storage device that uses solid-state memory to store persistent data.

HDD (Hard Disk Drive): It is a non-volatile storage device which stores digitally encoded data on rapidly rotating platters with magnetic surfaces. Just about every new computer comes with a hard disk these days unless it comes with a new solid-state drive.

CPU (Central Processing Unit/ sometimes just called a processor) It's a machine that can execute computer programs, and sometimes called the brain of the computer.

Motherboard: The motherboard is the body or mainframe of the computer, through which all other components interface. It is the central circuit board making up a complex electronic system.

Firmware: Firmware is loaded from the Read only memory (ROM) run from the Basic Input-Output System (BIOS). It is a computer program that is embedded in a hardware device, for example a microcontroller.

Power Supply: The power supply as its name might suggest is the device that supplies power to all the components in the computer.

CD-ROM Drive: There are two types of devices in a computer that use CDs: CD-ROM drive and a CD writer. The CD-ROM drive used for reading a CD. The CD writer drive can read and write a CD.

Floppy Disk: A floppy disk is a type of data storage that is composed of a disk of thin, flexible(“floppy”) magnetic storage medium encased in a square or rectangular plastic shell.

Internal Storage: Internal storage is hardware that keeps data inside the computer for later use and remains persistent even when the computer has no power.

Disk Array Controller: A disk array controller is a device which manage the physical disk drives and presents them to the computer as logical units.

On some computers the speakers are internal as well. :)

(in PYTHON) Write a function in REPL.it that uses three parameters, and squares the first, calculates mod 5 of the second parameter, and quadruples the third parameter. The function should be called, and that value stored in a variable, and then outputted using the print( ) function.

Answers

Answer:

I wrote this myself, it should be working. I think this is what the instructions were looking for.

The code below should return

Squared: 1296  

Mod: 0        

Quadrupled: 16

Explanation:

def threeParams(squared, mod, quadruples):

   array = [squared, mod, quadruples]

   array[0] = squared ** 2

   array[1] = mod % 5

   array[2] = quadruples * 4

   return array

valueArr = threeParams(36, 15, 4)

print(f"Squared: {valueArr[0]}\nMod: {valueArr[1]}\nQuadrupled: {valueArr[2]}")

Jessie will make and sell the trending Baked California Maki. Her Peso mark up is 5.00. Selling price PHP 15.000. How much will be the Paercentage mark up?Use the formula Percentage mark up= Peso markup/selling price. *

Answers

Answer:

50%

Explanation:

The markup is the difference between the selling price and the cost price. If the mark up is greater than zero, it means there is a profit, if the markup is less than 0, it means there is a loss and if the markup is equal to 0, it means there is breakeven.

Percentage markup = (markup/cost price) * 100%

Selling price - cost price = markup

15 - cost price = 5

cost price = 10

Percentage markup = (markup/cost price) * 100% = (5/10) * 100% = 50%

Need help please help me
I need it right now ​

Answers

Answer:

1. G

2. J

3. I

4. B

5. A

6. H

7. C

8. F

9. E

10. D

11. D

12. C

13. A

14. B

Explanation:

1. OCR: converts paper based text to digital form. OCR is an acronym for Optical Character Recognition.

2. OMR: marks candidates' responses on a multiple choice exam. OMR is an acronym for Optical Mark Recognition.

3. Printer: produces a hard copy document. It is an output device that accepts electronic data and prints them on a paper (hardware document).

4. Joystick: used for playing a car racing game on the computer

5. Sensor: turns on the light when someone enters the room. It can be defined as a device designed to detect changes or events within its immediate surroundings and then transfers this data to the central processing unit of a computer.

6. ROM: Contains 'boot up' instructions. ROM is acronym for read only memory and it contains the basic input and output system (BIOS) used during a computer start-up.

7. Pad and tablet: draws lines in an architectural design. They are an electronic device that can be used two or three dimensional shapes.

8. Modem: Modulates and demodulates signals. Modulation refers to the conversion of digital signals into an analogue signal while transmitting it over a line. Demodulation is the conversion of analogue signal into a digital signal.

9. Barcode reader: Reads data containing information on a product

10. MICR: reads digit specially printed on a cheque. MICR is an acronym for Magnetic Ink Character Recognition.

Section B

11. Banking industry: managing user accounts through the use of software applications.

12. Weather forecasting: predicting the weather through the use of software programs.

13. Household appliance: sequencing wash cycle tasks in a washing machine.

14. Manufacturing industry: using robots to assemble a car components.

Microsoft vs Sony who wins ​

Answers

Answer:

Microsoft

Explanation:

Yeah I’d say Microsoft toooo

how do hand tools,Farm implements and farm equipment differ from one another

Answers

Farm equipment helps the workers with the work they are already doing and farm implements do the work in there own

what is computer give definition ​

Answers

Answer:

computer is

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

Please help me!!!
1. A box contains two types of colored pencils: red and blue. It also has a few pens. You can pick only one item at a time. If you pick either a red or a blue-colored pencil, you get one point. If you pick the pen, you get zero. If you pick a red and a blue pencil at the same time, you get zero again. Which logic gate idea are we using in our game?
A. NAND
B. XOR
C. XNOR
D. NOR

2. Type the correct answer in the box. Spell all words correctly.
What is the output of 1101 x 10 == 11000 + 10?
The output of 1101 x 10 == 11000 + 10 is _______ .

3. Bob is searching for a website using the two words theory and practice. After several searches, he finds only one website that has both the words. Most of the other results have only one of the two words. Some results don’t have either of the two words. Which logic gate principle will help Bob find the most appropriate result?

The ______ logic gate principle will help Bob find the most appropriate result.

Answers

Answer:

B. XOR

Explanation:

Logic gates are practical implementation of a digital circuit. There are three basic logic gates, namely; AND, OR and NOT gates. Every other gates are derived from them.

XOR, also called exclusive OR is derived from the OR gate. It gives a high output ( ON or '1') when the inputs are odd (that is, it gives one value or ON state when one of a two-input gate is ON or high). The output for an even 'zero' or 'one' input, is a zero or off or low state.

To represent XOR for two inputs: A⊕ B⇒Y(output).

Pls help me computer science discoveries

Answers

Answer:

jdinwoahdjsioadjsakodsiaohdeioajfnsohfujkdshksyfneowjdfikdjiadjsadhnsuidghaiudbnha

Explanation:

Son los inventarios en proceso que hacen parte de la operación en curso y que se deben tener en cuenta antes de empezar a transformar el material directo.

Answers

Answer:

When an inventory is purchased the goods are accounted in the raw material but when this raw material is to be converted in finished goods it is transferred from raw material to processing of raw material into finished goods and when the process is completed when the raw material turns into finished goods the goods are then accounted for as finished goods.

Explanation:

When an inventory is purchased the goods are accounted in the raw material but when this raw material is to be converted in finished goods it is transferred from raw material to processing of raw material into finished goods and when the process is completed when the raw material turns into finished goods the goods are then accounted for as finished goods.


Give 5 comparisons of the three employees with the highest net pay



pls someone helppp mee

Answers

Answer:

this is wot u get for not paying attiention on class

Explanation:

Answer:

Uhm you should Of payed attention in class

Explanation:

use g00gle I would of helped u but because of wut u are commenting on others questens this is what you get this website is litrally for people to help don't always just comment use g00gle your welcome :))

You are the administrator for a small network. You have approximately 50 users who are served by a single Windows server. You are providing Active Directory, DNS, and DHCP with this server. Your clients all use Windows workstations. Last week, an employee quit. A replacement has been hired and will be starting next Monday. The new user will need to have access to everything the previous user had, including document files held in the Home folder. You need to set up an account for the new user that all the access required. What should you do?

Answers

Answer:

Rename the existing account, and change the name fields to match the new employee.

Explanation:

As you appoint new employer that need all the access to everything that the previous user had, including the documents files held in the Home Folder.

So, As an administrative of the network, you should Rename the existing account, and change the name fields to match the new employee.

Which property do you use to align an element horizontally with the left or right edge of its parent element?
A.) position
B.) z-index
C.) float
D.) clear

Answers

A thank me later:) give me hearts

List the two page orientations in Microsoft word​

Answers

Answer:

Portrait and landscape

Explanation:

please rate brainiest for my progression

Which of the following describes how modern operating systems function?: A
They use punch cards to store and retrieve data.

B
They manage hardware and resources.

C
They handle one task at a time.

Answers

Answer:

Try B

Explanation:

(Java)
The extends keyword is used to:

a. to copy a parent class

b. to get access to methods and constructors of a parent class

c. make an int longer

Answers

The answer is c your welcome
ASMWER is 2
Because u wouldn’t want to copy a parent class for sure so that’s out of the option!

Describe a situation when you would use a conditional statement in a program. Describe the action that would occur when the conditional statement is true and when it is false.

Answers

Answer:  Conditional statements are just true false statements

Explanation:

Let's say there's a kpop band burglarizing my house and I have a super AI that detects if a kpop band is my house through cameras. What it would do is change a variable "kpopBandInHouse = False" to True. I would then have an if statement next with a custom function:

if kpopBandInHouse == True:

   nukeHouse()

So if the conditional statement is true, it nukes my house. It is false, it does not nuke my house.

Conditional statements let you make a choice depending on certain conditions. These results are defined by one set of conditional statements which contain boolean expressions which are evaluated to a correct or incorrect boolean value, and the further calculation can be defined as follows:

Program Explanation:

Defining a header file.Defining the main method.Defining an integer variable "n" that initializes the value that is "1".Defining a conditional statement that checks "n equal to 1", when it's true it will print the message.  

Program:

#include <iostream>//header file

using namespace std;

int main()//main method

{

   int n=1;//defining integer variable n that initlize the value 1

   if(n==1)//defining if block that checks n value equal to 1

   {

   cout<<"Hello World";//print message

   }

   return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/10714086

ways to be your best digital self?

Answers

To be your best digital self just remember that everything you do on the internet STAYS on the internet. There’s no way around it. Be mindful of what you post, say, and do online. Don’t let that, however, stop you from showing something you love to do or talking about something you’re interested in. Being your best digital self requires restraint and knowledge. Think to yourself, do I really want to send this message? this picture? this threatening message? Be safe rather than sorry. Don’t let that stop you from being you. Have fun :) !

A constructor must have a return statement.

True

False

Answers

Answer:

False

Explanation:

this is false not true

Based on what you know about the Sort and Find functions, return to the database file to determine the answers to these questions.

How many people in the database have a birthday on 3/3/92?

0

1

2

3

Answers

ZERO

Explanation:

EDG 2021

First question is 0

second is 2

Q2) Here is a program that calculates 12 times table. The program prints a lead
then prints the answer. But is the program correct? If the program is not currect, write
the corrected program in the space.
1
=
10
15
20
30
30
Compute 12 times 12
For i 1 to 12
PRINT i; " X 12
Next i
END
12" is 12
12

Answers

Answer:

see picture

Explanation:

your paste was a bit messed, but below you see what it should be.


1. Using a microphone to create an audio file to accompany a message is an example of how data is processed and sent to an output device. true/false?

Answers

Answer:

I would say true.

Elige una metodología presentada en la lectura para aplicar la prospectiva (Método Delphi o Construcción de escenarios) y de manera gráfica represente cada metodología y sus fases.

Answers

Answer:

Método Delphi

Explanation:

El método Delphi es un método experto que se ha utilizado ampliamente en la investigación de futuros. En la actualidad, el método Delphi involucra típicamente de 15 a 40 expertos en dos o tres rondas.  

La selección de un panel de expertos que represente de manera integral a las partes interesadas relevantes es un paso crucial en el estudio. La primera ronda, a menudo realizada a través de entrevistas, busca preguntas relevantes y motiva al panel a seguir trabajando. En la siguiente ronda, los panelistas evalúan las declaraciones prospectivas y justifican sus respuestas con diferentes perspectivas. Una característica clave del método es dar respuestas sin nombre, es decir, de forma anónima.

El método Delphi es especialmente adecuado para tratar un tema complejo o que cambia rápidamente, para el cual se pueden identificar expertos o partes interesadas (como ciertos grupos de población) u organizaciones (desarrollo tecnológico, problema social) que estén particularmente familiarizados con él.

El proceso Delphi produce una variedad de perspectivas, hipótesis y argumentos que se someten a pruebas y argumentaciones de expertos abiertos. El proceso busca filtrar las opiniones en opiniones de la comunidad compartidas o disidentes. Ambos resultados son valiosos. Puede haber desacuerdo no solo sobre los argumentos sino también sobre los objetivos, la probabilidad y la conveniencia de las alternativas.

You want to use the sleep function in your program and only the sleep function. The following line of code will allow you to do so.
time import sleep

Answers

Answer:

from time import sleep

Explanation:

Not sure what the question is, but assuming the question is "How would you import only sleep from time?" and the language is python, this is the answer.

You develop an app, and you don’t want anyone to resell it or modify it. This is an example of: A
an operating system.

B
open source software.

C
proprietary software.

Answers

Answer:

C, proprietary software

Explanation:

Proprietary software, also known as non-free software, is computer software for which the software's publisher or another person reserves some rights from licensees to use, modify, share modifications, or share the software. It sometimes includes patent rights.

9. Draw a flowchart to find the area of rectangle. (A = /B* H)
1 Add File​

Answers

Answer:

See Photo

Explanation:

Area of rectangle = length * width

---- According to problem: A = /B*H

---------Note: Dropped the "/", if needed just change what happens in the diamond

Based on what you know about the Sort and Find functions, return to the database file to determine the answers to the following questions.

In which year did most people update their contact information?

1988

2010

2011

2012

Answers

Answer:

2010

Explanation:

Most of the people updated their information in the database in the year 2010. The database files have different functions which enable the sorting of data according to the contact information with year wise filter.

Answer:

It’s 2012

Explanation:

Need help with the last one or if I got the others wrong

Answers

i think the answer would be c? if im wrong my apologies.

Program with variables upload instructions

Answers

Answer:

Here, I made sure to incorporate variables just in case. You could change it to whatever you need.

Explanation:

v1 = "Hello world!"

v2 = "Spam"

v3 = "Eggs"

v4 = "SpamEggs"

v5 = "Spam Eggs"

v6 = "Spam Eggs"

v7 = 7.9

v8 = 20

v9 = 13

v10 = 5

v11 = 13

v12 = 10.8

v13 = 2.7

print(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13)

if you don't want it all on one line you could just print each variable individually :)

Answer:

Print(“Hello World!”)

Print(“Spam”)

Print(“Spam+Eggs”)

Print(“Spam Eggs”)

Print(“Spam Eggs”)

Print(“7_9”)

Print(“2”+”0”)

Print(“1”+”3”)

Print(“5”)

Print(“1”+”3”)

Print(“1”+”0”+”.”+”8”)

Print(“2”+”.”+”7”)

Explanation:

I think i did it lol, not sure

8.7 Code Practice: Question 2 edhesive

Answers

In this exercise we have to have knowledge of computational language in python, so we find the code.

How to define list in Python?

In Python, a list is represented as a sequence of objects separated by commas and enclosed in square brackets [], so an empty list, for example, can be represented by square brackets without any content.

So, to make it simpler, the code can be found below as:

w = ["Algorithm", "Logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for x in w:

if(x[0]=='A'):

print(x)

See more about python at brainly.com/question/26104476

Answer:

w = ["Algorithm", "Logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for i in range(len(w)):

     if w[i][0] == "A":

               print (w[i])

Explanation:

Other Questions
A solenoid consists of 4200 turns of copper wire. The wire has a diameter of 0.200 mm. The solenoid has a diameter of 1.00 cm. When the solenoid is connected to a 12.0 V battery, we observe that the current increases over time and is 155 mA after 1.50 milliseconds have passed. Assume that the internal resistance of the battery and connecting wires is negligible. Required:a. What is the length of wire needed to form the solenoid? b. What is the inductance of the solenoid?c. What is the length of the solenoid? d. What will be the current after three time constants have elapsed? Athena sells plates at a deal of 5 for $10. If Athena sells 25 plates per every half hour, how much money will Athena make? which of the following is a gas at room temperature A. jelloB. milkC. heliumD. popcorn what is 13 D + 8 equals -1solve for d How did Randys reaction & attitude to the situation with his brand new baby affect the outcome of the situation? 13. Who of the following was not a revolutionary?(A) Madanlal Dhingra(B) Lala Hardayal(C) Lala Lajpatrai(D) Champak Raman Pillai What type of rock is Mount Kinabalu made of? Use the Time Zone Map to answer the question.The city of Denver is located in what time zone?es )A)EasternB)CentralC)MountainD)Pacific What are the differences and similarities of Andrew Jackson's presidency and modern day? What do you have to consider when lifting weights? *A.SETSB.RESTC.WEIGHTD.REPS Find the value of or in the triangle shown below. 97 47 18. What is the area of the trapezoid? A. 112.5 mm2 B. 72 mm C. 40.5 mm2 D. 56.25 mm2 Which of the four beliefs : Life, Liberty and the pursuit of Happiness, plus health care, is the focus of document b? Describe one of the most embarrassing moments of your life. PLEASE HURRY 15 POINTS Why did the internment of Japanese Americans end?The Supreme Court ordered an end to internment. Revolts by Japanese Americans forced the camps to close. The war ended so the camps were no longer necessary. The public protested the injustice to Japanese Americans. Max read 1/3 of his at school. He reads 22 more pages when he arrives home, making 127 pages read so far. How many pages are in Max's novel? research to find foods that are made using microorganisms. Choose one such food. Write a paragraph explaining how microorganisms are involved in making it. science DUE TODAY!!!!!!!!!!!!!! Conjugate the verbs in the following sentences. Remember, the subjunctive is needed in the second clause only. You will use present indicative in the first clause.Part A:Mi madre 1) ___ (insistir) en que yo 2) ___ (estudiar) todos los das y que 3) ___ (participar) en todas mis clases. Mi padre me 4) ___ (aconsejar) que no 5) ___ (ver) mucha televisin y que 6) ___ (ser) una persona honesta.Part B:Paula y yo 1) ___ (querer) que Carlos y Marta 2) ___ (traer) vino a nuestra fiesta y que Jos 3) ___ (preparar) unos entremeses (appetizers). Nuestros amigos nos 4) ___ (recomendar) que 5) ___ (limpiar) nuestra casa y que 6) ___ (hacer) mucha comida antes de la fiesta. A dessert recipe calls for image cups of milk and makes 5 servings. How many cups of milk are needed for 8 servings?