Questions
Part A) A bright object and a viewing screen are separated by a distance of 81.5...

Part A) A bright object and a viewing screen are separated by a distance of 81.5 cm . At what distance(s) from the object should a lens of focal length 17.0 cm be placed between the object and the screen in order to produce a crisp image on the screen? d=____? cm

Part B) An object is placed 18 cm from a certain mirror. The image is half the size of the object, inverted, and real. What is the radius of curvature of the mirror? Follow the sign conventions.

In: Physics

The following information applies to the questions displayed below.] Warnerwoods Company uses a perpetual inventory system....

The following information applies to the questions displayed below.]

Warnerwoods Company uses a perpetual inventory system. It entered into the following purchases and sales transactions for March.

Date Activities Units Acquired at Cost Units Sold at Retail
Mar. 1 Beginning inventory 70 units @ $50.40 per unit
Mar. 5 Purchase 210 units @ $55.40 per unit
Mar. 9 Sales 230 units @ $85.40 per unit
Mar. 18 Purchase 70 units @ $60.40 per unit
Mar. 25 Purchase 120 units @ $62.40 per unit
Mar. 29 Sales 100 units @ $95.40 per unit
Totals 470 units 330 units

3. Compute the cost assigned to ending inventory using (a) FIFO, (b) LIFO, (c) weighted average, and (d) specific identification. For specific identification, the March 9 sale consisted of 50 units from beginning inventory and 180 units from the March 5 purchase; the March 29 sale consisted of 30 units from the March 18 purchase and 70 units from the March 25 purchase.

In: Accounting

1.) Consider the data in the following table. In this study, the authors were interested in...

1.) Consider the data in the following table. In this study, the authors were interested in the use of erythrocyte sodium (ES) concentration as a potential biomarker for the response to lithium treatment in patients with bipolar illness. The ES levels were measured in 10 bipolar patients before and after treatment with lithium. The ES levels before and after treatment with lithium, as well as the after - before differences are given in Table 1. The authors wished to determine if there was a significant increase in ES level following lithium treatment.

            Table 1. Erythrocyte Sodium Concentrations (mmol/l) in Bipolar Patients

Phase

Erythrocyte Sodium Concentration (mmol/l)

Ill ("Before")

5.67, 5.89, 5.46, 7.30, 6.74, 5.80, 8.30, 6.01, 5.37, 5.45

On Lithium ("After")

6.02, 5.87, 7.42, 7.50,   6.24, 6.55, 8.65, 6.27, 5.64, 6.38

Difference

0.35, -0.02, 1.96, 0.20, -0.50, 0.75, 0.35, 0.26, 0.27, 0.93

Test statistic = __2.19____   d.f. = __9__   p-value = ___ 0.0560___

One sample t test was most appropriate to perform

??? State your conclusion in terms that a layperson would understand. ???

     

In: Math

2. Get ready        Read the following description of a problem. Problem: Quest sales so far...

2. Get ready

       Read the following description of a problem.

Problem: Quest sales so far this year are weak. What can the company do to increase sales?

3. Now you try it

       In the following table, complete the following risk/reward table to score each solution according to the risks and rewards it presents. Assign a score of High, Moderate, or Low to each option. Identify the preferred alternative.

Option

Potential Reward

Potential Risk

Increase tour prices

Offer popular tours more often

Cut expenses, including staff

       In the following space, explain why you assigned the scores you did.

In: Operations Management

important : on regular C programming Write a program for a company called Miller Apartments. The...

important : on regular C programming

Write a program for a company called Miller Apartments. The program will ask the user a series of questions and based on their answers, determine if they have apartments that meet their criteria. You must use functions!
Your main() function must call a function named displayMenu() which will print a welcome message and Menu (see sample output). Your main() function will call a function named millerMain() when option 1 is chosen from the menu. millerMain() will then call a function named inputNumberBedrooms() that will ask the user how many bedrooms they would like. You must validate the data inside the function so that they can only choose between 1 and 4 bedrooms. The number of bedrooms is then returned to the millerMain() function.
Your millerMain() function will then call a function named inputNumberBathrooms() that will ask the user how many bathrooms they would like. You must validate the data inside the function so that they can only choose between 1 or 2 bathrooms. The number of bathrooms is then returned to the millerMain() function.
Next, your millerMain() function will ask the user if they would like utilities included in the rent as a Y or N answer.
After you have all of the information from the user, your millerMain() function will send all of the information to a function called determineRent(). The determineRent() function will use a switch statement to determine the base rent given the following:
​1 bedroom à $600.00​2 bedroom à $750.00
​3 bedroom à $900.00​4 bedroom à $1050.00
Additionally, your determineRent() function will use and if statement to add $50 to the base rent if they asked for 2 bathrooms. Lastly, if they choose to include utilities, then your function will add $50.00 for each bedroom.
Once the rent has been determined, your function will return the rent to millerMain().
Your millerMain() function will ask the user to enter in the maximum amount they would be willing to pay for monthly rent. If the rent is more than what they would be willing to pay, you must specify that the rent is more, give them the amount, and ask if they would like to search again using different criteria. If the rent is not more than what they would be willing to pay, then tell them congratulations. You must also let them know how much their rent will be and whether or not it includes utilities. Then you will display the menu again by exiting millerMain() function and returning to the main() function. (See sample output).

