Question
Answered step-by-step

QT Suppose I have the following table in MySQL: id name teacher id...

QT

Suppose I have the following table in MySQL: id name teacher id 10001 Computer Science 142 1234 10002 Computer Science 143 5678 10003 Computer Science 190M 9012 10004 Informatics 100 1234 courses Suppose I am building a page called 'allCourses.php' that will show all the course names that exist by querying from the 'courses' table. Write the complete code for 'allCourses.php'. (And use a table to show the course name: 1 course name per table row). The output should look like below: Computer Science 142 Computer Science 143 Computer Science 190M Informatics 100


Identify what relevant conclusion or conclusions could be made from the given premises. Every computer science major plays PC games. Vin Diesel plays PC games. Prince Harry doesn't play PC games. Mark Zuckerberg is a computer science major. Select All that applies. Prince Harry is not a computer science major. Vin Diesel is not a computer science major. Prince Harry doesn't play pc games or has a degree in computer science. Vin Diesel is a computer science major Mark Zuckerberg and Vin Diesel play PC games.


In this project you are to create a database of books that are stored using a vector. Keep track of the author, title, and publication date of each book. You program should have a main menu that allows the user to select from the following: (1) Add a book's author, title, and date; (2) Print an alphabetical list of the books sorted by author; and (3) Quit.

You must use a class to hold the data for each book. This class must hold three string fields: one to hold the author's name, one for the publication date, and another to hold the book's title. Store the entire database of books in a vector in which each vector element is a book class object.

To sort the data, use the generic sort function from the <algorithm> library. Note that this requires you to define the < operator to compare two objects of type Book so that the author field from the two books are compared.

A sample of the input/output behavior might look as follows. Your I/O need not look identical, this is just to give you an idea of the functionality.

Select from the following choices:

1. Add new book

2. Print listing sorted by author

3. Quit

1

Enter title:

More Than Human

Enter author:

Sturgeon, Theodore

Enter data:

1953

Select from the following choices:

1. Add new book

2. Print listing sorted by author

3. Quit

1

Enter title:

Problem Solving with C++

Enter author:

Savitch, Walter

Enter date:

2015

Select from the following choices:

1. Add new book

2. Print listing sorted by author

3. Quit

2

The books entered so far, sorted alphabetically by author are:

Savitch, Walter. Problem Solving with C++. 2015.

Sturgeon, Theodore. More Than Human. 1953.

Select from the following choices:

1. Add new book

2. Print listing sorted by author

3. Quit

1

Enter title:

At Home in the Universe

Enter author:

Kauffman

Enter date

1996

Select from the following choices:

1. Add new book

2. Print listing sorted by author

3. Quit


1 Alm 1. Write a python program using input function to convert 500 Kilometers to meters. 2. Write a python program using input function to calculate the average of any six numbers. 3. Write a python program using input function to calculate the shaded area, 5


Write a Python program that keeps vegetable names and prices in a dictionary as key-value pairs. The Python program should display a menu that lets the user see a list of all vegetables and their prices, add a new vegetable and price, change the price of an existing vegetable, and delete an existing vegetable and price. The Python program should pickle the dictionary and save it to a file when the user exits the Python program. Each time the Python program starts, it should retrieve the dictionary from the file and unpickle it.

Answer & Explanation
Verified Solved by verified expert
<p>lestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam</p> Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answer

ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue

ec facilisis

entesque dapibus efficitur laoreet. Nam risus ante

, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliq
a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictu
ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellen

Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet,

iscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque d

sus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem

usce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce du

s a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum do

s ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, cong

usce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet.

Step-by-step explanation

iscing elit. Nam lacinia pulvinar tortor nec

ng elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus eff

m ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar to

ipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesqu

a molestie consequat, ul

ce dui lectus, congue vel laoreet ac, dictum

e vel laoreet ac, dictum vitae odio. Donec a

ongue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dol

ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesq

, consectetur adipiscing elit

facilisis. Pellentesque dapibus efficitu

ce dui lectus, congue vel laoreet ac,

tesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectu

gue

icitur laore

a. Fusce dui lectus
onec aliquet. Lorem
icitur laoreet. N
ongue vel laoreet

sum dolor sit amet,

fficitur laoreet.
m risus an
o
et, consectetur adipiscing elit. Nam lac
m ipsum dolor sit ame
nec facilisis. Pellentesque dapibus effici
ia pulvinar tortor nec facilisis. Pellente
iscing elit. Nam lacinia pulvinar tortor

sum dolor sit amet,
ongue vel laoreet ac, dictum vitae odio.
entesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie conse
e vel laoreet ac, dictum vitae
ia pulvinar tortor nec facilisis. Pellentesque dapibus efficit
dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit ame
s a molestie consequat, ultrices ac magna. Fusce dui lectu
rem ipsum dolor sit amet, cons

a molestie consequat, ultrices ac magna. Fusce dui lectus,
iscing elit. Nam lacinia pulvinar tortor
e vel laoreet ac, dictum vitae
entesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui l
rem ipsum dolor sit amet, cons

dictum vitae odio. Donec aliquet. Lorem ipsum dolor
dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, con
e vel laoreet ac, dictum vitae
Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet
rem ipsum dolor sit amet, cons
u

ng elit. Nam lacinia pulvinar
onec aliqu
o
entesque dapibus eff

, dictum vitae odio. Donec ali
nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui le
icitur laoreet. Nam ri

ng elit. Nam lacinia pu
o

ipiscing elit. Nam lacinia pulvina
et, consectetur ad
o
facilisis. Pellentesque d
usce dui lectus, congue ve
consectetur adipiscing e

fficitur laoreet. Nam risu

o. Donec aliquet. Lorem ips
icitur laoreet. Nam risus ante, dapibus a
m ipsum dolor sit amet, consectet

o. Donec aliquet. Lorem ipsum dolor sit amet
risus ante, dapibus a molestie con

ongue vel laoreet ac, dictum vitae odio. D
gue vel laoreet ac, dictum vitae

iscing elit. Nam lacinia pulvi
ipiscing elit. Nam lacinia pulvinar tortor

llentesque dapibus efficitur
cing elit. Nam lacinia p
o

m ipsum dolor sit amet, cons
itur laoreet. Nam risus ante, dapi
o
or nec facilisis. P

e vel laoreet ac, dictum vit
, dictum vitae odio. Donec aliquet. Lorem ips

facilisis. Pellentesque dapibus e
ia pulvinar tortor nec facilisis. Pellente
a. Fusce dui l
, dictum vitae odio. Donec aliquet. Lorem ipsum d
a. Fusce dui lectus, congue vel laoreet ac, dictum
usce dui lect
o

ctum vitae od
onec aliqu
o
ctum vitae odio. Donec aliquet
nec facilisis. Pellentesque dap

entesque dapibus eff

tesque dapibus effic
a. Fusce dui l
risus ante, dapibus a molestie consequat, ul
llentesque dapibus efficitur laoreet. Nam

nec facilisis. Pellentesque dapibus efficitur laoreet. Na
ongue vel laoreet ac, dictum vitae odio
e vel laoreet ac, dictum vitae
rem ipsum dolor sit amet, consectetur adipiscing elit. Nam lac
sus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel lao

consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. P
usce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lo

gue vel laoreet ac, dictum vitae odio. Donec aliqu
lestie consequat, ultrices ac magna. Fusce dui lectus, congue
rem ipsum dolor sit amet, cons
usce dui lect

usce dui lectus, congue vel
molestie consequat, u
o

gue