Question: 28) Which function in the string class will return a list containing the parts of the strings that are separated by a particular character? a)
28) Which function in the string class will return a list containing the parts of the strings that are separated by a particular character? a) separate b) slice cchunk)d) spli e)convertTolist0 Chapter 7, Sections 7.1 and 7.3, pp. 321-331 and 340 348. 29) What are the four basic steps in problem solving, as outlined by George Polya in his book "How to Solve It"? 30) How is top-down design used in the problem solving process? Use top-down design to write an algorithm determine how much change to hand a person when they make a purchase using cash at The Cage. 31) What is a 'stub? How are stubs used in software design and testing? 32) You are a cashier at a fast-food place. A customer makes a purchase and her change is 38 cents. In how many different ways can you give the customer her change? For example, one way is to give her 38 pennies. Another is to give her 3 dimes and 8 pennies. 33) How would you design a program to find the answer to the question in problem 32) above? Chapter 8, Section 8.1 through Section 8.3, pp. 351 383 34) In each description below, identify which of the items should be the key and which should be the value: a) Student name and student ID number b) Student name (fistnae, middle initial, and lastname) and the student's GPA c) An automobile, the number on the license plate, and the VIN (vehicle identification number) d) For a laptop computer: the manufacturer's name, the manufacturer's model number, and amount of memory that the laptop has, and the computer's serial number 35) scores is a list that contains numeric grades that students earned on a test. Write a segment of code that will print out the grade of the student who got the second-highest score on the test 36) 'readings.txt' is a file that contains 10,000 integer readings from a radiation counter. The lowest reading should be 0. The radiation counter occasionally malfunctions and records a negative number Describe how you would write a segment of code that will determine how many times the radiation counter malfunctioned when making those 10,000 readings. How would you do it if you used a dictionary? How would you do it if you did not use a dictionary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