Sample Run #1
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​1
How many bedrooms would you like? 1 – 4: 1
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: Y
Enter the maximum amount of rent you are willing to pay: 600.00
Based on your specifications, your total rent of $650.00 is more than your max rent!
Would you like to search using different criteria? Y/N: Y
How many bedrooms would you like? 1 – 4: 1
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: N
Enter the maximum amount of rent you are willing to pay: 600.00
Congratulations! We have an apartment for you to rent!
Your total rent will be $600.00 which does NOT include utilities!
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​0
Thank you for choosing Miller Apartments!
Goodbye.
Sample #2:
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​1
How many bedrooms would you like? 1 – 4: 6
Invalid number of bedrooms, please try again!
How many bedrooms would you like? 1 – 4: 2
How many bathrooms would you like? 1 – 2: 0
Invalid number of bathrooms, please try again!
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: N
Enter the maximum amount of rent you are willing to pay: 800.00
Congratulations! We have an apartment for you to rent!
Your total rent will be $750.00 which does NOT include utilities!
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​0
Thank you for choosing Miller Apartments!
Goodbye.
Sample #3
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​1
How many bedrooms would you like? 1 – 4: 1
How many bathrooms would you like? 1 – 2: 1
Would you like to have utilities included in the rent? Y/N: Y
Enter the maximum amount of rent you are willing to pay: 800.00
Congratulations! We have an apartment for you to rent!
Your total rent will be $650.00 which includes utilities!
----------------------------------------------------------------------
|​​​Welcome to Miller Apartments!​​​​ | ----------------------------------------------------------------------
|​Menu​​​​​​​​​​​ |
|​​New Search:​1​​​​​​​ |
|​​Exit Program:​0​​​​​​​ |
----------------------------------------------------------------------
Enter your choice:​0
Thank you for choosing Miller Apartments!
Goodbye.

In: Computer Science

Search from library or internet one academic article (written by university teachers) about BDA's conceptual modelling...

Search from library or internet one academic article (written by university teachers) about BDA's conceptual modelling and give summary of the article. (at least 250 words)

“Conceptual Model Development of Big Data Analytics Implementation Assessment Effect on Decision-Making” by Cecilia Adrian, Rusli Abdullah, Rodziah Atan, Yusmadi Yah Jusoh

In: Operations Management

Your company sells health insurance policies. The company has a large sales force comprised of independent...

Your company sells health insurance policies. The company has a large sales force comprised of independent contractors. Some of its sales agents, usually after a significant period of service, are promoted to the position of "sales leader." Sales leaders sign an agreement, consenting to remain as independent contractors when they are promoted. Sales leaders do little selling of policies; instead, their main responsibilities are recruiting, training, and managing sales agents. The income of sales leaders is mainly derived from overwrite commissions on their subordinates' sales. The company retains control over the hiring, firing, assignment, and promotion of sales agents. The company determines sales leaders' territories and does not permit them to sell other insurance products or operate other businesses. Sales leaders set their own hours and conduct their day-to-day activities largely free from supervision. Attendance at company meetings and training sessions is generally considered optional for sales leaders. Sales leaders receive no benefits and the company does not withhold any of their pay for tax purposes. Several sales leaders are threatening to sue for overtime pay under the Fair Labor Standards Act. a) Are the sales leaders employees or independent contractors? Describe the analysis you will conduct to determine their appropriate classification.

In: Operations Management

Offer an evidence-based justification for a corporate political strategy that is beneficial to society.

Offer an evidence-based justification for a corporate political strategy that is beneficial to society.

In: Operations Management

Why do moral problems arise in the health professions and why are they consider moral dilemmas?

Why do moral problems arise in the health professions and why are they consider moral dilemmas?

In: Psychology

What is the most deviant activity that you think a person your age can commit in...

What is the most deviant activity that you think a person your age can commit in this society? Let's exclude murder and other violent crimes. What are activities that folks your age (hell, maybe you) might perform that society really frowns upon...even though they happen more frequently than most people think. 15 lines or more!

In: Psychology

Informational technology has advanced dramatically in recent years at the same time enomous changes in the...

Informational technology has advanced dramatically in recent years at the same time enomous changes in the business world have occurred as companies reflect global competition and more pressure for qualify speed and customer service Did the new technology inspired the business change or it was all the way around?Justify your position

In: Computer Science

