Users selection and return to menu

Assignment Help Programming Languages
Reference no: EM1378909

The file below this drop, wine.txt, contains the records from a wine data file.

The 5 fields in each row are:

The wine identification number
Wine name
Type of wine (2=Sparkling, 3=Fortified, 4=Sweet, 5=White, 6=Red)
Year wine was made
Winery Number

Create a menu that will allow the user to:

List all wines by name in alphabetic order

Count all wines in each type and list all 5 types with their count

List only wines for a region year selected by the user

Provide the number of wines in a type selected by the user

Exit the program

The program should make sure that the menu always displays on a clean screen do the command necessary to satisfy the user's selection and then return to the menu (on a clean screen) continue looping until the user indicates that he/she wishes to exit the program.


Download:- wine.txt

Reference no: EM1378909

Questions Cloud

Discuss and define classical utilitarianism : Discuss and define Classical Utilitarianism and explain why, according to this view, nonhuman animals are entitled to equal moral concern.
Utilitarianism by the survival lottery concept : Assume that the everyone is given a sort of lottery number. Whenever doctors have two or more dying patients who could be saved through transplants,
Discussion on idea of morality : Moral issues are at heart of human problems and must figure prominently in solutions. It is our bleak paradox that specialized populations possess raising technological prowess
Pro life versus pro choice : Roe vs. Wade and other ongoing debates demonstrate that the question of the rights of the foetus vs. the rights of mothers is far from settled.
Users selection and return to menu : Create a menu that will allow the user to list all wines by name in alphabetic order and count all wines in each type and list all 5 types with their count
Arguments for ethical absolutism and ethical relativism : Does it seem that people are in the various stages Pre conventional level, Conventional level or a Post conventional level that Lawrence Kolberg presents?
Question about ethical approach : Regarding President Bush's space plan, and concern some have with spending billions on space when we have so many earthly difficulties.
Criticism of the romantic period : I learned that one criticism of the Romantic Period is that it is emphasis on feeling led to what some consider to be an age of subjectivity.
The divine command theory : James Rachels discuss in The Divine Command Theory that it cannot be accepted, even by religious believers, because it leads to serious doubts about the perfection of God.

Reviews

Write a Review

Programming Languages Questions & Answers

  Determine branch folding for unconditional branches

Determine the improvement from branch folding for unconditional branches. Assume a 90% hit rate, a base CPI without unconditional branch stalls of 1.

  Explain the interaction framework

Explain the Interaction Framework discussed by Steven Heim (2008). Choose a computing device (like an ATM machine or the self-check-out at a grocery store

  Write program which reads in side of a square

Write a program which reads in side of a square and then prints that square out of asterisks. Program must work for hollow squares of all side sizes between 1 and 20.

  Program a robot to run mile-long steeplechase

Program a robot to run mile-long steeplechase where steeples are made from beepers instead of wall segmesnts. the robot must jumb the steeples in this race by picking the beepers that make up the steeples.

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  List various bindings to determine the semantics

List the various bindings that are required to determine the semantics when the statement is executed. For each binding, indicate the binding time used for the language.

  Write program that uses recursive function to count number

Write a program that uses a recursive function to count the number of blobs in a square grid. Input to the program should consist of the locations of the asterisk in the grid.

  Creating website-based sales system for retail firm

Assume that you have been hired to create website-based sales system for large international retail sales firm.

  Wysiwyg editors can be used to learn html

What about fact that WYSIWYG editors can be utilized to learn HTML? As you can usually jump back and forth from their own image.

  Design and implement set of classes to model employees

Design and implement a set of classes to model the employees of a hospital: doctor, nurse, administrator, etc. Include methods in each class.

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Design program that asks user to enter budgeted amount

"Design a program that asks the user to enter the amount that he or she has budgeted for a month. (For example: $2,000.00)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd