Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Write a complete Python program for sum of natural number between entered numbers. Program will ask to user entering two numbers and then these

image text in transcribed
image text in transcribed
1) Write a complete Python program for sum of natural number between entered numbers. Program will ask to user entering two numbers and then these numbers will be send to sum(num1, num2) function. Then result of summation will be returned to main function and displayed. 2) Write a complete Python program to find the greatest common division (GCD) of entered two numbers. This program takes two positive integers as input from the user I and calculates GCD using calculate_ged() function. Then the result will be printed to screen using print_result() function. These two functions will be called by main function. 3) Write a complete Python program to calculate the factorial of an entered number. This program takes one positive integer as input from the user and calculates factorial using calculate_fact() function. Then the result will be printed to screen using print_result() function which will be called by calculate_fact() function. 4) Write a complete Python program to calculate Fibonacci series of entered number. This program takes one positive integer as input from user and calculates the Fibonacci value of this integer. The cal_fibonacci() function will be used for calculation and print_result() function to display the result. 5) Please write a Python program to print first 10 power of an entered number. You have to use 2 different module in this program. First one is the main program to ask number to user and find power program to calculate and print the first 10 power of numbers with using math library. 6) In this program, you will write a scientific calculator program on Python using math library. Please create a calculator MENU with at least 10 calculations (log, power, sqrt, cosine, tan etc.). After making choice go to second step and make the calculation in another module (math_op) and return the value for printing to the secreen. Output of program will be like: MENU 7-tan 10-floor 8- log(x[base]) 0 - Quit 9- perm 1- ceil number 4-remainder 2-factorial 5- log10 3- Icm 6- cosine Please make your choice or (0 to quit): 2 Please enter a number for factorial = 5 Factorial of 5 is = 120 Note: As it shown in the example, you need to customize the program for each option. If user enter 3 (lcm), you need to ask 2 different numbers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions