subject

2. Size1 and size2 are the sizes of two files, and space is the amount of available space on a CD. Write a function that takes these integer numbers are parameters and figures out the largest combination of files that fit on a CD. The method should return 3 if both files fit together, the file number(1 and 2) corresponding to the largest file that fit by itself (1 if the files are the same size), or 0 if neither file fits on the CD. Your function must have only one return statement.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
question
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
You know the right answer?
2. Size1 and size2 are the sizes of two files, and space is the amount of available space on a CD. W...
Questions
question
Physics, 20.09.2020 04:01
Questions on the website: 13722363