Read this documentation several times before beginning any programming. Use a s

Read this documentation several times before beginning any programming. Use a systematic, modular approach to develop Project 1. Follow the procedures explained inthe lecture and developed in the class activities. Avoid a “shotgun” approach (trying any andeverything without any definite direction) to the development. Refrain from creating”spaghetti” code (A complicated set of unstructured control structures). Include adequatecomments.Follow these steps. Begin by reading the problem statement multiple times until you have a completeunderstanding of all project requirements. Define the variables. Construct the Main flowchart. Write the functions and populate the Main flowchart. Use previously written functions,if possible. Execute and troubleshoot the program.Problem StatementThis project will focus on development of the controller for a newspaper dispenser. Thenewspaper dispenser will accept nickels, dimes, and quarters. The LCD will display awelcome message to each customer: “Today’s Paper Only 30 Cents.” Each time a coin isinserted, the LCD displays the total amount deposited: “Total: $XX.” When a minimum of 30cents is inserted, the program will cycle between two screens. The first screen will indicatethe total amount deposited: “Total: $XX.” This is displayed on the top line and the amount ofchange available (“Change: $XX”) is displayed on the second line. The second screen willdisplay “Enjoy” on the first line and “Your Paper” on the second line in green backlight.Depositing coins:Nickels, dimes, and quarters are represented by the switches on the Adafruit LCD + Keypadas shown below.CoinsNickelDimeQuarter Switch on AdafruitLeftRightDown If the left button is pressed, a nickel is recorded; if the right button is pressed, the controllerrecords a dime; and if the down button is pressed, a quarter is recorded.Initial ScreenThe initial display will appear as in the figure below. Displaying the Running TotalAs soon as the first switch is pressed (coin entered) the LCD displays the total amountentered. If Nickel is pressed, the screen below is displayed. Note the leading zero. The program keeps a running total of the amount entered and displays the total amountdeposited after each switch is pressed (coin is entered). If Dime is now pressed, the LCD willshow the screen below. This process continues until the minimum amount of 30 cents is entered.Displaying the Total and ChangeThe focus of this portion of the project is to count and display the change amount that wouldbe refunded along with the total amount inserted. The change amount is displayed on thebottom row of the LCD. Keep in mind the price of the newspaper is 30 cents. The displaymust look like the following. Develop “Door Open” Indication FunctionWhen the adequate change has been entered, the Total and Change screen is displayed for1 second and the message reading “Enjoy Your Paper” is displayed for 1 second (with agreen backlight0. The display must look like the following. The program returns to the beginning and displays the initial screen.Upload the completed newspaper dispenser (FiLastNameProject.py) to the weekly iLab Dropbox.

The post Read this documentation several times before beginning any programming. Use a s appeared first on Academicheroes.com.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

First, create the lab08 folder using the mkdir command — the folder needs to be

First, create the lab08 folder using the mkdir command — the folder needs to be inside your Labs folder as well.Next, copy a file into your lab08 folder using the cp command.cp /afs/umbc.edu/users/k/k/k38/pub/cs201/given_spend.py spending.pyThis will copy the file given_spend.py from Dr. Gibson’s public folder into your current folder, and will change the file’s name to spend.py instead.The first thing you should do in your file is complete the file header comment, filling in your name, section number, email, and the date.CMSC 201 – Computer Science I for Majors Page 7Part 3B: Finishing the FunctionsAt this point, if you try to run the file, it will only print out the category titles for the expenditures, and nothing else. That is because the file is only partially completed for you.You will need to update the file to complete the two function definitions, and one function call. If you open the file, you should see comments boxed in by #signs – these are where you need to write new code. Read the function header comments to see the details about the two functions.You’ll need to think carefully about the two-dimensional spending list and how its contents are organized (and how you can access them). It might be helpful to draw a visual representation, and to label the indexes.For printSpending() and tallySpending(), you’ll need to write awhile loop. Make sure to pay attention to what the function’s already written code does, as well as things like variable names.Once both functions are complete, you need to call tallySpending() down in main(), as well as uncommenting the print() statement below it. Youshouldn’t need to write any other code.(See the next page for sample output.)CMSC 201 – Computer Science I for Majors Page 8Here is some sample output of the completed program.There is no user input, and yours should be identical once it’s complete.(The printed list of expenditures for eating out is long enough to wrap around in this document, but is should not wrap around when you run it in the terminal.)CMSC 201 – Computer Science I for Majors Page 9Part 4: Completing Your LabSince this is an in-person lab, you do not need to use the submit command to complete your lab. Instead, raise your hand to let your TA know that you are finished.They will come over and check your work – they may ask you to run your program for them, and they may also want to see your code. Once they’ve checked your work, they’ll give you a score for the lab, and you are free to leave.

The post First, create the lab08 folder using the mkdir command — the folder needs to be appeared first on Academicheroes.com.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

A convenience store recently started to carry a new brand of health drink. Mana

A convenience store recently started to carry a new brand of health drink. Management is interested in estimating the future sales volume to determine whether it should continue to be stocked. At the end of April, the average monthly sales volume of the new drink was 700 bottles and the trend was +50 bottles per month. The actual sales volume for May, June and July are 760, 800 and 820 respectively. Use trend-adjusted exponential smoothing with andto forecast sales for June, July and August. Hint: Sales for April are 700 bottles. You should start with the smoothed (SES) forecast for April = 700 bottles and trend (April) = 50.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Community Nursing Concepts

Before starting with our week 1 discussion topic, please introduce yourself to the class, and carefully respond to the below questions:

  • What is your name?
  • Why do you want to be a nurse?
  • What do you hope to learn in this class?
  • What questions do you have on the course syllabus or the first live Instructors session?

Then discuss how poverty (i.e., “being poor”) and other social factors affect cumulative risk, susceptibility, resiliency, and vulnerability.

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code “Newclient”


Community Nursing Concepts was first posted on July 22, 2019 at 10:56 pm.
©2019 "Academicheroes.com". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at Academicheroes.com

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"