what are the technology impacts on finance, and government?
In: Computer Science
Which of the following species represents an exception to the octet rule?
A. |
CO2 |
|
B. |
BF3 |
|
C. |
SiO2 |
|
D. |
PCl3 |
In: Chemistry
Discuss the advantages of cloud-based solutions of your choosing. Give an example of each and describe how you've seen cloud-based solutions in action. Some examples; may include communication tools (Email, Skype and WhatsApp), productivity (Microsoft Office 365 and Google Docs), business process (Salesforce and HubSpot), backup and recovery (Dropbox and Google Drive) and social media (Facebook, LinkedIn and Twitter).
In: Computer Science
Given an n × n matrix A, write a function that carries out LU factoriza- tion without row pivoting. Note that this will be different from the built-in Matlab function lu, which does do row pivoting. (Using MATLAB)
In: Computer Science
How do you assess the age of imperialism/colonial rule? What were the global consequences of imperialism?
In: Psychology
How to get the vote count to display in another activity? This is for android studio with Java codes.
private int yesVoteCount = 0;
private int noVoteCount = 0;
private int resetVotes = 0;
@Override
protected void onCreate(Bundle
savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Use res ID to
retrieve inflated objects and assign to variables
mYesButton =
findViewById(R.id.yes_button);
mNoButton =
findViewById(R.id.no_button);
mResetButton =
findViewById(R.id.reset_button);
mSurveyQuestion =
findViewById(R.id.survey_question);
mYesCount =
findViewById(R.id.yes_count);
mNoCount =
findViewById(R.id.no_count);
if (savedInstanceState
!= null) { // Saving data
yesVoteCount = savedInstanceState.getInt(YES_INDEX,
yesVoteCount);
noVoteCount = savedInstanceState.getInt(NO_INDEX,
noVoteCount);
mYesCount.setText(String.valueOf(yesVoteCount));
mNoCount.setText(String.valueOf(noVoteCount));
}
// Listener method for
when button is clicked
mYesButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
addVote();
}
});
mNoButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
addVote();
}
});
// Resetting vote
count
mResetButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view)
{
mYesCount.setText(String.valueOf(resetVotes)); //Resetting
votes to zero
mNoCount.setText(String.valueOf(resetVotes));
yesVoteCount = 0; // Resetting variable back to zero
noVoteCount = 0;
}
});
}
// Add vote when button is pressed
private void addVote() {
if
(mYesButton.isPressed()) {
yesVoteCount++;
mYesCount.setText(String.valueOf(yesVoteCount)); // Adding
votes
} else if
(mNoButton.isPressed()) {
noVoteCount++;
mNoCount.setText(String.valueOf(noVoteCount));
}
}
// Data restore upon rotation
@Override
protected void
onSaveInstanceState(Bundle outBundle) {
super.onSaveInstanceState(outBundle);
outBundle.putInt(YES_INDEX, yesVoteCount);
outBundle.putInt(NO_INDEX, noVoteCount);
}
In: Computer Science
1.) Outline and detail a PESTEL analysis. What, in your opinion, is currently the strongest component of the macro-environment? Why? How has this changed?
Your answers will be short essays and should be three full paragraphs or longer.
In: Operations Management
Calculate the pH of a solution prepared by mixing 300mL of 0.25M sodium hydrogen ascorbate and 150mL of 0.2M HCl plus water to a final volume of 1 liter. The Ka of ascorbic acid is 5.0 x 10^-5
In: Chemistry
Vittoria Ltd requires a Statement of Cash Flows to be prepared for the year ended
31 March 2018, the following information has been collected for this purpose.
Vittoria Ltd Balance Sheets as at 31 March |
||
2017 |
2018 |
|
Cash |
$176 000 |
$239 000 |
Accounts receivable |
220 000 |
280 000 |
Allowance for doubtful debts |
(30 000) |
(40 000) |
Inventory |
90 000 |
100 000 |
Plant and equipment |
900 000 |
1 074 000 |
Accumulated depreciation |
(80 000) |
(100 000) |
Total assets |
$1 276 000 |
$1 553 000 |
Accounts payable |
80 000 |
70 000 |
Interest payable |
1 000 |
2 000 |
Income tax payable |
76 000 |
88 000 |
Long term loans |
109 000 |
148 000 |
Share capital |
400 000 |
500 000 |
Asset revaluation surplus |
- |
30 000 |
Retained earnings |
610 000 |
715 000 |
Total equity and liabilities |
$1 276 000 |
$1 553 000 |
Vittoria Ltd SCI for the year ended 31 March 2018: |
|
Sales |
$885 000 |
Less expenses: |
|
COGS |
240 000 |
Depreciation expense |
90 000 |
Interest expense |
6 000 |
Doubtful debts expense |
40 000 |
Salaries and wages expense |
200 000 |
Income tax expense |
84 000 |
Other expenses |
120 000 |
Profit after tax |
105 000 |
OCI: Revaluation gain |
30 000 |
TCI |
$135 000 |
Question 2 continued:
Additional information:
Vittoria Ltd classifies interest expense and dividends paid as cash outflows from financing activities.
Plant and equipment, with a fair value of $100 000, has been acquired by the issue of
$100 000 worth of fully paid Vittoria Ltd shares to the sellers of the plant and equipment.
During the year, equipment that originally cost $100 000 was sold for $30 000 cash.
Plant and equipment was revalued upwards by $30 000.
A long-term loan of $30 000 was specifically organised for the purchase of plant and equipment costing $30 000.
Required:
(i) Prepare the general ledger accounts as required in the answer booklet.
(ii) Prepare a statement of cash flows for Vittoria Ltd, for the year ended 31 March 2018, in accordance with NZ IAS 7 Statement of Cash Flows. Vittoria Ltd uses the indirectmethod for the cash flows from operating activities (CFOA) section.
(iii) Prepare a statement of cash flows for Vittoria Ltd, for the year ended 31 March 2018, in accordance with NZ IAS 7 Statement of Cash Flows. Vittoria Ltd uses the directmethod for the cash flows from operating activities (CFOA) section. Complete the necessary reconciliation, as required by NZ FRS-44, to be included in the notes.
(iv) Explain, by completing the table in the answer booklet, how your answers to (ii) and (iii) above would changeifVittoria Ltd classified interest expense paid as a cash outflow from operating activities.
(v) Vittoria Ltd has provided you with 15 types of cash inflows and cash outflows in the answer booklet and requires you to determine where they should be included in the Statement of Cash Flows in accordance with NZ IAS 7 Statement of Cash Flows. AssumeVittoria Ltd uses the direct method for CFOA. Hint: Remember certain cash flows have a choice of classification; for these particular cash flows highlight the two choices available.
CFOA = cash flows from operating activities, CFIA = cash flows from investing activities and CFFA = cash flows from financing activities.
In: Accounting
C++
Part 2 - Serving Size
Part 3 - Supplementing the Budget (
Part 4 - The "Magic" of Avoiding Magic Numbers
Sometime it may feel like a nuisance to make sure to properly use constants for magic numbers, so here we give you the opportunity to see how useful it can be. By changing just some of the constants, your program can simulate any pizza sizes and prices, without having to touch any other part of your code. Those constants are how many people each pizza feeds, the dimensions of each pizza, and the cost of each pizza. Make sure that you have written your code so that by changing only those nine values, and re-compiling, you can simulate any arbitrary pizza values.
Since you will be changing constants and recompiling for Part 4, you will be submitting a different compiled program than used in Parts 1, 2, and 3. Thus, do not submit the updated program here. Instead, copy your program from here into the following zyBook section (Main Lab 2B), change 9 of your constants, and submit the program from there. The grading TA will combine the points from the auto-grade of both 2A (possible 85 points) and 2B (possible 15 points) to get your full auto-grade points. The new values you will use are given in section Main Lab 2B.
Sample Input
303
15
Sample Output
In this case the output would look like:
Please enter the number of guests: 43 large pizzas, 0 medium pizzas, and 2 small pizzas will be needed. A total of 13735 square inches of pizza will be purchased (45.3302 per guest). Please enter the tip as a percentage (i.e. 10 means 10%): The total cost of the event will be: $743
In: Computer Science
What is the purpose of the DETERMINE checklist?
In general, how do body composition and weight change as men and
women age past 30?
Discuss why aging is considered to be a continuous
process.
Although people are living longer, why is it important that natural
and social scientists improve their quality of life in their later
years?
Deficiencies of which vitamins and minerals increase in older
people?
In: Nursing
A researcher is concerned that the true
population mean could be as much as 4.8 greater
than the accepted population mean, but the
researchers hypothesis test fails to find a
significant difference. The power for this study
was 0.5, the researcher probably should
A) accept the outcome and move on
B) repeat the experiment with a smaller α
C) repeat the experiment with a larger α
D) repeat the experiment with a larger n
E) repeat the experiment and hope that the next sample
mean is significantly different than the hypothesized
mean.
Failing to observe a treatment affect
for Rogaine, when in reality Rogaine reduces
hair loss, would be...
A) impossible
B) an error with probability equal to α
C) an error with probability equal to β
D) an error with probability equal to 1-β
In: Math
Define the following key terms
1. Octet
2. Prefix length
3. Slash notation
4. Network address
5. Host address
6. Broadcast address
7. Classful addressing
8. Classless addressing
9. Tunneling
10. Dual stack
In: Computer Science
Code in Java Successive Over-Relaxation (SOR) method.
In: Computer Science
Design a function called middle_value, that takes 3 integers, and returns the integer with the middle value. If there is a tie, any of the possible middle values can be returned. Example: middle_value(1, 2, 8) -> 2 middle_value(9, 7, 7) -> 7 middle_value(3, 3, 3) -> 3
Design a function called combine_strings that takes two phrases and appends the longer string onto the back of the shorter one with no space between the two phrases joined. Example: If the phrases are “thought” and “after” the function should return “afterthought”, or “sea” and “food” would return “seafood”.
Design a function called get_letter_at that takes a phrase and a
number and returns the letter at the phrase at the given index
(note that 0 would return the first letter in the phrase). If the
number is too large, then just return an empty string: “ ”.
Examples:
get_letter_at("Anthony", 0) -> "A" get_letter_at("Anthony", 4) -> "o" get_letter_at("Anthony", 7) -> " "
Design a function called brightness_modifier that takes an integer value that is either 0, 1, 2, or 3 representing the brightness level of a smartphone (0 means screen is off, up to 3 which means full brightness). The function should return a decimal number representing the modifier that the brightness level will affect the lifetime of battery of the device. For example:
- 0 brightness does not affect the battery life at all (returns 1.0)
- 1 brightness returns a 0.9 (the battery will last 90% of maximum battery lifetime)
- 2 brightness returns a .75 (the battery lasts 75% of maximum battery lifetime)
- 3 brightness returns a .5 (the battery only last 50% of maximum lifetime)
Design a function called hours_remaining that takes two integers and a boolean as parameters and returns the total hours of battery life left. The parameters represent the percentage of battery life left, the brightness (0, 1, 2, 3) and whether the device is currently streaming video. This function MUST call and use the brightness_modifier function you designed for exercise 4.
The hours left is calculated by the following formula:
The amount of battery life left is calculated by the maximum battery life (15 hours – see the
CONSTANT defined at the top of the file) multiplied by percentage of battery left.
Applying the brightness_modifier to the total amount of battery life left.
If the phone is currently streaming video, the hours remaining is cut in half.
For example, given hours_remaining(80, 2, true) produces:
(Note the FULL_BATTERY_LIFE = 15 constant defined at the top of the
file) 15*80% = 12 hours of regular battery remaining.
12 hours remaining at 2 brightness level = 12*.75 modifier = 9
hours
9 hours of streaming video = 9*0.5 = 4.5 actual hours remaining
tests = 0 passed = 0 FULL_BATTERY_LIFE = 15 def main(): print('Assignment 3') ''' Complete this assignment by doing the following for each function: - uncommenting one test function call in main NOTE: each test function has at least one test, but you should add additional tests to ensure the correctness of your functions - complete a full function design for each function (write the documentation and define the function) NOTE: follow the documentation provided for implementing each function in the csc110-assign3.pdf - process to the next function by doing the steps outlined above until all functions are designed with proper documentation, implementation and testing ''' test_middle_value() test_combine_strings() test_get_letter_at() test_brightness_modifer() test_hours_remaining() print("TEST RESULTS:", passed, "/", tests) def test_middle_value(): print("beginning tests for middle_value...") #TODO: add tests here (and erase this line if you want) def test_combine_strings(): print("beginning tests for combine_strings...") #TODO: add tests here (and erase this line if you want) def test_get_letter_at(): print("beginning tests for get_letter_at...") #TODO: add tests here (and erase this line if you want) def test_brightness_modifer(): print("beginning tests for brightness_modifer...") #TODO: add tests here (and erase this line if you want) def test_hours_remaining(): print("beginning tests for hours_remaining...") #TODO: add tests here (and erase this line if you want) # (str, bool -> None) # takes the name or description of a test and whether the # test produced the expected output (True) or not (False) # and prints out whether that test passed or failed # NOTE: You should not have to modify this in any way. def print_test(test_name, result_correct): global tests global passed tests += 1 if(result_correct): print(test_name + ": passed") passed += 1 else: print(test_name + ": failed") # The following code will call your main function # It also allows our grading script to call your main # DO NOT ADD OR CHANGE ANYTHING PAST THIS LINE # DOING SO WILL RESULT IN A ZERO GRADE if __name__ == '__main__': main()
In: Computer Science