Online Store Project Assignment Four Introduction Project Four introduces the ability to read and write data...

Online Store Project Assignment Four

Introduction

Project Four introduces the ability to read and write data to files. This project will create an online store application circa 1990. The application you will build is a standard C++ console project (visual studios). The store will contain basic operations to shop for items, check out of the store, calculate taxes and totals.

All online store applications are “data driven” in that the contents of the store changes over time. In addition, shipping rates change over time. So this project will read shipping rates and tax rates in from a file. It assumes that these rates are based upon the zipcode provided by the user. The sample data for this file is located here:

90001 0.09000 1.55 1.65 1.72

90002 0.09000 1.55 1.65 1.72

90003 0.09000 1.55 1.65 1.72

9000411 0.09000 1.55 1.65 1.72

90005 0.09000 1.55 1.65 1.72

90006 9 1.55 1.65 1.72

90007 0.09000 1.55 1.65 1.72

90008 0.09000 1.55 1.65 1.72

90009 0.09000 1.55 1.65 -1.72

90010 0.09000 1.55 1.65 1.72

90011 0.09000 -1.55 1.65 1.72

90012 0.09000 1.55 1.65 1.72

90013AB 0.09000 1.55 1.65 1.72

90014 0.09000 1.55 1.65 1.72

90015 0.09000 1.55 1.65 1.72

90016 0.09000 1.55 1.65 1.72

90017 0.09000 1.55 1.65 1.72

90018 0.09000 1.55 1.65 1.72

90019 0.09000 1.55 1.65 1.72

90020 0.09000 1.55 1.65 1.72

90021 0.09000 1.55 1.65 1.72

90022 0.09000 1.55 1.65 1.72

90023 0.09000 1.55 1.65 1.72

90024 0.09000 1.55 1.65 1.72

90025 0.09000 1.55 1.65 1.72

90026 0.09000 1.55 1.65 1.72

90027 0.09000 1.55 1.65 1.72

90028 0.09000 1.55 1.65 1.72

90029 0.09000 1.55 1.65 1.72

90030 0.09000 1.55 1.65 1.72

90031 0.09000 1.55 1.65 1.72

90032 0.09000 1.55 1.65 1.72

90033 0.09000 1.55 1.65 1.72

90034 0.09000 1.55 1.65 1.72

90035 0.09000 1.55 1.65 1.72

90036 0.09000 1.55 1.65 1.72

90037 0.09000 1.55 1.65 1.72

90038 0.09000 1.55 1.65 1.72

90039 0.09000 1.55 1.65 1.72

90040 0.09000 1.55 1.65 1.72

90041 0.09000 1.55 1.65 1.72

90042 0.09000 1.55 1.65 1.72

90043 0.09000 1.55 1.65 1.72

90044 0.09000 1.55 1.65 1.72

90045 0.09000 1.55 1.65 1.72

90046 0.09000 1.55 1.65 1.72

90047 0.09000 1.55 1.65 1.72

90048 0.09000 1.55 1.65 1.72

90049 0.09000 1.55 1.65 1.72

90050 0.09000 1.55 1.65 1.72

90051 0.09000 1.55 1.65 1.72

90052 0.09000 1.55 1.65 1.72

90053 0.09000 1.55 1.65 1.72

90054 0.09000 1.55 1.65 1.72

When a consumer checks out of the store with their shopping cart, most eCommerce applications will email an invoice to the customer. Unfortunately, emailing receipts to customers is beyond the scope of this class! So you will need to write the invoice to a file. The format is described below. You will need to upload a sample output file along with the .cpp file.

Steps and Requirements

