Question

You need not run Python programs on a computer in solving the following problems. Place your answers into separate text fil
[3] 3 points Use file assignment.txt Precisely what are the values of first and second after the following code executes? In
[5] 7 points total Use file strange.lt Part (a): 4 points Precisely what does the following program output when we begin by e
6] 5 points Use file for_loops.ct Part (a): 2 points Complete the following Python code. You may only modify the indicated co
[8] K- 13 points Use file temperature.py To convert a temperature from Fahrenheit degrees to Kelvin (absolute), the following
[10] 8 points Use file oops.py Carefully type the following program into a file named oops.py def main(): studs - input (How
[12] 12 points: For Graduate Credit students Use file caster.py This problem may also be solved for extra credit by undergr
9 of 18 9. remainder h. Ignore the quotient. Divide e by 4 to get a quotient j, and a remainder k. Divide (a +11) * h by the
[13] 14 points Use file donor.py A certain charity designates donors who give $10,000.00 or more as Benefactors, those who gi
[15] 12 points Use file right_triangle.py Write a complete Python program to output the following pattern that resembles a ri
[16] 15 points Use file drawing.py Write a function named top that draws this figure (there are precisely 7 underscore charac
Now write a function named bottom() that draws this figure: Finally, define a main function that uses the top and bottom() fu
[17] Use file triangle.py 14 of 18 Write a Python program that produces the output 100 200 300 400 202 304 406 308 412 418 90
(19) 14 points Use file song.py Write a Pythow program that produces as output the lyrics of the song, There Was an Old Lady
She swallowed the dog to catch the cat, She swallowed the cat to catch the bird, She swallowed the bird to catch the spider,
20] 10 points You are to design an original website, using raw HTML commands (as opposed to using software such as Adobe Drea
Starting up http-server, serving ./ Available on: https://a2ac1690-c62e-4d5a-8f0b-2200506196bd- ide.cs50.xyz:8080 -1 $ Note t
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question 1:

The value of foo after 23-45 //10 is 19 and final value of foo becomes foo=19+6=25

bar=25%13 which is the remainder which is 12

Thus the output will be:

50

37

25 12

As per CHEGG's answering policy and guidelines we are to answer only 1 question please post others separately

Add a comment
Know the answer?
Add Answer to:
You need not run Python programs on a computer in solving the following problems. Place your...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (IN PYTHON) You are to develop a Python program that will read the file Grades-1.txt that...

    (IN PYTHON) You are to develop a Python program that will read the file Grades-1.txt that you have been provided on Canvas. That file has a name and 3 grades on each line. You are to ask the user for the name of the file and how many grades there are per line. In this case, it is 3 but your program should work if the files was changed to have more or fewer grades per line. The name and...

  • Use python write Thank you so much! pets.txt dog alyson 5.5 cat chester 1.5 cat felice...

    Use python write Thank you so much! pets.txt dog alyson 5.5 cat chester 1.5 cat felice 16 dog jesse 14 cat merlin 5 cat percy 12 cat puppet 18 to_transfer.txt cat merlin 5 cat percy 12 intake.txt bird joe 3 cat sylvester 4.5 the website is https://www2.cs.arizona.edu/classes/cs110/spring17/homework.shtml Welcome to animal shelter management software version 1.0 Type one of the following options adopt a pet adopt intake add more animals to the shelter list. display all adoptable pets quit exit the...

  • write programs with detailed instructions on how to execute. code is java What you need to...

    write programs with detailed instructions on how to execute. code is java What you need to turn in: You will need to include an electronic copy of your report (standalone) and source code (zipped) of your programs. All programming files (source code) must be put in a zipped folder named "labl-name," where "name" is your last name. Submit the zipped folder on the assignment page in Canvas; submit the report separately (not inside the zipped folder) as a Microsoft Word...

  • Sample program run - Needs to be coded in python -Enter the text that you want to search for, Or DONE when finished: val...

    Sample program run - Needs to be coded in python -Enter the text that you want to search for, Or DONE when finished: valiant paris The valiant Paris seeks for his love. -Enter the text that you want to search for, or DONE when finished: Romeo and Juliet Enter Romeo and Juliet aloft, at the WIndow -- Enter the text that you want to search for, DONE when finished: DONE   # copy the following two lines into any # program...

  • I'm a bit confused on how to get this program to run right. Here are the...

    I'm a bit confused on how to get this program to run right. Here are the directions: Part 1: Write a Python function called reduceWhitespace that is given a string line and returns the line with all extra whitespace characters between the words removed. For example, ‘This line has extra space characters ‘  ‘This line has extra space characters’ Function name: reduceWhitespace Number of parameters: one string line Return value: one string line The main file should handle the...

  • For written problems or problems where you are asked to provide an explaination you can submit...

    For written problems or problems where you are asked to provide an explaination you can submit your answers in a separate text file or you can just include them within your programs using Python comments. For problems requiring other written components (ie. structure chart), provide a pdf scan of the page(s). For each problem that requires coding, you must: Write a Python program Test, debug, and execute the Python program Save your program in a .py file and submit your...

  • Your mission in this programming assignment is to create a Python program that will take an...

    Your mission in this programming assignment is to create a Python program that will take an input file, determine if the contents of the file contain email addresses and/or phone numbers, create an output file with any found email addresses and phone numbers, and then create an archive with the output file as its contents.   Tasks Your program is to accomplish the following: ‐ Welcome the user to the program ‐ Prompt for and get an input filename, a .txt...

  • Write, save, and run a Python program that will do the following when run: Let’s consider...

    Write, save, and run a Python program that will do the following when run: Let’s consider the following assignment: a = 1 * 2 + 38 / 8 You want to change the precedence of the operators so that the addition operations are executed first. How would you re-write the assignment? Write a print statement to show the output. Let’s consider the following assignments: x = 'z' y= ['x', 'z', 'q'] Now, apparently x is a member of y. Write...

  • 1. (40 pts) Note: All programs MUST run in Ubuntu. Following the example C program in...

    1. (40 pts) Note: All programs MUST run in Ubuntu. Following the example C program in Folio consisting of three files (a.c, a.h, main.c), write a C program that consists of three files mysquare.h, mysquare.c andmyMain.c. Below is the mysquare.h prototype #include <stdlib.h> #include <stdio.h> void generateNums(int *myarr, int len); void squareNums(int *myarr, int len); void printNums(int *myarr, int len); mysquare.h must contain only the function declarations (prototypes) listed above generateNums function should generate len random integers in the range...

  • Help needed with Python 3: Dictionaries and Sets. The problem is one that asks the user to create...

    Help needed with Python 3: Dictionaries and Sets. The problem is one that asks the user to create a completed program that prompts the user for the name of a data file, and reads the contents of that data file, then creates variables in a form suitable for computing the answer to some questions. The format should be in the same manner as the attached .py file. All subsequent assignment details (.py and .csv files) can be found at this...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT