Command line menu-driven python application

Assignment Help Python Programming
Reference no: EM133424543

Overview - Python language syntax including functions The Lab for this week demonstrates your knowledge of this additional Python functionality.

Python Applications for this Lab:

The first exercise produces a command line menu-driven python application providing users with the ability to perform several math and security related functions. The second part documents your testing and pylint analysis results.

1. Create a menu-driven python application with following menu options for users to run at the command line:

a. Generate Secure Password
b. Calculate and Format a Percentage
c. How many days from today until July 4, 2025?
d. Use the Law of Cosines to calculate the leg of a triangle.
e. Calculate the volume of a Right Circular Cylinder
f. Exit program

As you put this menu together be sure to adhere to the following guidance and hints:
1. Create functions to be called sending in the parameters the user enters.
2. Validate input data to ensure each entry from the user is correct before proceeding.
3. Prompt the user to reenter information as needed.
4. The following Python sites are excellent resources for learning more about the string, datetime, secrets, math, and random number libraries mentioned in the readings that you should use as part of this exercise.
5. Use comments to document your code
6. Test with many combinations.
7. Use pylint to verify the code style - the goal is a 10!

Some additional guidance related to your functions created:

Part 1. For the secure Password, you should prompt the user for the length of the password to be created, as well as the complexity (i.e. Use of Upper Case, Use of Lower Case, Use of Numbers, Use of special characters). Check out options from commercial password generators such as Norton. Note in a command line interface, the input and prompts are just text, so you won't be creating a GUI, just the functionality that allows the user to enter the information needed.
2. For the percentage, consider a simple example, where the user has to enter the numerator and denominator and the number of decimal points for formatting. For example, 22, 57, 3 would yield 38.596 percent.
3. For days until July 4, 2025 the output should just be the number of days. There would be no input other than the selection from the menu
4. The formula for the law of cosines can be found at sites such as You want to solve for c (lower case
c) in the following diagram.
5. The formula for a right cylinder can be found here: Be sure to select right circular cylinder.
6. When exiting the program be sure to thank the user for visiting your application.

Part 2. Document your testing results using your programming environment. You should also include and discuss your pylint results for the application. The test document should include a test table that includes the input values, the expected results and the actual results. A screen capture should be included that shows the actual test results of running each test case found in the test table. Be sure to include multiple test cases to provide full coverage for all code and for each function you develop and test.

Attachment:- Python Applications.rar

Reference no: EM133424543

Questions Cloud

What warranties were made in this sale : The machine Stephenson really liked was the "Superwasher." The salesperson said, "Your clothes will be cleaner than they have ever been if you use
Will the average flow time experienced by potential customer : Will the average flow time experienced by potential customers who stay in the system until they receive service increase, decrease, or stay the same?
Explanation specific truth conditions for each connective : Explain the difference between the conditional and the bi conditional. Include in your explanation the specific truth conditions for each connective.
How does this case falls under the sales of goods act : How does this case falls under the Sales of Goods Act? Explain. Does the passage of the title come into play in this case? Explain briefly.
Command line menu-driven python application : produces a command line menu-driven python application providing users with the ability to perform several math and security related functions
When have you or someone you know used a logical fallacy : When have you or someone you know used a logical fallacy to sway an opinion, win an argument, or gain an advantage? Did you (or the person in question)
Bakery specializing in fresh baked goods : You run a bakery specializing in fresh baked goods. the optimal service level should decrease as the variance of demand goes up. Is the consultant right?
Elaborate upon the challenges inherent within the release : elaborate upon the challenges inherent within the release from incarceration and back into society under parole. Are there new support mechanisms
Elaborate upon the challenges inherent within the release : elaborate upon the challenges inherent within the release from incarceration and back into society under parole. Are there new support mechanisms

Reviews

len3424543

5/22/2023 9:51:31 PM

SDEV 300- using PyCharm program please! Submission requirements for this project include 2 files. (Zipping them into one file is acceptable and encouraged): Python Command Line Math and Security Related Application Code ? Word or PDF file containing your test and pylint results

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd