1. Create a program that asks the user to create a password with 5-10 characters. While...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create a program that asks the user to create a password with 5-10 characters. While their password is the wrong size print an error message and keep asking them for a password. Once an acceptable password is entered, print "password created successfully". Use a while loop. 2. Create a program that calculates the sum of the first n natural numbers using a while loop. While the total of these numbers is less than 639,000 keep adding natural numbers. Once the total exceeds 639,000 print the last number that you added to the total. 3. Create a program that finds the average of five numbers the user gives you. Use a while loop to keep asking the user for numbers. 4. Create a program that finds the average of n numbers the user gives you. Use a while loop to keep asking the user for numbers until they type "done". 1. Create a program that asks the user to create a password with 5-10 characters. While their password is the wrong size print an error message and keep asking them for a password. Once an acceptable password is entered, print "password created successfully". Use a while loop. 2. Create a program that calculates the sum of the first n natural numbers using a while loop. While the total of these numbers is less than 639,000 keep adding natural numbers. Once the total exceeds 639,000 print the last number that you added to the total. 3. Create a program that finds the average of five numbers the user gives you. Use a while loop to keep asking the user for numbers. 4. Create a program that finds the average of n numbers the user gives you. Use a while loop to keep asking the user for numbers until they type "done".
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
How might a person overstate their net worth on a personal balance sheet? By including the current trade in value of a life assurance plan. By Including all contingent liabilities at their expected...
-
as soon as possible please ???? Lamonda Corp. uses a job order cost system. On April 1, the accounts had balances as shown in the Taccounts below The following transactions occurred during April: (a)...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Aoslia is a small country that takes the world price of corn as given. Its domestic supply and demand for corn are given by the following: a. Assume initially that Aoslia does not open to trade. What...
-
What actions should executives take to correct these problems?
-
Briefly describe how you find quartiles and percentiles for a data set.
-
1. Your instructor will divide the class into teams and assign each team the task of investigating the start-up of one of the following businesses: a. Submarine sandwich shop b. Day care service c....
-
Thakin Stairs Co. of Moore designs and builds factory-made premium wooden stairways for homes. The manufactured stairway components (spindles, risers, hangers, hand rails) permit installation of...
-
A small electric immersion heater is used to heat 87 g of water for a cup of instant coffee. The heater is labeled "120 watts" (it converts electrical energy to thermal energy at this rate)....
-
The unadjusted trial balance of Mesa Inc., at the company's year end of December 31 follows: Additional information and adjustment data: 1. The 12-month insurance policy was purchased and was...
-
Critique the sustainable investment of the company and identify factors that force the company to move toward sustainability. Discuss the structure of funds allocation between traditional and green...
-
Crystal had her money invested in two types of mutual funds: $2,900 in low-risk funds and $1,200 in high-risk funds. If the value of her high-risk funds grew by 35.00%, and that of the low-risk funds...
-
How do distributed fault-tolerant systems employ techniques such as redundancy, replication, and consensus protocols to ensure continuous operation in the face of component failures or network...
-
You are 24 years old, and decide to save $12,000 each year (with the first deposit one year from now), in an account paying 7% p.a., compounded annually. You will make your last deposit 41 years from...
-
You will need to create a portfolio of evidence to document your work; this must be documented clearly and presented professionally and submitted to the assessor for assessment. The assessor, in...
-
Can you elucidate on the role of consensus algorithms, such as Paxos and Raft, in achieving fault tolerance and data consistency in distributed databases and replicated state machines, highlighting...
-
Doire Teoranta needs to upgrade its payroll system. The management accountant has produced a report showing the costs related to undertaking this project in-house. The report sets out the costs as...
-
Tarick Toys Company manufactures video game consoles and accounts for product costs using process costing. The following information is available regarding its June inventories. The following...
-
The effective focal length f of a lens of thickness d that has surfaces with radii of curvature R 1 and R 2 is given by where n is the refractive index of the lens medium. Write a method that...
-
What is the difference between the paintComponent and repaint methods?
-
Recursively generate all ways in which an array list can be split up into a sequence of nonempty sublists. For example, if you are given the array list [1, 7, 2, 9], return the following lists of...
-
The latent heat of vaporization per unit mass of a pure substance at a given temperature, \(\lambda\), is defined as the difference in enthalpy between the saturated vapor and saturated liquid at the...
-
It is desired to dehumidify \(1.2 \mathrm{~m}^{3} / \mathrm{s}\) of air, available at \(311 \mathrm{~K}\) with a wet-bulb temperature of \(303 \mathrm{~K}\), to a wet-bulb temperature of \(288...
-
Modify the Mathcad program developed in Problem 3.16 to estimate the minimum gas flow rate in strippers so that it can be used to estimate the minimum air flow required for water cooling. Test your...
Study smarter with the SolutionInn App