Questions
No handwriting or photo (tax accounting) a-Explain the different concepts of income from accounting, economics and...

No handwriting or photo (tax accounting)

a-Explain the different concepts of income from accounting, economics and taxation perspectives

b-What is the difference between deductions for and deductions from adjusted gross income AGI under US tax law? Give two examples of each deduction

In: Accounting

C++ [2] Write a program that prompts the user to enter a non-negative decimal number and...

C++

[2] Write a program that prompts the user to enter a non-negative decimal number and a base in the range 2 <= base <= 16. Write a function multibaseOutput() that displays the number in the specified base. The program terminates when the user enters a number of 0 and a base 0.

Run:
Enter a non-negative decimal number and base (2 <= B <= 16) or 0 0 to terminate: 155 16
    155 base 16 is 9B
Enter a non-negative decimal number and base (2 <= B <= 16) or 0 0 to terminate: 3553 8
    3553 base 8 is 6741
Enter a non-negative decimal number and base (2 <= B <= 16) or 0 0 to terminate: 0 0

In: Computer Science

In a file called FourCapitalizations.java, write a program that: Asks the user to enter a string....

In a file called FourCapitalizations.java, write a program that:

  • Asks the user to enter a string.
  • Prints out four different versions of that string:
    1. The original version of the string.
    2. The upper-case version of the string.
    3. The lower-case version of the string.
    4. A version where the character at position 0 capitalized, and all other characters in lower case.

For example: if the user enters string "gaNDalF12 !! AB3w", your program output should look EXACTLY like this:

Please enter a string: gaNDalF12 !! AB3w
1st version: gaNDalF12 !! AB3w
2nd version: GANDALF12 !! AB3W
3rd version: gandalf12 !! ab3w
4th version: Gandalf12 !! ab3w

In: Computer Science

/* Homework Lab 8 Nested If statements Write the nested decision logic to print the recommended...

/* Homework Lab 8

Nested If statements

Write the nested decision logic to print the recommended meal
based on the user's choices for Restaurant and Load given the table
shown below:

Restaurant Preference Meal
-----------------------------------------------------
(M)cDonald's
(B)eef Quarter Pounder
           (C)hicken Chicken McNuggets
           (F)ish Filet-o-Fish
           (S)alad Side Salad
(O)utback
           (B)eef Ribeye
           (C)hicken Alice Springs Chicken
           (F)ish Grilled Tilapia
           (S)alad Aussie Cobb Salad
(G)ibsons
           (B)eef Bone-in Filet Mignon
           (C)hicken Whole Spit-Roasted Chicken
           (F)ish Grilled Norwegian Salmon
           (S)alad Alaskan King Crab Salad

For example, if the user chooses '(M)cDonald's' and '(B)eef'
then the appropriate response should be "Quarter Pounder"

If the user makes any selection other than B, b, C, c, F, f,
S, or s then the approprate response should be:
"You entered an invalid meal preference selection."

*/

#include<iostream>
#include<cctype> // for toupper()
using namespace std;

int main()
{
   // Declare program variables for user input.
   char restaurantChoice;
   char mealPreference;

   // Prompt and get user's choice for restaurant.
   cout << "Enter your choice for Restaurant" << endl
       << "(M)cDonald's, (O)utback, or (G)ibsons: ";
   cin >> restaurantChoice;

   // Ensure restaurantChoice is uppercase
   restaurantChoice = toupper(restaurantChoice);

   // Prompt and get user's choice for meal preference.
   cout << "\nEnter your meal preference:" << endl
       << "(B)eef, (C)hicken, (F)ish, (S)alad: ";
   cin >> mealPreference;

   // Ensure mealPreference is uppercase
   mealPreference = toupper(mealPreference);

   cout << endl;

   // For each chosen Restaurant,
   // output an appropriate response based on Meal Preference.

   if (restaurantChoice == 'M') // McDonald's
   {
       cout << "You chose McDonald's." << endl;

       // TODO: Write an extened if-else-if based on the user's choice
       // for Meal Preference to print one of the following messages:
       //   
       // B = Quarter Pounder
       // C = Chicken McNuggets
   // F = Filet -o- Fish
       // S = Side Salad
       // Otherwise = You entered an invalid meal preference selection.

       cout << endl;

   }
   else if (restaurantChoice == 'O') // Outback
   {
       cout << "You chose Outback." << endl;

       // TODO: Write an extened if-else-if based on the user's choice
       // for Meal Preference to print one of the following messages:
       //   
       // B = Ribeye
       // C = Alice Springs Chicken
   // F = Grilled Tilapia
       // S = Aussie Cobb Salad
       // Otherwise = You entered an invalid meal preference selection.

       cout << endl;
      
   }
   else if (restaurantChoice == 'G') // Gibsons
   {
       cout << "You chose Gibsons." << endl;

       // TODO: Write an extened if-else-if based on the user's choice
       // for Meal Preference to print one of the following messages:
       //   
       // B = Bone-in Filet Mignon
       // C = Whole Spit-Roasted Chicken
       // F = Grilled Norwegian Salmon
       // S = Alaskan King Crab Salad
       // Otherwise = You entered an invalid meal preference selection.

       cout << endl;

   }
   else // Invalid Restaurant selection
       cout << "You entered an invalid restaurant selection: "
       << restaurantChoice << endl;

   cout << "\nEnd Program" << endl;

   return 0;
}

