WPC-300_Assignment1

.pdf

School

Arizona State University *

*We aren’t endorsed by this school

Course

300

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

6

Uploaded by utursuno

Report
WPC-300 Assignment-1 Answer Key Before starting: Step 1: There are two files for this assignment. The pdf is the assignment instruction and the “.xlsx” format one is the data provided. You need to open the GraduateInnData.xlsx file in Microsoft Excel. Answers: 1. In column J, add the index name: Number of Days like the below image: Then we need to put the formula for the new column.Following is the formula for the first index of the new column. Formula: No. of days = Departure Date - Arrival Date Use the formula in column J3 of the excel document: (as shown below). Do not forget to change the number format by changing the format to general in the number section of the ribbon bar(menu bar). This is also shown in the image: So, this is for the J3 column. Then we can drag to get the result for the remaining ones as follows.
2. We have used the IF function to specify the condition if the number of guests is above or below 2. If it is above 2 then only we have added the additional cost using Vlookup. In column K, add the index name: Daily rates considering # of guests Use the following formula on column K3: =IF(H3<=2,I3,I3+(VLOOKUP(E3,$N$10:$O$13,2,)*(H3-2))) Here, I have inserted the Additional cost table for each type of room in the columns from N10:O13. You can insert the additional cost table anywhere in the excel, and change the formula while using VLOOKUP accordingly. “$” sign is inserted before the columns which are to be fixed during the execution of the formula. Once you’ve applied the formula to the column K3, drag to get the result for the remaining ones as shown in the image below:
3. Here we have again used the IF function to provide discounts if the total number of stay days is more or equal to 7. In column L, add the index name: Revenue collected Use the following formula on column L3: =IF(J3>=7, 0.9*(K3*J3),K3*J3)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help