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

  Design architecture of system to accept natural language

Using the generic model of a language processing system presented here, design the architecture of a system that accepts natural language commands and translates.

  Write function to take the name of file as one parameter

Write a function named paragraphStats() that takes one parameter:the name of a file. The file contains a single line of text.

  Create nested menus interface for a check-in hotel

Create a nested menus interface for a check-in and check-out hotel reservation system that can be used internationally. Use numbers to select a menu item.

  Expression whose value is distance between two point

a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two point represented by p1 and p2.

  Benefits of programming with objects and classes

How is it different from programming with functions alone? Write down benefits of programming with objects and classes in Web applications?

  Writing program of long term parking

Write an enitre program about the long term parking, and calculate the parking total fare.

  Method takes string and integer as parameters

Write a method called multiConcat which takes a String and an integer as parameters. Return String made up of the string parameter concatenated with itself count times.

  Write program to convert length in feet into centimeters

Write the program which prompts the user to enter the length in feet and inches and outputs equivalent length in centimeters.

  Write program that asks user to enter five test scores

Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score.

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Design a class for string field for toppings

Design a class named pizza. Data fields include a string field for toppings (such as pepperoni) and numeric fields for diameter in inches (such as 12) and price (such as 13.99).

  Program for saving account balance report

Savings account balance report from customer savings account file. Every input savings account record contains account number, balance forward, deposits (sum of all deposits).

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