/*
Sample Program Output
-----------------------------------------------------------

Test #1
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: X

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: B

You entered an invalid restaurant selection: X

End Program
Press any key to continue . . .

Test #2
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: X

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: X

You entered an invalid restaurant selection: X

End Program
Press any key to continue . . .

Test #3
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: M

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: B

You chose McDonald's.
We recommend Quarter Pounder.

End Program
Press any key to continue . . .

Test #4
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: m

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: c

You chose McDonald's.
We recommend Chicken McNuggets.

End Program
Press any key to continue . . .

Test #5
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: M

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: F

You chose McDonald's.
We recommend Filet-o-Fish.

End Program
Press any key to continue . . .

Test #6
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: m

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: S

You chose McDonald's.
We recommend Side Salad.

End Program
Press any key to continue . . .

Test #7
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: M

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: X

You chose McDonald's.
You entered an invalid meal selection.

End Program
Press any key to continue . . .

Test #8
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: O

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: B

You chose Outback.
We recommend Ribeye.

End Program
Press any key to continue . . .

Test #9
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: o

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: c

You chose Outback.
We recommend Alice Springs Chicken.

End Program
Press any key to continue . . .

Test #10
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: O

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: F

You chose Outback.
We recommend Grilled Tilapia.

End Program
Press any key to continue . . .

Test #11
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: o

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: s

You chose Outback.
We recommend Aussie Cobb Salad.

End Program
Press any key to continue . . .

Test #12
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: o

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: x

You chose Outback.
You entered an invalid meal selection.

End Program
Press any key to continue . . .

Test #13
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: G

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: b

You chose Gibsons.
We recommend a Bone-in Filet Mignon.

End Program
Press any key to continue . . .

Test #14
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: G

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: C

You chose Gibsons.
We recommend Whole Spit-Roasted Chicken.

End Program
Press any key to continue . . .

Test #15
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: g

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: f

You chose Gibsons.
We recommend Grilled Norwegian Salmon.

End Program
Press any key to continue . . .

Test #16
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: g

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: S

You chose Gibsons.
We recommend Alaskan King Crab Salad.

End Program
Press any key to continue . . .

Test #17
================================
Enter your choice for Restaurant
(M)cDonald's, (O)utback, or (G)ibsons: G

Enter your meal preference:
(B)eef, (C)hicken, (F)ish, (S)alad: X

You chose Gibsons.
You entered an invalid meal selection.

End Program
Press any key to continue . . .

*/

In: Computer Science

JavaScript Use the browser tools to identify the lines missing var keywords, add the keywords in...

JavaScript

Use the browser tools to identify the lines missing var keywords, add the keywords in your text editor.

<html>

        <body>

                <header>

                   <h1>

                      Hands-on Project 4-3

                   </h1>

                </header>

             

                <article>

                   <div id="results">

                       <p id="resultsExpl"></p>

                       <ul>

                          <li id="item1"></li>

                          <li id="item2"></li>

                          <li id="item3"></li>

                          <li id="item4"></li>

                          <li id="item5"></li>

                       </ul>

                   </div>

                   <form>

                       <fieldset>

                         <label for="placeBox" id="placeLabel">

                           Type the name of a place, then click Submit:

                         </label>

                         <input type="text" id="placeBox" />

                       </fieldset>

                       <fieldset>

                         <button type="button" id="button">Submit</button>

                       </fieldset>

                   </form>

                </article>

                <script>

                   var places = []; // new array to store entered places

                   var i = 1; // counter variable to track array indexes

             

                   // function to add input to array and then generate list after 5th submission

                   function processInput() {

                     "use strict";

                      places[i] = document.getElementById("placeBox").value; // add entered value to array

                      document.getElementById("placeBox").value = "" // clear text box

                      if (i < 5) { // iterate counter variable

                         i++;

                      }

                      else { // add entered value to array and write results to document

                         document.getElementById("resultsExpl").innerHTML = "You entered the following places:";

                         listItem = "";

                         for (j = 1; j < 6; j++) { // write each array element to its corresponding list item

                            listItem = "item" + j;

                            document.getElementById(listItem).innerHTML = places[j];

                         }

                    

                   }

             

                   // add backward compatible event listener to Submit button

                 

                }

                /* this listener should be out of  processInput() function*/

                var submitButton = document.getElementById("button");

                   if (submitButton.addEventListener) {

                     submitButton.addEventListener("click", processInput, false);

                   } else if (submitButton.attachEvent) {

                     submitButton.attachEvent("onclick", processInput);

                   }

                </script>

             </body>

