Archive for August 9th, 2020

VBA and flowchart

4.6 VBA Project: Olympus Tours
Assume you have just been hired by Olympus Tours (OT), a bus-rental company located in Orem, Utah.  OT provides buses for groups such as schools, family reunions, travel clubs, etc. The smallest group OT will bus is 20 people and the largest group is 120 people.

Two types of buses are available for use: small buses (25 maximum riders per bus) and large buses (60 maximum riders per bus).  Assume that OT has access to all of the small and large buses it needs.

Table 1. Bus Combinations

    # of Buses
Option    Riders    Small    Big
1    Min    20    1    0
Max    25
2    Min    26    2    0
Max    50
3    Min    51    0    1
Max    60
4    Min    61    1    1
Max    85
5    Min    86    0    2
Max    120

OTs pricing structure is as follows.  The base price (BP) is calculated by multiplying the number of people (P) included in the trip by a per-person base rate (PPBR).

BP = P * PPBR

The base price covers trips up to and including five hours in duration. Customers are charged extra for tours that last longer than 5 hours. For example, a bus rented for 6.5 hours would have 1.5 overtime hours (OH). The maximum number of overtime hours per day is four, which means any trip lasting nine hours or more has the same number of overtime hours regardless of the duration of time that exceeds 9 hours.

The overtime charge (OC) is calculated by multiplying the base price (BP) by the overtime hours (OH) multiplied by the extra hourly percentage (EHP) as follows:

OC = BP * OH * EHP

Table 2 shows some example price calculations that include partial hours.

Table 2 Example Pricing Calculations

Number of People    Per-Person Base Rate    Base Price    Hours    Overtime Hours    Extra Hourly Percent    Overtime Charge    Total Price
P    PPBR*    BP    H    OH    EHP*    OC    TP
20    $10    $200    5.4    0.4    25%    $20    $220
25    $12    $300    6.6    1.6    25%    $120    $420
30    $8    $240    11.3    4.0    25%    $240    $480
35    $7    $245    5.4    0.4    30%    $29    $274
45    $15    $675    6.6    1.6    30%    $324    $999
50    $5    $250    11.3    4.0    30%    $300    $550
Note: *these numbers are not calculated in your code. Your sub should simply take whatever value for PPBR and EHP that is given in the setup portion of the single estimate and use that in your calculations, these are just example values you can use to test your outputs afterwards.

Your task is to create both 1) a flowchart and, 2) a VBA program in Excel that will pick the right number of buses and that will calculate the correct price for the number of people and hours specified.

Because the pricing parameters (PPBR and EHP) are somewhat stable, they are stored in the setup section. When the program runs (both the single and the batch), it should obtain the values for PPBR and EHP from the Setup section. The value of PPBR and EHP should be whatever the value of cells C22, and C23 are at the time it runs (this can be any values you choose). Do not hardcode these values in your code.

Based on the values in the setup section and the number of people and hours specified, your program should calculate the correct outcomes. Your program should work correctly for single-trip estimates and for a batch of estimates. Your program should only pull values from the worksheet. You should not be using inputboxes.

Single-Trip Estimates. The program should work when the user wants to estimate one trip at a time. For a single trip, the user enters inputs directly into the [User Form] tab and presses the Run Single button. In this scenario the user will enter the number of people (P) and the tour duration in hours (H) into the appropriate cells in the User Form. Your program should then use the pricing parameters (PPBR and EHP) to calculate the amount the customer will be charged per day. NOTE: if the user requests fewer than 20 or greater than 120 passengers, the user should see a pop-up message that indicates that theyve selected too few or too many passengers and the outputs should all be set to zero. Figure 1 shows the [User Form] tab. Do not worry too much about the format of your numbers in cells C13:C18–just be sure to declare your variables as the specified type.

If there is a multi-day tour, the program will be run for each day of the multi-day tour. Thus your program does not need to support calculations for more than one day at a time.

Figure 1: [User Form] Tab

