Questions
Class B             {                         Public:     &nbs

Class B

            {

                        Public:

                                    Void b1();

                        Protected:

                                    Void b2();

            };

            Class A : public B

            {

                        Public:

                                    Void a1();

                        Protected:

Void a2();

            };

            Class C: public A

            {

                        Public:

                                    Void c1();

            };

Void main ()

{

B temp1; A temp2; C temp3;

}

           

  1. Name all member functions of all classes visible through temp1 in the main function?
  2. Name all member functions of all classes visible through temp2 in the main function?
  3. Name all member functions of all classes visible through temp3 in the main function?
  4. Which class is the parent of class A?
  5. Which class is the child of class A?

In: Computer Science

You have been instructed to use C++ to develop, test, document, and submit a simple program...

You have been instructed to use C++ to develop, test, document, and submit a simple program with the following specifications. The program maintains a short data base of DVDs for rent with their name, daily rental charge, genre, and a a short description . The program will welcomes the user, user will enter the name of the movie from a displayed list of all movies that are available, the user will enter the number next to the movie's name, number of days to rent. The program will display all the information in the data base, number of rental days, and total charges. No tax is charged. The maximum number of days a movie can be rented is 7.

In: Computer Science

4. Please name your driver program XXX_P04 where XXX are your initials. Given the array inputArray...

4. Please name your driver program XXX_P04 where XXX are your initials. Given the array inputArray (doubles), write a method called swap which will swap any two contiguous (next to each other) elements. Swap will be passed two parameters, the index of the first element to be swapped and the array name. Write another method printArray that will print the array 5 elements to a line. PrintArray will be passed one parameter the array name. See the videos for help with this. The array elements are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.

Java Eclipse

In: Computer Science

Create a program that determines the name of the person with the highest or lowest number...

Create a program that determines the name of the person with the highest or lowest number of votes. The data will be in two arrays. The first array is of type String and has the following names in it: Mike Muldune Justin Meiber Clark Kent Ana Karina The second array is of type integer and has the following numbers in it: 2324, 2425, 3344 and 2526. Ask the user to enter a 1 for highest and 2 for lowest. If the user enters a 1, print the name of the person with the highest number of votes and the number of votes received. It the user enters a 2, print the name of the person with the lowest number of votes and the number of votes received.

In: Computer Science

In Java: 1) Create a new eclipse project. 2) Create a basic SWING window 3) Create...

In Java:

1) Create a new eclipse project.

2) Create a basic SWING window

3) Create a Label Called Name

4) Create a Text Field for entering the name

5) Create a Text Field for entering and email

5) Create a text area to push the results to

6) Create two buttons, one that says submit and the other that says clear.

7) When the user enters their name and email, they should press submit and see the Text area populate with the data they submitted.

8) When the user presses clear it should clear any text from all fields.

In: Computer Science

Consider Ace Rent-A-Car, a nationwide automobile rental company. For each car that the company owns, Ace...

Consider Ace Rent-A-Car, a nationwide automobile rental company. For each car that the company owns, Ace records its unique vehicle identification number (VIN), its “make” (manufacturer), model, year of manufacture, and the manufacturer’s factory in which it was made. Each factory is identified by the combination of its company name (i.e. manufacturer name) and the city in which it is located. We also know its size and the year it was built. Each manufacturer is identified by its unique name, plus its headquarters city and the name of its president. Customers are identified by a unique customer number, plus Ace wants to store each customer’s name, address, and telephone number. Each Ace rental location has a unique rental location number, address, and telephone number. Each Ace rental location is assigned to an Ace region, which has a unique region name, a manager, and the location of the main regional office.

Ace wants to develop a data warehouse to store its historical rental data. For each rental, Ace wants to record which customer rented which car from which rental location and when the rental began and when it ended. Ace also wants to record the mileage on the car when the rental began, the mileage when it was returned, whether or not the customer bought the insurance that Ace offered, and the total cost of the rental.

Given this scenario, develop a star schema, which may be a snowflake schema, for Ace’s data warehouse.

In: Computer Science

Consider Ace Rent-A-Car, a nationwide automobile rental company. For each car that the company owns, Ace...

Consider Ace Rent-A-Car, a nationwide automobile rental company. For each car that the company owns, Ace records its unique vehicle identification number (VIN), its “make” (manufacturer), model, year of manufacture, and the manufacturer’s factory in which it was made. Each factory is identified by the combination of its company name (i.e. manufacturer name) and the city in which it is located. We also know its size and the year it was built. Each manufacturer is identified by its unique name, plus its headquarters city and the name of its president. Customers are identified by a unique customer number, plus Ace wants to store each customer’s name, address, and telephone number. Each Ace rental location has a unique rental location number, address, and telephone number. Each Ace rental location is assigned to an Ace region, which has a unique region name, a manager, and the location of the main regional office. Ace wants to develop a data warehouse to store its historical rental data. For each rental, Ace wants to record which customer rented which car from which rental location and when the rental began and when it ended. Ace also wants to record the mileage on the car when the rental began, the mileage when it was returned, whether or not the customer bought the insurance that Ace offered, and the total cost of the rental.