</html>

In: Computer Science

Hi, can you answer this question in more detail? Subject: Quality Management and Practices Task 1...

Hi, can you answer this question in more detail?

Subject: Quality Management and Practices

Task 1 - Prepare a Project Definition (approximately 500 - 1000 words). This is the “who, why, and what” part of the project. It defines all major aspects of the project and forms the basis for its planning and management:

Topic: Western restaurant

In: Operations Management

List the three phases of matter in order of the distance between the particles. List the...

List the three phases of matter in order of the distance between the particles. List the properties of each phase. Explain what causes matter to change states.

In: Physics

construct a 10 year amortizing loan table with 8% interest rate. You borrow $30,000 initially and...

construct a 10 year amortizing loan table with 8% interest rate. You borrow $30,000 initially and repay it in your ten equal annual year end payments. show only the first 3 steps.

In: Finance

Please solve this problem with Python Language. P#2. A Pythagorean triplet is a set of three...

Please solve this problem with Python Language.

P#2. A Pythagorean triplet is a set of three natural numbers, a < b < c, for which a2 + b2 = c2 . For example, 32 + 42 = 52. And a + b + c = 3 + 4 + 5 = 12. There exists exactly two Pythagorean triplet for which a + b + c = 300. Find a, b, c.

Hints: Level-0 Algorithm:

1. Find the possible ranges of a and b for which a+b+c is around 300 (include the paper & pencil analysis at the end of your report)

2. Compute c for each combination of a and b

3. Verify if ?+?+?=300 and ?2+?2=?2 and ?<?<?

4. Print results

I really don't understand to do this problem.

In: Computer Science

Draw DFA C = { w is an element of {a,b}* and #a(w) is even and...

Draw DFA

C = { w is an element of {a,b}* and #a(w) is even and #b(w) us a multiple of 3)

In: Computer Science

A) estimate the error in the values of the gaussian approximation of the binomial coefficients g(12,2s)...

A) estimate the error in the values of the gaussian approximation of the binomial coefficients g(12,2s) as 2s changes from 0 to its maximum value. (N=12 2s between states)

B) How will the error in the value g(N,0) calculated using the gausian approximation in A if you use N=20?

In: Math

You want to buy a new sports coupe for $26,500 and the finance office at the...

You want to buy a new sports coupe for $26,500 and the finance office at the dealership has quoted you an 11.9% APR loan for 60 months to buy the car. What will your monthly payments be? What is the effective annual rate on this loan?

In: Finance

Consider a Coffee-shop located at the School University Center, which is managed by student association, and...

Consider a Coffee-shop located at the School University Center, which is managed by student association, and some students work there as a manager, in the kitchen, in customer service etc. You can consider all students workers as a general term “student_employee”.

As a system designer your task is to design a UML class for a “student-employee”, try to code in C# or any OOP language, create two sample objects and show inheritances from student to the student_employee.

In: Computer Science

5. Suppose that you and your spouse have recently purchased a house with a loan of...

5. Suppose that you and your spouse have recently purchased a house with a loan of $50,000. The terms were 15 percent interest and annual payments of $7,988.07 for 20 years. What proportion of the loan will have been paid off after 20 years? 5 years? 8 years? 12 years?

In: Finance

McGilla Golf has decided to sell a new line of golf clubs. The clubs will sell...

McGilla Golf has decided to sell a new line of golf clubs. The clubs will sell for $795 per set and have a variable cost of $355 per set. The company has spent $200,000 for a marketing study that determined the company will sell 65,000 sets per year for seven years. The marketing study also determined that the company will lose sales of 11,000 sets of its high-priced clubs. The high-priced clubs sell at $1,165 and have variable costs of $625. The company will also increase sales of its cheap clubs by 13,000 sets. The cheap clubs sell for $385 and have variable costs of $175 per set. The fixed costs each year will be $10,050,000. The company has also spent $1,500,000 on research and development for the new clubs. The plant and equipment required will cost $37,800,000 and will be depreciated on a straight-line basis. The new clubs will also require an increase in net working capital of $2,200,000 that will be returned at the end of the project. The tax rate is 25 percent, and the cost of capital is 13 percent.

  

a.

Calculate the payback period. (Do not round intermediate calculations and round your answer to 3 decimal places, e.g., 32.161.)

b. Calculate the NPV. (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.)
c. Calculate the IRR. (Do not round intermediate calculations and enter your answer as a percent rounded to 2 decimal places, e.g., 32.16.)

In: Finance