Batch Estimates. OT often wants to estimate batches of trips. In this case, the program should take all of the tours shown as inputs on the [Batch Input] tab, estimate them one at a time, and write the results to the [Batch Output] tab.  To estimate all trips within a batch, the user presses the Run Batch button on the [User Form] tab.

The [Batch Input] tab. Figure 2 explains the data on the [Batch Input] tab. All passenger inputs for Batch Estimates will be between 20 and 120 people.

Figure 2: [Batch Input] Tab

The [Batch Output] tab. Figure 3 shows how your program should organize the outputs on the [Batch Output] tab.

Figure 3: [Batch Output] Tab.

Summary of the Project Assignments and Details:

Create a flowchart for the process of completing an estimate for a single-tour. You are not required to create a flowchart for the Run Batch process. Upload this flowchart separately from your completed workbook in the file upload box below (to facilitate grading).
Download the Olympus Tours Programming Project Worksheet below. Do not make your own workbook. Add VBA code to complete the project.
Your VBA code should work with the cells that are already positioned on the [User Form] tab of the workbook. Do not change the cell locations or layout on the [User Form] tab within the workbook. In addition, do NOT add or delete any columns or rows.
Use VBA to do all of the calculations. Do not use spreadsheet functions.
Add your VBA code to the two existing sub routines that have been started in Module1 already within the workbook. Add your code to the sub routine named EstSingle() that will run when the user presses the Run Single Button. Add your code to the sub routine named EstBatch() that will run when the user presses the Run Batch Button. Connect the appropriate subroutine to the respective buttons, so that the correct sub routine will run when the button is pushed.
In your code, use the Option Explicit setting for both subroutines. (This should already be set.) Verify this by ensuring that the first line of code says Option Explicit.
Use Dim statements to declare all variables that you use in your code.  Declare the variables as the data types shown on Column D of the [User Form] tab.
Test your program with a variety of inputs to ensure it works properly before you turn in your assignment.
You do not need to calculate PPBR or EHP. Rather, your sub should take whatever values of PPBR and EHP are provided by the user in the setup variables section in the single estimate user form.
Upload your completed Excel workbook in the appropriate upload box below.
Do not forget to handle user inputs that are invalid (i.e. <20 or >120 passengers) for single-trip estimates as indicated in the description above.
Be sure your batch Sub can handle extra batches of data (same format as existing batches) added to the bottom of the batch input tab.
Be sure your batch Sub can handle extra spaces (1 or more empty rows) between batches of data.
Please comment your code so that it is easy for a grader to follow. Code without comments may be penalized. Partial credit is also much easier to grant if code is commented.
Be sure to write your code in a module in the workbook you will submit, NOT in your personal workbooks or sheets. To access the correct module, go to your “Visual Basic”, right click “Microsoft Excel Objects” in the workbook you are submitting, and then click “Insert” and “Module.”

Specific grading criteria for this assignement can be found on the “Grading Criteria” sheet of your project file.

RE: Decision Making Vs. Problem Solving

