Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
The marks obtained by a student in 5 different subjects are input by the user. The student
gets a division as per the following rules:
Percentage above or equal to 65 - First division
Percentage between 55 and 64 - Second division
Percentage between 45 and 54 - Third division
Percentage less than 44 - Fail
Write a
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Filling the Pool (Deprecated) Write a program that calculates the time neccessary to completely fill an empty pool with water. We will assume that the pool is rectangular and the depth is uniform. All input values in this program will be integers. Prompt the user to enter the pool dimensions - length, width, and depth (unit: feet) - as well as the rate at which water can be put into the pool (unit: gallons per minute). Using these values, calculate and display the time (in minutes) needed to fill the pool from completely empty to completely full. Note: you should calculate the volume of the pool (as cubic feet) and then determine the rate (in cubic feet per minute) that water can be put into the pool. Assume that there are 7.48 gallons in one cubic foot. Your program should run like the examples shown below: Enter pool dimensions Length: 10 Width: 8 Depth: 7 Water entry rate: 14 The pool will fill completely in 299.2 minutesarrow_forwardIn Python please: Create an investment-value calculator) Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculations is as follows: Use text fields for users to enter the investment amount, years, and interest rate. Display the future amount in a text field when the user clicks the Calculate buttonarrow_forwardCOSC 1336 – Programming Fundamentals IProgram 8 – Simple Functions Write in Python Program: The quadratic formula is used to solve a very specific type of equation, called a quadratic equation. These equations are usually written in the following form:ax2 + bx + c = 0The Quadratic Formula x = ( -b ± √( b^2 - 4ac ) ) / ( 2a ) Where a, b, and c are constants with a ≠ 0. (If a = 0, the equation is a linear equation.)The discriminant is the part of the formula in the square root. If the value of the discriminant is zero then the equation has a single real root. If the value of the discriminant is positive then the equation has two real roots. If the value of the discriminant is negative, then the equation has two complex roots.Write a program that finds the roots of the quadratic equation using the Quadratic Formula. Write a function named discriminant in the file, Disc.py, to calculate and return the discriminant of the formula. Let the main function call the discriminant function and…arrow_forward
- Phyton: A person can obtain their driver's license if they are of legal age and have official identification. Write a Python program that reads a person's age and if they have (y/n) official identification. Output must show Yes if you can obtain your license or No if you cannot obtain it Entry person's age The letter s or n indicates whether or not you have official identification. The letter is lowercase. Exit The word Yes or No depending on whether or not the person can get their driver's license. Note that the word goes with the first letter capitalized. Program execution example: >>>21 >>>s Yesarrow_forwardtrue or false: The expression (7 // 2) * 3 == 9.0 evaluates to False python codingarrow_forwardNeed assistance with python code. Problem statement: Design the solution to the following problem and implement it in a Python program. Implement a program that allows the user to choose from a menu to calculate the future value of an investment, the present value (how much you need to invest) for a target investment value, or the monthly payment for a loan. The formulas for these quantities are given as follows: A: amount (present value, target value, or loan amount depending on what is calculated) r: interest rate (Note: the user will enter 3.5 for 3.5%. When substituting in the formula, the user input needs to be decimal, that is, 0.035 which is 3.5/100 t= time (number of years for the investment or the loan) (See attached image for reference) Your program will provide a menu to the user with the following options: F - Future Value P - Present Value M- Monthly Payment Q - Quit If the user chooses F, P, or M (or lowercase versions of these letters), then the program…arrow_forward
- Periodic compounding The total accumulated value, including the principal sum P, is given by the formula: where: nt A = P(1 + 1) "² n A is the final amount Accumulated Value P is the original principal sum r is the nominal annual interest rate n is the compounding frequency t is the overall length of time the interest is applied (expressed using the same time units as r, usually years). Using the above formula write a program that will display the following table. Principal-Value | Times-Interest-Compunded | Annual-Int-Rate | Term | Accumulated-Value 1000 6.00% 10 3.20% 15 2000 3000 9.25% 10 2 ** 3 8 | You must use exponent operator to compute P Exponent Operator in Python is ** Examples m=3 n=2 p= m **n (https://en.wikipedia.org/wiki/Compound_interest) 1 2 4 base = 2 exp = 4 a = base ** exp print(a) 16 print("Solving the exponent, we get Solving the exponent, we get 9 ,p ) 1790.85 3219.89 7486.33arrow_forwardPhone Company charges for phone calls by distance (miles) and length of time (minutes) The cost of a call (in dollars) is calculated as 0.15 (length of time + 0.02 * distance). Design, write, test, and run a Python program using IDLE's script mode (NOT interactive mode). The program should calculate the cost of each of four phone calls and the total cost of all four phone calls. The program should be designed to request the times and distances from the program's user through the use of the keyboard. What is a user? The program's user is you when you are testing and running the program. The instructor will be the user when the program is checked. The output of your program should display the time, distance, and cost of each call. In addition, it should display the total cost of all four phone calls. Please do fast fastt...arrow_forwardComplete the below function in Python language def checkPassword(pass): #pass must have length between 10 and 15 # pass must contain atleast one lowercase character # pass must contain atleast one uppercase character # pass must contain atleast one digit character Take the pass from the user.arrow_forward
- Python pleasearrow_forwardc languagearrow_forwardDevelop a body mass index (BMI) calculator program that reads body weight and height as inputs and calculate the BMI based on the following formula: BMI - Weight/Height Using the caleulated BMI, determine the individual weight category based on the following Table I and the program will count how many user's BMI get a particular category: Table 1 BMI Category > 30 25- 30 18.5-24.9 You are obese Your weight is overweight You have an ideal weight You are too thin S18.5 Use if..else statements or switch statements and loop where it is appropriate and create a program with the following output Sample program's output is as below, the rumbers in bold/underline are user's input: ******..* PROGRAM TO CALCULATE BMI CATEGORY*****.. Please enter your weight (kg) : Please enter your height (m) Your BMI is 19.38, Xour have an ideal weight 56 1.7 Would you like to calculate arother BMI? y- yes, n noy Please enter your weight (kg) : Please enter your height (m) Your BMI is 30.47. 78 1.6 You are…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education