generate six numbers from 1 to 76 with no repeats 1 prompt u
generate six numbers from 1 to 76 with no repeats
1) prompt user for amount tickets they want to purchase must be between 1 and 7
2) generate six random numbers (1-76) for each ticket
3) display ticket one per line with numbers in ascending order
ex 4 12 45 61 68 70
2 9 16 23 50 51 74
must use a set data structure built with a treeset constructor
must prompt user for number of tickets if number out of range then reprompt until a valid number (1-7)
Solution
A database is an organized collection of data.[1] It is the collection of schemas, tables, queries, reports, views, and other objects. The data are typically organized to model aspects of reality in a way that supports processes requiring information, such as modelling the availability of rooms in hotels in a way that supports finding a hotel with vacancies.
A database management system (DBMS) is a computer software application that interacts with the user, other applications, and the database itself to capture and analyze data. A general-purpose DBMS is designed to allow the definition, creation, querying, update, and administration of databases. Well-known DBMSs include MySQL, PostgreSQL, MongoDB, Microsoft SQL Server, Oracle, Sybase, SAP HANA, and IBM DB2. A database is not generally portable across different DBMSs, but different DBMS can interoperate by using standards such as SQL and ODBC or JDBC to allow a
