Question: 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

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 (1- 30)

This assignment requires that you create a menu that will allow for the following:

an alphabetic list of the wines within a type chosen by the user.

an alphabetic list of the wines from a particular winery chosen by the user.

a list showing a count of all wines by type both type name (Sparkling, Fortified, etc.) and count should be displayed

a list showing a count of all wines in a winery by winery number both winery number and count should be displayed

Exit the menu

NOTES:

All of the data for the above menu should be derived from the wine.txt file.

After selecting menu option 1, the user should be then given the option to select a number from 2 through 6

After selecting menu option 2, the user should be then given the option to select a number from 1 through 30

The menu should display on a clean screen, as should the output from the user choice, and should keep displaying until the user select the Exit choice.

The script should be documented as required for previous assignments - the script file should have documentation including the programmer's name, date written, name of script, and the purpose of the script.

wine.txt:

1:Archibald:2:1997:1 2:Pattendon:3:1975:1 3:Lombardi:4:1985:2 4:Tonkin:2:1984:2 5:Titshall:5:1986:2 6:Serrong:6:1995:2 7:Mettaxus:5:1996:2 8:Titshall:4:1987:3 9:Serrong:3:1981:3 10:Chester:5:1999:3 11:Chemnis:2:1980:3 12:Holdenson:6:1979:4 13:Skerry:2:1975:4 14:Pattendon:5:1978:4 15:Titshall:3:1999:4 16:Belcombe:3:1998:4 17:Dimitria:5:1981:5 18:Titshall:5:1977:5 19:Holdenson:4:1986:6 20:Sears:2:1999:6 21:Sorrenti:3:1970:6 22:Belcombe:3:1972:7 23:Sears:4:1986:8 24:Kinsala:3:1985:8 25:Skerry:5:1973:8 26:Keisling:6:1973:8 27:Mellaseca:6:1973:8 28:Keisling:6:1985:8 29:Chester:2:1983:9 30:Nancarral:5:1988:9 31:Mockridge:6:1970:9 32:Dimitria:6:1977:9 33:Barneshaw:2:1973:10 34:Lombardi:4:1985:10 35:Chester:4:1970:10 36:Mettaxus:2:1971:10 37:Stribling:6:1975:10 38:Tonkin:6:1986:10 39:Sears:3:1975:11 40:Rosenthal:5:1981:12 41:Florenini:6:1998:13 42:Mettaxus:3:1982:13 43:Pattendon:6:1984:14 44:Barneshaw:4:1978:14 45:Ruscina:3:1977:15 46:Marzalla:3:1991:15 47:Marzalla:6:1999:16 48:Lombardi:3:1975:17 49:Oaton:3:1993:17 50:Sears:5:1993:17 51:Mockridge:4:1983:17 52:Tonkin:6:1989:17 53:Triskit:6:1990:18 54:Eggelston:2:1996:18 55:Morfooney:3:1985:18 56:Oaton:3:1980:18 57:Stribling:2:1998:19 58:Florenini:3:1996:19 59:Galti:5:1984:19 60:Serrong:6:1998:20 61:Mockridge:3:1975:20 62:Marzalla:6:1979:20 63:Serrong:2:1970:20 64:Triskit:2:1988:20 65:Sears:3:1971:20 66:Ruscina:5:1975:21 67:Krennan:3:1976:21 68:Mockridge:5:1996:21 69:Holdenson:6:1972:21 70:Taggendharf:3:1974:21 71:Barneshaw:5:1998:22 72:Barneshaw:3:1972:23 73:Nancarral:3:1991:23 74:Ruscina:5:1970:23 75:Tonkin:2:1988:23 76:Ritterman:3:1974:23 77:Marzalla:4:1994:24 78:Dalion:3:1992:24 79:Mellaseca:2:1990:24 80:Leramonth:3:1976:24 81:Kinsala:5:1976:24 82:Oaton:5:1979:24 83:Belcombe:3:1977:25 84:Dalion:4:1971:25 85:Morfooney:5:1989:26 86:Mellili:6:1988:26 87:Mockridge:3:1984:26 88:Dalion:2:1975:26 89:Mellili:5:1980:26 90:Chemnis:6:1990:27 91:Nancarral:6:1987:27 92:Florenini:6:1985:27 93:Stribling:6:1976:28 94:Oaton:5:1972:29 95:Chester:5:1977:29 96:Skerry:3:1976:29 97:Galti:5:1986:29 98:Triskit:6:1987:29 99:Stribling:6:1975:29 100:Titshall:5:1984:30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!