Question

Final Project 2 Due Sunday by 11 59pm Points 100 Submitting the upload Instructions For this assignment, you will create flow

disregard

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: Hey dear student find the solution of your query, if you have any doubt feel free to ask. Thanks!!

This Flowgorithm program ask for age and zip code from user and validate age if is is not in range output an error message else process continue. If the user enters 0 to zip code it ends the program and displays average of the age and number of item purchased.

It any issue, please comment on me in the comment box.

FlowChart:

Main Integer age, zip, numitem, totalPurchased tem, totalAgeCust, numcust String tempAvg totalPurchaseditem = 0 totalAgeCust

Enter number of items to purchase: Enter your zip code: Total item purchased: 20 Average of age: 27.75

Pseudocode:

Declare Integer age, zip, numItem, totalPurchasedItem, totalAgeCust, numcust
Declare String tempAvg

Set totalPurchasedItem = 0
Set totalAgeCust = 0
Set numcust = 0
Declare Real avgAge

Display "Enter your zip code: "
Input zip
While zip != 0
Set numcust = numcust + 1
Display "Enter your age: "
Input age
While age < 10 OR age > 100
Display "Invalid age!!"
Display "Re-enter your age: "
Input age
End While
Set totalAgeCust = totalAgeCust + age
Display "Enter number of items to purchase: "
Input numItem
Set totalPurchasedItem = totalPurchasedItem + numItem
Display "Enter your zip code: "
Input zip
End While
Display "Total item purchased: ", totalPurchasedItem
Set avgAge = totalAgeCust / numcust
Set tempAvg = toFixed(avgAge, 2)
Display "Average of age: ", tempAvg

Add a comment
Know the answer?
Add Answer to:
disregard Final Project 2 Due Sunday by 11 59pm Points 100 Submitting the upload Instructions For...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Due Sunday by 11:59pm Points 10 Submitting a text entry box or a file upload Available...

    Due Sunday by 11:59pm Points 10 Submitting a text entry box or a file upload Available Apr 13 at 8:45am - Apr 19 at 11:59pm 7 days What are two advantages to a repeated measures design? (You your book or the internet to help you with this answer) The repeated measures t test is most like which other t test that we have learned: single sample or independent samplest test? Why? Previous Next >

  • Nursing journal assignment Submit Assignment Due Sunday by 11:59pm Points 100 Submitting a file upload Nursing...

    Nursing journal assignment Submit Assignment Due Sunday by 11:59pm Points 100 Submitting a file upload Nursing journal: Locate one nursing journal article pertaining to a health problem. Read the article and summarize the article in a paragraph of 300-350 words (cite your material in APA format) Next. Previous

  • Assignment 5 Due Apr 5 by 11:59pm Points 100 Submitting a file upload A5 Wrapper Classes "Pig Lat...

    Assignment 5 Due Apr 5 by 11:59pm Points 100 Submitting a file upload A5 Wrapper Classes "Pig Latin" Access A5 from pdf assigament file t Turn in the following files aSmain java program compile and run screenshots design document AS 15. Pig Latin Write a program that reads a sentence as input and converts each word to "Pig Latin". In one version of Pig Latin, you convert a word by removing the first letter, placing that letter at the end...

  • Challenge: Recursion and Python Turtle Graphics Submit Assignment Due Friday by 11:59pm Points 100 Submitting a...

    Challenge: Recursion and Python Turtle Graphics Submit Assignment Due Friday by 11:59pm Points 100 Submitting a file upload Available after Nov 9 at 12am Challenge: Recursion and Python Turtle Graphics Description: Write a program that draws a picture using Python e, recursion, and Turtle graphics e. Purpose: The purpose of this challenge is to provide experience working with recursione in Pythone. It also provides experience working with Turtle graphics in Pythone Requirements: Recursion and Python Turtle Graphics provides information on...

  • Due Sunday by 11:59pm Points 150 Submitting a file upload Required Resources Read/review the following resources...

    Due Sunday by 11:59pm Points 150 Submitting a file upload Required Resources Read/review the following resources for this activity: Textbook: review previous chapters Lesson Minimum of 2 scholarly sources Dilemmas Review the following dilemmas: The Mayor of a large city was given a free membership in an exclusive golf club by people who have received several city contracts. He also accepted gifts from organizations that have not done business with the City, but might in the future. The gifts ranged...

  • 9:09 PM Fri Sep 27 Ass1.pdf 9/21/2019 Ass1 Submit Assignment Due Sunday by 11:59pm Points 5...

    9:09 PM Fri Sep 27 Ass1.pdf 9/21/2019 Ass1 Submit Assignment Due Sunday by 11:59pm Points 5 Submitting a file upload File Types zip Goals: Write a C++ class with separate.h and.cpp file, use partially filled arrays, Create a new class called Library that uses a private string array to store the list of books The starter code can be downloaded from https://github.com/pisan 342/ass 1-starter (https://github.com/pisan 342/ass 1-starter) You need to submit ass1.zip with the following files in it. Put all...

  • Programming Project 3 See Dropbox for due date Project Outcomes: Develop a Java program that uses:...

    Programming Project 3 See Dropbox for due date Project Outcomes: Develop a Java program that uses: Exception handling File Processing(text) Regular Expressions Prep Readings: Absolute Java, chapters 1 - 9 and Regular Expression in Java Project Overview: Create a Java program that allows a user to pick a cell phone and cell phone package and shows the cost. Inthis program the design is left up to the programmer however good object oriented design is required.    Project Requirements Develop a text...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT