8 puzzle JAVA

2- Complete the puzzle method by using heuristic search f(n) = g(n)+ h(n).

For h(n) use sum of distances out of place (hamilton distance).
Make sure to write your name in main method.
3- Create an input file as follow:
3
1 3 2 5 0 4 8 7 6               1 3 2 5 7 4 8  6  0
1 5 2 0 8 6 3 7 4               1 2 3 4 5 0 8  7  6 
1 3 2 5 0 4 8 7 6               0 1 3 2 5 7 4  6  8
4- For each input print:
Initial state, Goal Sate, the no. of moves as well as moves from initial state to goal
state. for example:
Initial state: 1 3 2 5 0 4 8 7 6,
Goal State:  1 3 2 5 7 4 8  6  0,  
10 moves: L, R, D, ……..
*private void puzzle(int cs[], int gs[]){ //complete this method, on attached file.

I/O Devices

Assignment Content

  1. Question 1

In virtually all systems that include DMA modules, DMA to main memory is given higher priority than CPU access to main memory. Why? 

Question 2

When a device interrupt occurs, how does the processor determine which device issued the interrupt? 

Question 3

A system is based on an 8-bit microprocessor and has two I/O devices. 

  • The I/O con- trollers for this system use separate control and status registers. 
  • Both devices handle data on a 1-byte-at-a-time basis. 
  • The first device has two status lines and three control lines. 
  • The second device has three status lines and four control lines. 
  • How many 8-bit I/O control module registers do we need for status reading and control of each device? 

    ***Explain your reasoning and show your mathematical calculations on how you derived your answer 

  • Question 4

    A system is based on an 8-bit microprocessor and has two I/O devices. 

  • The I/O con- trollers for this system use separate control and status registers. 
  • Both devices handle data on a 1-byte-at-a-time basis. 
  • The first device has two status lines and three control lines. 
  • The second device has three status lines and four control lines. 
  • What is the total number of needed control module registers given that the first device is an output-only device? 

    ***Explain your reasoning and show your mathematical calculations on how you derived your answer 

  • Question 5

    A system is based on an 8-bit microprocessor and has two I/O devices. 

  • The I/O con- trollers for this system use separate control and status registers. 
  • Both devices handle data on a 1-byte-at-a-time basis. 
  • The first device has two status lines and three control lines. 
  • The second device has three status lines and four control lines. 
  • How many distinct addresses are needed to control the two devices? 

    ***Explain your reasoning and show your mathematical calculations on how you derived your answer 

  • Question 6

    Consider a microprocessor that has a block I/O transfer instruction such as that found on the Z8000. 

  • Following its first execution, such an instruction takes five clock cycles to re-execute.
  •  However, if we employ a nonblocking I/O instruction, it takes a total of 20 clock cycles for fetching and execution. 
  • Calculate the increase in speed with the block I/O instruction when transferring blocks of 128 bytes. 

    **Explain your reasoning and show your mathematical calculations on how you derived your answer 

  • Question 7
  • What is the difference between memory-mapped I/O and isolated I/O? 

Exp22_Excel_Ch02_ML1 – Katherine's Coffee Shop Weekly Payroll

Exp22_Excel_Ch02_ML1 – Katherine’s Coffee Shop Weekly Payroll

  

Project Description:

You have been hired as the new manager of Katherine’s Coffee shop. As part of your responsibilities, you will be calculating the weekly payroll. The previous manager developed a partial worksheet, but you will enter the formulas to calculate the regular pay, overtime pay, gross pay, taxable pay, withholding tax, FICA, and net pay. In addition, you want to include total pay columns, calculate some basic statistics, and create an employee lookup section. As you construct formulas, make sure you use absolute, relative, and mixed cell references correctly in formulas.

     

Start Excel. Download and open   the file named Exp22_Excel_Ch02_ML1_Payroll.xlsx.   Grader has automatically added your last name to the beginning of the   filename. 

 

Use IF functions to calculate   the regular pay and overtime pay in columns E and F based on a regular   40-hour workweek. Be sure to use the appropriate absolute or mixed cell   references. Pay overtime only for overtime hours. Note employees receive 1.5   their hourly wage for overtime hours worked. Calculate the gross pay in cell   G5 based on the regular and overtime pay. Spencer’s regular pay is $440. With   five overtime hours, Spencer’s overtime pay is $82.50.

 

Create a formula in cell H5 to   calculate the taxable pay. Multiply the number of dependents by the deduction   per dependent and subtract that from the gross pay. With two dependents,   Spencer’s taxable pay is $422.50.

 

Insert a VLOOKUP function in   cell I5 to identify and calculate the federal withholding tax. With a taxable   pay of $422.50, Spencer’s tax rate is 25% and the withholding tax is $105.63.   The VLOOKUP function returns the applicable tax rate, which you must then   multiply by the taxable pay.

 

Calculate FICA in cell J5 based   on gross pay and the FICA rate, and calculate the net pay in cell K5. Copy   all formulas down their respective columns. Be sure to preserve the existing   formatting in the document. Based on the hours Spencer worked he paid $39.97   to FICA and had a weekly net pay of $376.90

 

Use Quick Analysis tools to   calculate the total regular pay, overtime pay, gross pay, taxable pay,   withholding tax, FICA, and net pay on row 17. (On a Mac, this step must be   completed using the AutoSum feature on the ribbon.)

 

Apply Accounting Number Format   to the range C5:C16. Apply Accounting Number Format to the first row of   monetary data and to the total row. Apply the Comma style to the monetary   values for the other employees. 

 

Insert appropriate functions to   calculate the average, highest, and lowest values in the Summary Statistics   area (the range I24:K26) of the worksheet. Format the # of hours calculations   as Number format with one decimal and the remaining calculations with   Accounting Number Format.

 

Use the XLOOKUP function to look   up the employee name in cell A20 (Wagner) in the payroll data and return the   specified information in row 20. Ensure the return array includes overtime   pay, gross pay, taxable pay, federal tax, FICA and net pay. 

 

Save and close the workbook.   Submit the file as directed. 

Business Intellegence

Discussion: What are the common business problems addressed by Big Data analytics?  In the era of Big Data, are we about to witness the end of data warehousing? Why?

Questions: 

1. What is Big Data? Why is it important? Where does Big Data come from?

2. What do you think the future of Big Data will be? Will it lose its popularity to something else? If so, what will it be?

3. What is Big Data analytics? How does it differ from regular analytics?

4. What are the critical success factors for Big Data analytics?

5. What are the big challenges that one should be mindful of when considering implementation of Big Data analytics?

Week 1 Lab

 

Steps

Here are the Week 1 Lab Instructions

  1. Prepare a Word file with the following elements (program code and screenshot) that follows Parts A, B, and C in the instructions.
  2. Create a new C++ console project in Visual Studio.
  3. Write, test, and debug your program.
  4. Paste your final program code into the Lab Report Template (Links to an external site.).
  5. Paste a screenshot of your working program into the Lab Report Template.
  6. Zip the folder you created when you created your project in Visual Studio. (Make sure Visual Studio is not open when you attempt to zip the folder.)
  7. Submit the Word file and the zip file.

PowerPoint_1G_Northern_Lights

 PowerPoint_1G_Northern_Lights

     

Open   the file Student_PowerPoint_1G_ Northern_Lights.pptx downloaded with this project.

 

Replace all occurrences of the   text North with Northern and then change layout of Slide   1 to Title Slide.

 

Apply the Ion theme with the   second, blue variant to the presentation.

 

Change the Slide Size to   Widescreen (16:9).

 

Display Slide 2, open the Reuse   Slides pane, and then from your downloaded files browse for and display the   presentation p01G_Slides.pptx. If   necessary, clear the Keep source formatting check box, and then insert the   last two slides.
  Note, Mac users, after importing the slides, delete Slide 3-Alaska Slides

 

Display Slide 2. In either the   slide pane or in the slide outline, click at the end of the first bullet   point after the word time. Press   SPACEBAR. Add the words for viewing and then in the same slide, increase the list   level of the second and third bullet points.

 

 

With Slide 2 still displayed,   select the title and change the Font Size to 32. In the Notes pane, type the   following notes: The lights reach their peak in September and March. Be sure to type the period at   the end of the sentence.

 

 

Display Slide 3. Select the   paragraph of text, and then change the Font Color to in the last column, the   third color. Change the Font Size to 16, and then apply Bold.

 

In the same paragraph, change the Line Spacing to 1.5, and then   center the paragraph and the slide title.

 

With Slide 3 still displayed,   format the picture with the Soft Edge Rectangle picture style and the Marker   artistic effect.

 

Display Slide 4. In the content placeholder on the right, from your   downloaded files, insert the picture p01G_Lights.jpg.   Apply the Reflected Rounded Rectangle picture style.

 

Move Slide 3 between Slides 1   and 2.

 

 

Display Slide 4. Insert a New   Slide with the Section Header layout. In the title placeholder, type Visit   Fairbanks and View the Northern Lights! In the text placeholder type With Kodiak   West Travel

 

Apply the Uncover transition and   change the Effect Options to From Top. Change the Timing by increasing the   Duration to 01.25. Apply the transition effect to all of the slides.

 

Insert a Header & Footer on   the Notes and Handouts. Include the Date and time updated automatically, the   Page number, a Footer with the text 1G_Northern_Lights and then apply to all the   slides.

 

Display the Document Properties.   Type northern   lights, Fairbanks   as the Tags.
  Note—Mac users use the Keywords box.

Unit 7: Animation Software

  Research programming languages that are used for animation and select the one you feel is the best.  Be sure to include the name of the program, the source of the program, and the cost.  Explain your reasons for selecting this program. Describe a project that you could create using this program.