
Concept explainers
PYTHON
Write a program that perform the following tasks:
a) Request a description of the item, the year of purchase, the cost of the item, the number of years to be depreciated (estimated life), and the method of depreciation
b) Display a year-by-year description of the depreciation in a table setting
Output Example:
Enter name of item purchased: computer
Emter year purchased: 2016
Enter cost of item: 2000
Enter estimated life of item <in years>: 5
Enter method of depreciation <SL or DDB>: SL
Description: computer
Year of purchase: 2016
cost: $2,000.00
estimated life: 5 years
method of depreciation: straight-line
(I did that ^ the only thing im having trouble with is the table setting) (see attached)


Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 3 images

- Alert dont submit AI generated answer. Create a python computer program that has the user to input the highest temperature for each day of the week 7 days which will be stored into a list the computer program should calculate and display the average temperature for that week in addition the computer program should calculate and just for the day of the week that had the highest temperature for the week along with the its temperature the day of the week they have the lowest temperature for that week along with its temperaturearrow_forwardPlease answer.. It's urgent. Don't reject Read carefully and write codearrow_forwardA Last In First Out (LIFO) data structure is a data structure in which the item that is added last will be removed fırst. True Falsearrow_forward
- // This pseudocode should create a list that describes annual profit // statistics for a retail store. Input records contain a department // name (for example, ìCosmeticsî) and profits for each quarter for // the last two years. The program should determine whether // the profit is higher, lower, or the same // for this full year compared to the last full year. start Declarations string department num salesQuarter1ThisYear num salesQuarter2ThisYear num salesQuarter3ThisYear num salesQuarter3ThisYear num salesQuarter1LastYear num salesQuarter2LastYear num salesQuarter3ThisYear num salesQuarter4LastYear num totalThisYear num totalLastYear string status num QUIT = "ZZZZ" housekeeping() while department <> QUIT compareProfit() endwhile finishUp() stop housekeeping()DEBUG04-02.txt output "Enter department name or ", QUIT, " to quit " input dept return compareProfit()…arrow_forwardAssignment-5 Create flow chart and algorithm for following problem: Check whether the inputted number is a. Positive b. Negative C. zeroarrow_forwardCode this using python. Start Team = 9 Enter number of Players No YES Players = 9 Need more to play Play Ball! Yes Stoparrow_forward
- Create the following variables that can be used to store values. Use the naming conventions as outlined in the Algorithms/Pseudocode Guidelines document in the course resources section of the course. 1. test grade for student test 2. total of all test grades added together 3. the average for the test grades Create an assignment statement that sets the value of the variable you created to store the value of all test grades added together to zero. You may refer to Table 6.1 in Chapter 6 for examples. Create an input statement to input the value for the first test grade for the variable you created. Create an algorithm that will obtain the test grade for three students, add the test grades together, calculate the average of the test grades, and output the average. Use a count-controlled loop to create the algorithm. Use the information from your answers to questions 3, 4, and 5 in the creation of your algorithm. Also use information and examples from Chapter 6…arrow_forwardDesign a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…arrow_forwardIn python, To get in complete access to a global variable named student_data use... A. global student_data # in the function where you want access B. global student_data # in the main program C. global (student_data) # in the function where you want access D. global:student_data # in the function where you want accessarrow_forward
- 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





