Introduction:
I have been asked to program a program and code it for a
washing machine company, so I have asked to design and
develop a computer program so once the user inputs a value
or a number the code will check if they have enough in the
factory after the customer’s request and wish their supplies.
Code
Screenshots of my code with annotations to describe and
explain what’s happing in my program
This screenshot shows the username and the password that
the user has to input into the login.
So, the program will only accept this specific username and
password no other than that if the user entered the following
username and password the program will them in and the
authentication will be successful if not an error message will
display to say, “Try again”.
In this section of the code, the program will check the
information and details that the user entered so what it does
, it will check with the database to check whether the
username and password match the database or not if it
matches it will let the user into the application if not it will
display an error message saying try again.
In the section of the program, the program is waiting for user
input, so it is asking the user to input data into the program
so the user has to input the number of linen items. Then the
program will ask the user to enter the number of items and
then the number of missing items.
After that, the program will ask the user for charge number
of items too dirty to clean and then the program will
calculate the charge so for the charge calculation the
program will calculate add up the total cost of a number of
items, number of missing items, number of items too dirty,
returned items, number missing items and number of items
too dirt to clean to display the tola cost.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller sleimandarwish. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $16.12. You're not tied to anything after your purchase.