Follow the steps below to create your program.

  • Display a welcome statement to the user. Come up with a creative name for the store – such as “Hot Tub Time Machine Parts and Supplies”.
  • The main() function should have a loop that displays a menu of shopping options. This is the control loop for the entire program. Once the user decides to check out or exit the store, the loop can stop.
  • The main function will also need to define all of the variables to be passed to the functions listed below. This includes the
    • Customer name, address, city, zipcode
    • Shopping cart/catalog array – the simplest way to track a catalog of items is to define a structure which will contain the item description, the price of the item, the quantity purchased, and the weight of the item. The weight of items can be in ounces or grams (pick one). Then define an array of structures to track the item quantities.
  • Create the following functions and place the function calls at the appropriate spots in the main() program.
    • loadShipping() - load the shipping rates and tax rates from the sample data file. This function should be called once at the beginning of main().
      • This function will receive an array of structures as input. You need to use a structure to save each rate for later use. Define the structure at the top of the program. There will be multiple lines in the file. The function does not have to return anything.
      • The layout of the file is
        • Zipcode taxrate USPSrate UPSrate FedexRate
      • Your function should validate the input data from the file. If data is invalid, skip over that line and proceed to the next line of the file. Things to check for include
        • Zipcode longer than 5 digits
        • Negative or invalid tax and shipping rate values. In project one, you hardcoded a shipping rate for each carrier. The file will now contain the rate (as a real number). When you look at the text file you will see some Los Angeles zipcodes with invalid data. Do NOT fix the data. Your code should handle these problems by displaying an error message and skipping that row of data.
        • The sample file contains all zip codes for California. This is over 2600 zip codes. Your array needs to be at least this big.
        • Hint – Make a copy of the zip code file and delete all lines after line 15. This will create a much smaller set of zip codes to test your program. Once you get everything working, use the main zip code list from Canvas.
    • displayMenu() –It displays the menu options. It does not need any input parameters. It returns the menu choice that the user selected. It should clear the screen each time it is called (hint – one option is to use system(“cls”)). It should validate the user input to make sure they have selected a valid option. The menu should have the following choices:
      • Create Customer Account
      • Shop for Items
      • Proceed to Check Out
      • Exit Store (without buying)
    • createCustomer() – This function prompts for the user’s name and address and saves the results. Input parameters include the name, address, city, and zip. If you choose to use string data types, then you will need to pass by reference. This function does not return anything.
    • maintainCart() – This function allows the user to add an item into their shopping cart. The shopping “cart” is represented by an array. This array is an input parameter to the cart function. Prompt the user with a catalog of items to purchase. You can make up your own list of items with prices that you want to sell (have at least 4-5 items). The user will choose a specific item. Validate the choice. Once a valid choice is made, then ask the user for the quantity to purchase. Save the quantity into the correct array slot. For example,
      • cart[0] – Hut Tub Cover, Price = $150.00
      • cart[1] – Pool Chemicals, Price = $12.00
      • cart[2] – Bubbles, Price = $18.00
      • cart[3] – Time Machine, Price = $4000.00
    • checkOut() – This function will “process” the customer order. In a true eCommerce application, you would charge a credit card and calculate shipping. For this application, the check out consists of calling the following functions. The input parameters are the zipcode, the quantity array. If the zipcode is empty (in the case where the user did not enter their customer info), prompt the user to enter a zipcode at this point.
      • displayReceipt() – This function should loop through all items in the cart and display the item, quantity, price, and extended amounts (price & quantity). This function returns the subtotal of all the items purchased.
      • calculateShipping() – Add up the total weight of all products ordered (quantity > 0). Prompt the user for the shipping method (USPS, UPS, or FEDEX). Based upon their zipcode, find the appropriate rate. Use the following table to calculate the shipping amount. Return this amount from the function.

Weight

Modifier

1-10

1x

11-50

5x

> 50

10x

For example, total weight = 50 ounces shipped via USPS to 90001, results in amount = 5 * 1.55 = $7.55

  • calculateTax() – This function should receive the location of the customer (zipcode) and the subtotal of the order as parameters. Look up the zipcode in the zipcode array to get the tax rate. Calculate the tax amount = subtotal * rate. It should return the tax amount.
  • calculateTotal() – This function should receive the subtotal, shipping amount, and tax amount. It then returns the total. It should verify that the input amounts are valid.

After calling the above functions, the checkOut() routine should display the subtotal, tax, and total amounts to the screen. It should save the invoice or receipt to a file. You should print out the customer name at the top. Follow this with the item descriptions, price, quantity and extended price. Then print the subtotal, tax, shipping, and grand total (on separate lines of the file). Name the file “invoice.txt”.

    • Make sure not to print out any items that may not have been ordered (quantity = 0) from the cart.
  • Extra Credit One (2 points) – Use the C++ date functions to print out the current date in the saveInvoice function. This can be tricky to get formatting correct.
  • Extra Credit Two (4 points) – For the saveInvoice function, save the file in .html format. Use basic tags such as header <h1>, paragraph <p>, lists <ul> to format the invoice. With the HTML format, the grader should be able to double click on the file and have it launch to a browser.

In: Computer Science

discuss the cognitive emotion and physical fine and gross development the occurs ininfancy

discuss the cognitive emotion and physical fine and gross development the occurs ininfancy

In: Psychology

A citizen of India was hired through an international recruitment firm to work in the U.S....

A citizen of India was hired through an international recruitment firm to work in the U.S. as a computer analyst at a salary of $42,000 per year. He received a H-1B visa, left his old job and family and came to the U.S. Upon his arrival, he was informed that the position had already been filled and that he would be employed as a gas station cashier and paid at less than the minimum wage. The employee worked for a period of time and then sued. a) What are the employee's legal claims? b) What are the employer's defenses? c) If the computer analyst position was already filled by the time the employee had arrived, what could the employer have done to avoid the situation?

In: Operations Management

what are the thermal properties of composite materials??? with references, please.

what are the thermal properties of composite materials??? with references, please.

In: Mechanical Engineering