Suppose you work for a toy store, and a friend of yours is an account representative for a product wholesaler. You know the store owner is considering adding new product lines. Although you have no purchasing authority, your friend has asked you to arrange a meeting with the store owner. You have heard unflattering rumors about this wholesalers customer service and product quality. (SLO #2)

Would you arrange a meeting between your friend and your boss? Explain.
Would you mention the customer service rumors either to your friend or your boss? Explain.
Would you try to influence the purchase decision? Explain.

APA style, 2-3 pages at least two reference

Any topic that is not too far fetch from todays times

Observation Study:

Directions:
Introduction: Introduce your topic in the first paragraph and include operational definitions of the elements you are looking at (ex: positive female response was measured by smiling). Also include your hypotheses (both alternative- what you think will happen and the null- the opposite of what you think will happen or no change). Include at least one Empirical research article to support your topic and include an in-text citation and reference page in APA format.

In-text citations: Reference the article in your writing by using parentheses at the end of the sentence with the last name of the author and the year the article was published. Here is an example about how to write an in-text citation: (Brownlie, 2007). Please see below for more information about citations and references.

Method: In your second paragraph, discuss the type of method you used and how you measured or collected data (method= observational; tallied amount of times males made eye contact and females smiled). Also include where you collected data, the time, how you did it, and other important information about your procedure.
Results: In your third paragraph, discuss the results of your study. You might notice there was a slight relationship between your variables (or not). This will not be precise because we arent doing any statistical analyses to find out if there really was a significant relationship between the variables, but its still interesting to write about what you noticed. In this paragraph, be specific to responding to your hypothesis- did you prove your hypothesis or not?

            Also include:

An explanation of your interpretation of the results (why you think your hypothesis was proven or not)
Any third variables that could have influenced your results
Ideas for future research that would make your study stronger (bigger sample size, using a control group, etc).
Tally Sheet: Include a tally sheet to track what you observed
Graph: Include a graph (bar graph or correlation); your graph can be hand-drawn. If you use a correlation graph, it should look like a bunch of dots. See if they form some kind of correlation (you can look at the correlation charts from the lecture as examples).

Reference page: In addition to the 2-3 pages, also include a reference list that includes at least 2 references. This is a separate page at the end of your paper titled: References. Use the American Psychological Association (APA) 6th Edition Formatting (Links to an external site.) (https://owl.english.purdue.edu/owl/resource/560/05/ (Links to an external site.)). This previous link includes examples and directions about how to write APA references.
You must format your reference page using APA formatting for the Empirical Article references. This is the format for citing a research article found online:

Author, A. A., & Author, B. B. (Date of publication). Title of article.Title of Journal, volume number(issue number), page range.

Here is an example:

Brownlie, D. A. (2007). Toward effective poster presentations: An annotated bibliography. European Journal of Marketing, 41(2), 1245- 1283.

This is where I found the directions and explanation about how to do an online Journal reference (Links to an external site.) (look under Article from an online periodical with DOI assigned): https://owl.english.purdue.edu/owl/resource/560/10/

Dont worry about including the DOI at the end unless you want to do that. Be careful to write the citation exactly as it appears in the examples above (some words are italicized and also note that it is single spaced for one reference, indenting the second line, and you separate the second reference by a space). Check the website I listed for more details.

Instructions about how to look up articles:

You cant use Wikipedia or other popular online blog sites or magazines, or other popular media types. Your articles must be from a legitimate research journal. These can be obtained from the library at Foothill College or through the online Library Database. The easiest way to search for articles is by clicking on “Library” on the menu bar on Canvas. From there, you can enter your information to sign in and click on “databases by subject”, click on “p” and “psychARTICLES”. It will open EBSCO host. Use the search options to look for articles for your subject. You can do a basic search or a more advanced search.

The write-up should be about 2-3 pages long in addition to the tally sheet and graph.

INFO 153 HW6

This assignment is to load data from CSV, populate them in a SQLite database, and run in-database analytics with SQL. I am confused on where to start so all the help I can get would be appreciated! When I submit it, I typically need the code I did and screenshots of the code/finished product. I attached the homework file as well. Thanks!

Any topic (writer’s choice)

Suggested Length: 6-8 pages, double-spaced, 10-12 point font, normal margins.
Introduction:  Briefly introduce your topic, the question you are going to try to answer in your paper, and why its an important question to answer (most of this can be taken directly from your thesis statement).
Theory: Use at least one theoretical perspective or concept from our readings to guide your discussion.  It is important to emphasize that this theory or concept must come from our class readings.  Some examples include:
DeGenovas deportability theory
Jungs theory of blackness
Stumpfs crimmigration thesis
Bells argument about the permanence of racism
Chavezs theory of the Latino Threat Narrative
Collins intersectional explanation of the family
McWhorters theory of the intersections of race and sexuality
You  can use this theory/concept to explain your topic or you can critically evaluate this theory/concept in light of other perspective youve learned about from sources youve found through your own research.
Core Discussion:  Provide a more detailed discussion of your topic which can do any combination of the following:
Describe important features of the policy and legal history surrounding this issue

Describe different approaches that have been used to manage or solve the problems that are associated with this topic

Discuss some of the most important socioeconomic, cultural and/or political factors that have shaped  these problems (which can include the intersections of race, class and gender/sexuality).
Important:  You can incorporate your theoretical framework into this discussion.  The theoretical framework and the discussion of your topic do not have to be organized into separate sections.

Sources and Supporting Examples: You should support your discussion with examples from at least 3 academic readings (books/book chapters or journal articles) that are directly relevant to your topic. 
At least 2 of these readings must be sources that you found on your own (using Healey Library online database) which do not come from the class reading list. 
You should use 2 examples from each of your sources to support your discussion (3 sources X 2 examples each = a minimum of 6 example in all).
Important Note About Sources: You should cite a minimum of 4 sources for this paper.
3 Research sources that are directly relevant to your topic
(2  of which you must find on your own)
1 Theory source which must come from our class readings.
Conclusion: Provide a concluding discussion that summarizes the main points from the body of your paper and your recommendations for change.  This can be a big picture discussion that explores a new way of thinking about society, social membership, and punishment or a more practical discussion about directions for criminal justice or immigration reform (or a little of both).
Citing Sources:  Make sure to use a parenthetical citation style whenever you reference information (paraphrased or a direct quote) in the body of your paper and provide full citation info for all of your sources in a bibliography at the end of your paper.

essay

write an essay explaining the impact of government and politics on you a member of the 18-25 age group.
Show your knowledge of government and politics
Be your own work and use quotes sparingly
Include two or more of the required documents (linked below)

Brain Homework

Piano playing: An Anatomy Review

Instructions: Explain the role of each of the following brain structures in playing the piano. Please be specific in relating the structure to the actual task of playing the piano. This will require that you think very carefully about what each brain area does functionally. Each answer will have 2 parts. First, you will need to describe what each part of the brain does. The second part of your answer must describe how this part is necessary for, or implicated in, the specific task of playing the piano.

The Medulla:____________________________________________________________

The Pons: ______________________________________________________________

The Reticular formation:___________________________________________________

The Cerebellum: _________________________________________________________

The Hippocampus: _______________________________________________________

The Hypothalamus: _______________________________________________________

The Occipital lobe: ________________________________________________________

The Temporal lobe: _______________________________________________________

The Parietal lobe: ________________________________________________________

The Frontal lobe:_________________________________________________________

UX vs UI

Answer  the following two questions in a straight forward way (question-answer). no need to add introduction just go direct to the answer.

Question 1: According to the attached resources and your own experience: what is the difference between User Experience (UX) and User Interface (UI). And what is the link wit Design Thinking?  Please use the attached document as a source to answer this question. Apart from that, there should be personal thoughts.

Question 2: Take a look at this video from Quirky about cardboard prototyping. Do you think it’s a low-fidelity prototype? Why?
https://www.youtube.com/watch?v=k_9Q-KDSb9o

1 page for each question-answer.

Any topic (writer’s choice)

Assignment Content

Locate an article on the Internet that addresses a current budgeting issue for an area of criminal justice administration in your state. (Pennsylvania)

Write a 1,050- to 1,400-word paper on the following:

The main idea of the article and reasons for your choice
The author’s conclusions and recommendations
Your own conclusions and recommendations
Format your paper consistent with APA guidelines. Two references required.

answer questions

What were your definitions or conceptions of the term sustainability as you entered this class?

On what did you base these definitions?

Have you given the term much consideration in the past?

Did you have some experience that gave you a perspective on sustainability?

Have you read, heard, or discussed something specific about sustainability before this class?

What did you/do you expect to learn about sustainability through this course?

How did the video change or confirm your definitions of sustainability?

What aspects of the video were entirely new, confusing, or surprising to you?

Here is link
https://www.youtube.com/watch?v=rmQby7adocM&feature=emb_logo