quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryبرمجة وتطوير البرمجيات schoolبكالوريوس event_available2026-07-14

السؤال

Transcribed Image Text:

Programming Exercises 163 9. Ocean Levels Assuming the ocean's level is currently rising at about 1.6 millimeters per year, create an application that displays the number of millimeters that the ocean will have risen each year for the next 25 years. 10. Tuition Increase At one college, the tuition for a full-time student is $8,000 per semester. It has been announced that the tuition will increase by 3 percent each year for the next 5 years. Write a program with a loop that displays the projected semester tuition amount for the next 5 years. 11. Calculating the Factorial of a Number In mathematics, the notation ! represents the factorial of the nonnegative integer n. The factorial of n is the product of all the nonnegative integers from 1 to n. For example, and 7! 1x2 x3x4x5x6x7 = 5,040 41-1x2x3x4 = 24 Write a program that lets the user enter a nonnegative integer and then uses a loop to cal- culate the factorial of that number. Display the factorial. 12. Population Write a program that predicts the approximate size of a population of organisms. The application should use text boxes to allow the user to enter the starting number of organ- isms, the average daily population increase (as a percentage), and the number of days the organisms will be left to multiply. For example, assume the user enters the following values: Starting number of organisms: 2 Average daily increase: 30% Number of days to multiply: 10 The program should display the following table of data: Day Approximate 1 2 Population 2 2.6 3.38 7.42586 9.653619 12.5497 Using python 3 4 4.394 5 5.7122 6 7 8 9 16.31462 10 21.209

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top