Imagine that you are a Sales Manager at a Toy Company, and give an example of a business situation where you would use each of these database objects: query, report, and macro.
What will be an ideal response?
(Answers may vary)
- Query: I would use the query if I wanted to see how many people were buying the ABC toy in each state -- so I can see if the toy was more popular in one area of the country.
- Report: I would use the report to get summary information on how sales are going every day as compared to sales by the week, month, quarter, and year.
- Macro: I would use a Macro to easily perform tasks, for example, I could type the word "close" and the database would close, or I could type in the name of a sales manager and see his sales to date.
You might also like to view...
An attribute is an example of a(n) ____ type.
A. simple B. complex C. integrated D. aggregated
A has-a relationship creates new classes by _________ of existing classes.
Fill in the blank(s) with the appropriate word(s).
(Account Class) Create an Account class that a bank might use to represent customers’ bank accounts. Include a data member of type int to represent the account balance. [Note: In subsequent chapters, we’ll use numbers that contain decimal points (e.g., 2.75)—called floating-point values— to represent dollar amounts.] Provide a constructor that receives an initial balance and uses it to
ini- tialize the data member. The constructor should validate the initial balance to ensure that it’s greater than or equal to 0. If not, set the balance to 0 and display an error message indicating that the initial balance was invalid. Provide three member functions. Member function credit should add an amount to the current balance. Member function debit should withdraw money from the Account and ensure that the debit amount does not exceed the Account’s balance. If it does, the balance should be left unchanged and the function should print a message indicating "Debit amount exceed- ed account balance." Member function getBalance should return the current balance. Create a program that creates two Account objects and tests the member functions of class Account. What will be an ideal response?
<
Fill in the blank(s) with correct word