Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a function called “generateEven” that will return array containing only even numbers
between 1 and n. n is passed as a parameter to the function.
How do I create this shape: a hexagon with a pentagon in it with a square in it with a triangle in it
Personal Organizer

In this program you will create a personal organizer. Using parallel arrays you will store the following information on each event in your organizer:

Month (1 - 12)
Day (1 - 31)
Year
Event name
If the user enters an incorrect month the month should be set to January.
If the user enters an incorrect day then the day should be set to 1.

Write the following methods:

Add an event
Print all events
Print events in a specific month
Your program should follow how the sample run (below) asks for input and how it outputs events.

It should first keep asking for new events to add until the user says NO. Then, it should print all the events entered. Finally, it should ask the user for a specific month that he or she would like to see events from.
Find the average, maximum, minimum, and sum of three numbers given by the user.
I can't seem to fine one ... But I have a final due and I need a program and citation with these parameters ... "Find a Python program that uses something from the last two chapters (lists or files), uses at least one function besides main() and has at least one decision statement. You could choose to find a program from our book or find a program from some other source. Either way, give full credit to the originator of the code using an APA citation. Put the citation in comments in the code"
I don't understand my edhesive program is saying I have a unexcptcted outcome when it looks good to me. Here is the code.


a = input('Enter a number: ')
b = input('Enter a number: ')
c = input('Enter a number: ')
d = input('Enter a number: ')
e = input('Enter a number: ')
f = input('Enter a number: ')


list1 = str(max(a,))
list2 = str(max(a, b,))
list3 = str(max(a, b, c))
list4 = str(max(a, b, c, d))
list5 = str(max(a, b, c, d, e))
list6 = str(max(a, b, c, d, e, f))


print (('Enter a number: ') + a + ('\nLargest: ') + list1)
print (('Enter a number: ') + b + ('\nLargest: ') + list2)
print (('Enter a number: ') + c + ('\nLargest: ') + list3)
print (('Enter a number: ') + d + ('\nLargest: ') + list4)
print (('Enter a number: ') + e + ('\nLargest: ') + list5)
print (('Enter a number: ') + f + ('\nLargest: ') + list6)
homework 5 funtions next steps, I only started coding and im struggling. This homework sheet is hard and i need answers and help. Thanls
3. Squirrels: The squirrels in Palo Alto spend most of the day playing. In particular, they play if the temperature is between 60 and 90 (inclusive). Unless it is summer, then the upper limit is 100 instead of 90. Given an int temperature from the user print out to the user if the squirrels can play or not. (You may want to ask if it is summer)
2. SumTwenty: Given 2 ints, a and b, print their sum. However, sums in the range 10..19 inclusive, are forbidden, so in that case just print 20.
Adam regularly challenges one of his teachers to a pool competition. The winner of their matches is the person who wins the most individual games of pool. Adam wishes to write a computer program to calculate the total number of times each player wins a game and display a message congratulating the winner of the overall match.

a) Adam wants the program to:

* repeatedly ask the user to input the winner of each game

* stop asking for input when the character “X” is entered

* add up the number of wins for each player as the winner of each game is inputted

* display a message congratulating the player who won the most games or display a message saying that the match was tied.

Write a program below that meets Adam’s requirements.
LATEST TUTORIALS
APPROVED BY CLIENTS