Put your names at the beginning of your program Collaborative work and submission in pairs only...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Put your names at the beginning of your program Collaborative work and submission in pairs only are allowed Any program written and completed by an Al ChatBot (ChatGPT) will be immediately rejected Write a description of your program and what you have used in 2-4 lines Take a screenshot of your program OR copy and paste it into a docs/word document, and submit it along with the description * Program 1: Bank account transaction program A basic bank account program that allows a user to deposit or withdraw money. The program greets the user, shows their current balance, and prompts them to choose between depositing or withdrawing. Users enter the desired amount, and the program updates the balance. If an invalid input is provided, the program resets the transaction process. The program runs continuously, allowing multiple transactions until the user stops it manually. Steps: Ask the user if they want to 1 deposit or 2 withdraw (use if statements) If the user inputs something other than 1 or 2, the loop will reset If the user selects deposit, the program will add the value to the bank variable If the user selects withdraw, the program will deduct the value from the bank variable Whenever the user inputs an invalid number (like a negative, or withdrawal is bigger than the bank variable amount, the loop will do nothing and reset) Since it's an infinite loop, the loop should never stop asking for a deposit or withdrawal * Program 2: User sign-in with multiple passwords chances An account sign-in program that asks a user to enter their username and password. The program provides the user with 5 attempts to enter the correct password. If the correct password is entered, the user gains access. If an incorrect password is entered, the remaining attempts are displayed, and a password hint is provided when only one attempt is left. If all attempts are used, the account is locked, and the user can no longer access it. Steps: Whatever the username is given, it will be accepted. The user can input their password with 5 chances only. If the user inputs the password correctly, they will be admitted to continue the program. (Else), every time the user inputs a wrong password, it will deduct 1 chance. (use deductive while loop or for loop) Once the chances are done, the program will stop allowing for more password inputs and stop the program. (hint: use comparison operator (Ex: a=="password") and nest statements) > Console Shell x + bank account transaction program Enter your name: Shrek Welcome to your bank account Shrek You currently have 15000 $ in your account Would you like to desposit or withdraw? Enter 1 to desposit, or 2 to withdraw: 1 how much would you like to desposit?:5000 Success! Total amount of 5000 has been added to your account. your new total = 20000 $ Would you like to desposit or withdraw? Enter 1 to desposit, or 2 to withdraw: 2 How much would you like to withdraw?: 10000 Success! Total amount of 10000 has been dedcuted from your account. your new total = 10000 $ Would you like to desposit or withdraw? Enter 1 to desposit, or 2 to withdraw: > Console X Shell x + A program to sign-in into account and check your password. Input your username = Dummy258 Welcome, Dummy258 Input your password = juk8762s Incorrect password, tries left = 5 Input your password = miony 72s! Incorrect password, tries left = 4 Input your password = nobad82 Incorrect password, tries left = 3 Input your password = abcd Correct password, welcome to the world The program is complete Put your names at the beginning of your program Collaborative work and submission in pairs only are allowed Any program written and completed by an Al ChatBot (ChatGPT) will be immediately rejected Write a description of your program and what you have used in 2-4 lines Take a screenshot of your program OR copy and paste it into a docs/word document, and submit it along with the description * Program 1: Bank account transaction program A basic bank account program that allows a user to deposit or withdraw money. The program greets the user, shows their current balance, and prompts them to choose between depositing or withdrawing. Users enter the desired amount, and the program updates the balance. If an invalid input is provided, the program resets the transaction process. The program runs continuously, allowing multiple transactions until the user stops it manually. Steps: Ask the user if they want to 1 deposit or 2 withdraw (use if statements) If the user inputs something other than 1 or 2, the loop will reset If the user selects deposit, the program will add the value to the bank variable If the user selects withdraw, the program will deduct the value from the bank variable Whenever the user inputs an invalid number (like a negative, or withdrawal is bigger than the bank variable amount, the loop will do nothing and reset) Since it's an infinite loop, the loop should never stop asking for a deposit or withdrawal * Program 2: User sign-in with multiple passwords chances An account sign-in program that asks a user to enter their username and password. The program provides the user with 5 attempts to enter the correct password. If the correct password is entered, the user gains access. If an incorrect password is entered, the remaining attempts are displayed, and a password hint is provided when only one attempt is left. If all attempts are used, the account is locked, and the user can no longer access it. Steps: Whatever the username is given, it will be accepted. The user can input their password with 5 chances only. If the user inputs the password correctly, they will be admitted to continue the program. (Else), every time the user inputs a wrong password, it will deduct 1 chance. (use deductive while loop or for loop) Once the chances are done, the program will stop allowing for more password inputs and stop the program. (hint: use comparison operator (Ex: a=="password") and nest statements) > Console Shell x + bank account transaction program Enter your name: Shrek Welcome to your bank account Shrek You currently have 15000 $ in your account Would you like to desposit or withdraw? Enter 1 to desposit, or 2 to withdraw: 1 how much would you like to desposit?:5000 Success! Total amount of 5000 has been added to your account. your new total = 20000 $ Would you like to desposit or withdraw? Enter 1 to desposit, or 2 to withdraw: 2 How much would you like to withdraw?: 10000 Success! Total amount of 10000 has been dedcuted from your account. your new total = 10000 $ Would you like to desposit or withdraw? Enter 1 to desposit, or 2 to withdraw: > Console X Shell x + A program to sign-in into account and check your password. Input your username = Dummy258 Welcome, Dummy258 Input your password = juk8762s Incorrect password, tries left = 5 Input your password = miony 72s! Incorrect password, tries left = 4 Input your password = nobad82 Incorrect password, tries left = 3 Input your password = abcd Correct password, welcome to the world The program is complete
Expert Answer:
Related Book For
Cornerstones of Financial and Managerial Accounting
ISBN: 978-1111879044
2nd edition
Authors: Rich, Jeff Jones, Dan Heitger, Maryanne Mowen, Don Hansen
Posted Date:
Students also viewed these operating system questions
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Write a literature review for your study. See below for an example of a literature review. Your literature review should provide both analysis and synthesis of previous studies as related to the...
-
Need assistance on adding accounting info to the excel worksheet posted. A.) would 97,400 go under cash or fixed assets ? Number Styles Cells Editing Ideas g Cash Balance B. C D E H. K M T. 0,1,F...
-
Suppose that under a gold standard, the U.S. dollar is pegged to gold at a rate of $35 per ounce and the pound sterling is pegged to gold at a rate of 17.50 per ounce. Explain how the gold standard...
-
Determine the indicated term for the geometric sequence with the first term, a 1 , and common ratio, r. Determine a6 when a 1 = 5, r = 2.
-
1. Read the text materials on feedforward, concurrent, and feedback control. 2. Read the Control Problem Situation and be prepared to resolve those control problems in a group setting. 3. Your...
-
(EPS: Simple Capital Structure) Kendall Inc. presented the following data. Net income $2,200,000 Preferred stock: 50,000 shares outstanding, $100 par, 8% cumulative, not convertible 5,000,000 Common...
-
Regarding 1031 exchanges, which of these statements regarding debt load in an exchanged property is true? Unset starred question The 1031 exchange doesn't address debt load. The debt load for the new...
-
Plank's distribution law gives the blackbody emissive power (amount of radiation energy emitted) as a function of temperature and wave length: Where C1 = 3.742 x 108 w?m 4/m2, C2 = 1.439 x 104 ?mK, T...
-
What is the gain/(loss) to be recognized in the income statement for 20x4 under IFRS 9? (a) $800,000 (b) 0 (c) $(100,000) (d) $(200,000) (e) $100,000 On 1 October 20x4, SingCo committed to purchase...
-
On 30 September 20x5, Singco entered into a non-cancellable contract to purchase inventory for 100,000 euros to be delivered on 31 January 20x6 with payment due on 31 March 20x6. Singco was concerned...
-
Alfalfa Companys functional currency is the dollar. On 30 June 20x1, it entered into a forward exchange contract to purchase FC 100,000 at the forward rate of $1.077 for delivery on 30 June 20x2. The...
-
The functional currency of K Co is the US dollar. On 1 January 2010, the management of K Co approved a decision to buy equipment for S$1,400,000. The equipment does not meet the conditions of a...
-
A Co has as its functional currency the Singapore dollar (S$) and enters into the following transaction. The business model of A Co is to hold investments to collect contractual cash flows and for...
-
A weak monoprotic acid is titrated with 0.100 M NaOH. It requires 50.0 mL of the NaOH solution to reach the equivalence point. After 25.0 mL of base is added, the pH of the solution is 3.62. Estimate...
-
Outline some of the major problems confronting an international advertiser.
-
Multiple Choice Questions 1. Which of the following ratios is used to measure a firms efficiency? a. Net Income Equity b. Net Sales Average Total Assets c. Assets Equity d. Net Income Sales 2....
-
Refer to the information for Luisa Crimini above. Luisa Crimini has been operating a beauty shop in a college town for the past 10 years. Recently, Luisa rented space next to her shop and opened a...
-
Trippler Company has decided to lease its new office building. The following information is available for the lease: Lease: Payments ................ $100,000 per year* Length of lease...
-
A typical timber wolf has a mass of \(40 \mathrm{~kg}\), a typical jackrabbit a mass of \(2.5 \mathrm{~kg}\). Given the scaling law presented in the passage, we'd expect the specific metabolic rate...
-
A standard gold bar stored at Fort Knox, Kentucky, is 7.00 inches long, 3.63 inches wide, and 1.75 inches tall. Gold has a density of \(19,300 \mathrm{~kg} / \mathrm{m}^{3}\). What is the mass of...
-
A typical timber wolf has a mass of \(40 \mathrm{~kg}\), a typical jackrabbit a mass of \(2.5 \mathrm{~kg}\). Given the scaling law presented in the passage, we'd expect the wolf to use times more...
Study smarter with the SolutionInn App