Given this scenario, develop a star schema, which may be a snowflake schema, for Ace’s data warehouse.

In: Computer Science

1.            Unknown bacteria #1 Gram-positive cocci Smooth, yellow colonies Growth, but not clearing or change on...

1.            Unknown bacteria #1

Gram-positive cocci

Smooth, yellow colonies

Growth, but not clearing or change on blood agar

Positive for urease production

Positive for gelatinase production

Bubbling produced when exposed to H2O2

Name: ___________________________________

2.            Unknown bacteria #2

Gram-positive cocci (mainly diplococci and chains)

Encapsulated

Produces green halo around growth on blood agar

No color change with oxidase reagent

No color change in urea broth

Produces a yellow color in glucose, lactose, and sucrose phenol red tubes

Name: ___________________________________

3.            Unknown bacteria #3

              

Gram-positive cocci

Encapsulated

No bubbling upon exposure to H2O2

VP negative

Produces a clearing around growth on blood agar

Facultative anaerobe

              

Name: __________________________________

   

4.          Unknown bacteria #4

              

Gram-negative bacillus

Abundant white growth

Encapsulated

Positive for nitrate reduction

Simmons citrate agar turns blue

Bubbling produced when exposed to H2O2

Name:__________________________________

5.            Unknown bacteria #5

Gram-negative bacillus

Creamy, mucoid, round colonies

Produces a green halo around growth on blood agar

Negative for all tests using SIM agar

No color change in nitrate test after adding reagents A and B plus zinc

TSI slant turns completely yellow

Name: ___________________________________

6.            Unknown bacteria #6

              

Gram-positive bacillus

Abundant white, waxy growth

Clearing around growth on blood agar

Ferments mannitol with acid production

Green oval structures visible using endospore stain

VP negative

Name: __________________________________

In: Nursing

Create a report that lists all the customers in alphabetical order by last name. The report...

Create a report that lists all the customers in alphabetical order by last name. The report should include first name, last name, and email address of all customers. This report involves getting data from one table.

The three items should be lined up in columns. Use one of the formatting functions available through Python (the % operator or the format function). Don’t use tabs to line up columns, this does not reliably work and is inflexible.1 Even though we won’t need formatting to line up columns in web pages, there are other aspects of formatting that we may still need. It is best to become familiar with one method now.

not sure how to print out the list alphabetically by last name

pizza_service.py

import sqlite3

class PizzaServices:

    def __init__(self):
        self.connection = sqlite3.connect("pizza-190807A.sqlite")

    def __enter__(self):
        return self

    def __exit__(self, exe_type, exc_val, exl_tb):
        crs = self.connection.cursor()

    def do_query(self, query, parameters=None):
        crs = self.connection.cursor()
        if parameters:
            crs.execute(query, parameters)
        else:
            crs.execute(query)

        return crs.fetchall()

    def customer(self):
        return self.do_query("select * from customer")

part1.py

from pizza_services import PizzaServices

with PizzaServices() as cs:
    cust = cs.customer()
    cmd1 = "select FirstName, LastName, Email from customer"
    resultSet= cs.do_query(cmd1)

templateH = "{:15}  {:15}  {:15}"
line = templateH.format("Last Name", "First Name", "email")
print(line)

for customer_row in resultSet:
    print('{:15} {:15} {:15}'.format(customer_row[0], customer_row[1], customer_row[2]))

In: Computer Science

Build and present a menu to a user like the following and enclose it into a...

  1. Build and present a menu to a user like the following and enclose it into a loop that ends when the Quit option is chosen. Scan the user's selection into an integer variable.
    1.  Enter user name.
    2.  Enter test scores.
    3.  Display average.
    4.  Display summary.
    5.  Quit.
    Selection:
  2. If the user selects Option #1, scan the user's name, and store it to a char array. Assume the user's name is under 20 characters.
  3. If the user selects Option #2, use a for-loop to scan 3 exam scores into a float array. Calculate the average and store the result in a float variable. Assume all scores are out of 100 points.  
  4. If the user selects Option #3, Display the average of the test scores. If the user has not yet entered test scores, display an error message similar to: "Please use the menu to enter test scores first"

    Hint: Use boolean values to keep track of the options that have been selected.
  5. If the user selects Option #4, display the average, the letter grade of the average, and the user's name. If the user has not yet entered their name or test scores, display an error message.

    Example: "Hello Charley, your test scores were 80, 90, and 100. Your average is 90.0 with letter grade: A."
    Example: "Please use the menu to enter your name first."

    Example: "Please use the menu to enter your test scores first."
  6. When the Quit option is chosen, end the primary loop that contains the menu.

c++ please

for while do while


could you write a c program please?

In: Computer Science