Need Help ?

Expert Answers

Teacher is very picky, document must have all these things   Sean has a new p ...

Teacher is very picky, document must have all these things   Sean has a new project for you to work on. In addition to digital games, the Harpe Gaming Store also sells board games. Sean is working on a page describing a few sample board games. He has created an XML document named games.xml that contains the description of two games, as well as scores the store has given the games on a 1 to 10 scale in seven categories. Sean also has an XML document named game_reviews.xml containing reviews written up in other gaming websites and an XML document named reviewers.xml that describes those websites.   Sean wants all of this information collected and displayed using a customized style sheet. He would like the style sheet to calculate the average score given to the selected board game and wants all numeric values and dates to be nicely formatted. Figure 6-46 shows a preview of the completed project.    1. Using your editor, open the gamestxt.xml and gamestxt.xsl .Enter your name and the date in the comment section of each ?le and save them as games.xml and games.xsl , respectively.   2. Go the games.xml ?le in your editor. Take some time to review the contents of the ?le and then link the games.xsl style sheet file to the file. Close the games.xml file, saving your changes.   3. View the contents of the game_reviews.xml and reviewers.xml ?le in your editor, taking note of the structure and content of each document. Close the files. You do not have to save any changes to these documents.    4. Sean also has created a library of functions you’ll use in this project. Open the hgfunctions.xsl ?le in your editor and study the contents. The document has two templates. One template matching the releaseDate element is used to convert date values from the mm/dd/yyyy format to the Month Day, Year format. The second template, named imageRow, is used to create a row of inline images. The imageRow template has two parameters: the imgFile parameter speci?es the name of the image ?le, and the imgCount parameter speci?es the number of images to be displayed. After studying the ?les, close the document. You don’t have to save any changes.   5. Go to the games.xsl ?le in your editor. Directly after the opening tag, use the include element to include the contents of the hgfunctions.xsl style sheet.   6. Directly after the include element, create the following global parameters and variables:   a. The gameID parameter with a default value of ‘bg210’. This parameter will be used to select different board games to display in the web page.   b. The currentGame variable containing the /games/game[@gid=$gameID] node set. This variable will be used to select the game to display in the report.   c. The externalReviews variable containing the /reviews/review[@gid=$gameID] node set from the game_reviews.xml ?le. ( Hint : Use the document() function.) This variable will be used to access customer reviews for the current game.   d. The externalReviewers variable containing the /reviewers node set from the reviewers.xml ?le. This variable will be used to access the list of reviewers for the report.   7. Go to the root template and make the following style changes so that the report displays information for the current game selected by the user:   a. Go to the     tag within the head section of the HTML ?le and change the node set for the   value-of   element to $currentGame/title in order to display the title of the current game.   b. Go to the gameSummary section and change the   select   attribute of the   apply-templates   element so that it applies the template for the   currentGame   variable.   8. Go to the game template and make the following style changes:   a. Locate the table cell in the List Price row that displays the value of the price element and format the price value so that it appears in the $#,##0.00 format.   b. Change the table cell in the Release Date row that displays the value of the   releaseDate   element so that it applies the template for the   releaseDate   element found in the hgfunctions.xsl ?le.    9. Next, within the game template, you need to display the summary information on the game taken from the summary element in the games.xml file. Below the summaryTable web table </table>  tag in the game template, use the copy-of element to copy the node-set summary/* into the result document.   10. Sean wants the report to display the score for each game. Directly after the copy-of element you just created within the game template, create a variable named avgScore that returns the average scores contained in the scores/score node set. ( Hint : Divide the sum of the values in the scores/score node set by the count of values in that node set.)   11. Finally, within the game template, insert the following web table structure for a web table that displays the scores from each gaming category and a ?nal row that displays the average score from all gaming categories:  <table id="scoreTable">      score template <tr>     <th>OVERALL             (avgScore / 10)     </th>     <td>         row of token images     </td> </tr> </table> where score template applies the template for the scores/score node set to display scores from each gaming category and avgScore is the value of the avgScore variable displayed with the 0.00 number format. Create the row of token images by calling the imageRow template from the hgfunctions.xsl ?le using the ‘token.png’ ?le for the imgFile parameter and the value of the avgScore variable rounded to the nearest integer for the imgCount parameter.   12. Directly below the game template, create a template for the score element. The template will display a table row for each category of gaming score by writing the following HTML code:  <tr>    <th>       category (current score/10)    </th>     <td>       row of token images     </td> </tr>  where category is the value of category attribute, current score is the value returned by the current() function, and row of token images is created by calling the imageRow template using ‘token.png’ for the imgFile parameter and the value returned by the current() function for the imgCount parameter.   13 Scroll up to the game template and, directly below the tag, insert a command to apply the template to the externalReviews variable you created in Step 6.   14. Go back to the bottom of the style sheet to the review template used to display external reviews of the current game. This template has two local variables: the reviewerTitle variable contains the title of the review, and the reviewerURL variable contains the URL of the reviewer’s website. Add the following HTML code to the template:  <section class="review">     summary nodes     <p>       reviewerTitle      <br />      (<a href="reviewerURL">reviewerURL</a>)     </p> </section> where summary nodes is a copy of the summary/* node set using the copy-of element, reviewerTitle is the value of the reviewerTitle variable, and reviewerURL is the value of the reviewerURL variable.   15. Save your changes to the style sheet.   16. Generate a result document using bg210 and bg211 for the values of the gameID parameter, storing the results in ?les named bg210.html and bg211.html , respectively.   hgstyles.css /*    New Perspectives on XML, 3rd Edition    Tutorial 6    Review Assignment      Harpe Gaming Store style sheet         Filename:         hgstyles.css    Supporting Files: none   */   /* Default styles */   * {    margin: 0px; }   header, section, article {    display: block; }    /* Body styles */ body {    font-family: Verdana, Geneva, sans-serif;    background-color: rgb(121, 211, 121); }   div#wrap {    background-color: white;    margin: 0px auto;    width: 1200px;    border-left: 2px solid rgb(151, 151, 151);    border-right: 2px solid rgb(151, 151, 151);      box-shadow: rgb(51, 51, 51) 10px 0px 30px,                rgb(51, 51, 51) -10px 0px 30px;    padding-bottom: 50px; }   header {    background: -o-linear-gradient( top,rgb(61, 192, 61) , rgb(51,51,51) 95%);     background: -ms-linear-gradient( top,rgb(61, 192, 61) , rgb(51,51,51) 95%);     background: -moz-linear-gradient( top,rgb(61, 192, 61) , rgb(51,51,51) 95%);     background: -webkit-linear-gradient( top,rgb(61, 192, 61) , rgb(51,51,51) 95%);     background: linear-gradient( top,rgb(61, 192, 61) , rgb(51,51,51) 95%);  }   div#wrap > header > h1 {    font-size: 3.6em;    letter-spacing: 0.12em;    font-weight: normal;    color: rgb(151, 151, 151);    text-shadow: black 3px 3px 8px,                 white 0px -2px 0px;    margin-left: 100px;    padding: 15px 0px;      font-family: 'Century Gothic', sans-serif; }   #gameSummary {    margin: 0px 100px 30px 100px; }   #gameSummary > h1 {    margin: 20px 0px 2px 325px;    font-weight: normal;    font-size: 1.8em;    letter-spacing: 0.07em;    color: rgb(222, 112, 182); }   #gameSummary > h2 {    margin: 0px 0px 0px 325px;    font-weight: normal;    font-size: 0.85em;    border-bottom: 1px solid rgb(211, 211, 211); }   #gameSummary > h2 em {    color: rgb(116, 158, 242);    font-weight: normal;    font-style: normal; }   #gameSummary > h3 {    font-size: 1.05em;    font-weight: normal;    color: rgb(204, 34, 142);    margin-left: 325px; }     #gameSummary > img {    float: left;    margin: 20px 0px 0px 0px; }   #gameSummary > p {    margin: 0px 20px 30px 325px;    font-size: 0.9em; }    table#summaryTable {    margin-left: 325px;    font-size: 0.85em;    margin-top: 10px;    margin-bottom: 30px; }   table#summaryTable th {    text-align: right;    padding-right: 8px;    font-weight: normal; }   table#summaryTable td {    color: rgb(131, 91, 91); }    table#scoreTable {    border-collapse: collapse;    margin: 10px 0px 30px 325px;    border: 1px solid rgb(151, 151, 151);    width: 520px; }   table#scoreTable th {    font-weight: normal;    font-size: 0.85em;    text-align: left;    padding: 0px 10px;    height: 20px;    vertical-align: bottom;    border-bottom: 1px solid rgb(151, 151, 151);    border-right: 1px solid rgb(151, 151, 151); }   table#scoreTable td {    padding: 0px;    height: 20px;    border-bottom: 1px solid rgb(151, 151, 151); }   table#scoreTable tr:last-of-type {    background-color: rgb(159, 236, 128); }   section.review {    border: 1px dotted rgb(151, 151, 151);    background-color: rgb(235, 235, 235);    margin: 10px 0px 10px 0px;    width: 295px;    clear: left;    float: left; }   section.review h3 {    font-weight: normal;    color: rgb(54, 121, 78);    font-size: 0.9em;    text-align: center;    margin: 10px; }   section.review p {    font-size: 0.7em;    margin: 10px; }   section.review ul {    font-size: 0.7em; }   footer {    clear: left;    padding-top: 30px;    font-size: 0.1em;    border-bottom: 1px solid rgb(211, 211, 211);  }     gamestxt.xml <?xml version="1.0" encoding="UTF-8" ?> <!--    New Perspectives on XML 3rd Edition    Tutorial 6    Review Assignment      Harpe Gaming Store Board Games    Author:     Date:         Filename:         games.xml    Supporting Files: games.xsl   -->   <games>    <game gid="bg210">       <title>Towers and Temples       Royal Games       17.73       10/21/2017       Board Game       10+       2 - 8             bg210.png                  

Rule an Ancient City

         

Towers and Temples is the winner of the 2016 Palmer Medal for           Best New Simulation Board Game. Players adopt role cards of characters          from ancient Greece and Rome in an attempt to manage the administration of          a city. Each role provides a different ability and strategy. However, one          role card belongs to a deadly assassin and players must be constantly          aware of betrayal and double-cross. This card game provides a ton of enjoyment           and can handle up to seven players and expansion packs available for           larger parties.

         

This is a nicely balanced game, where each player must carefully choose           his or her roles and the strategies can quickly change with the turn of a card.          However the level of randomness is just right and cunning and resourcefulness          can overcome bad luck (if given time.) I do not recommend this game unless           there are at least 4 players; less than that reduces the intrigue and some          of the game appeal.

     
               8          9          7          6          10          9          10                     Alliance       Bearnes Brothers       22.15       9/14/2017       Board Game       12+       2 - 6             bg211.png                  

Decide the Fate of the World

         

The world is at war. Alliance challenges you and your opponents to           decide the outcome. As one of the world powers battling for supremacy you must           lead your country's military drive; but you can't do it alone. You have to form          alliances and then betray your allies before they betray you!

         

Decide where to strike, when to strike and the intensity of the strike. Will           it be a bombing raid, an offshore missile barrage, or an invasion with land forces          and tanks? Plan your attack, move into enemy territory with your forces and           win the conflict.

         

The economic destiny of your nation is also at stake. Buy armaments and develop           secret weapons from your country's economic funds and natural reserves; but be          sure to save something for the future.

     
               7          10          6          5          8          7          5          
      gamestxt.xsl                                                 <xsl:value-of select="games/game[@gid='bg201']/title" />                                              
               
                 

Harpe Gaming

               
                 
                                 
                 
.
             
                   
                     

     

By:                

                                                                                                                                                                                                                                                                                                                                     
Game ID:
List Price:                            
Media:                            
Release Date:                            
Age:                            
Players:                            
Time:                            
     
                               
     hgfunctions        JanuaryFebruaryMarchApril    MayJuneJulyAugustSeptember    OctoberNovemberDecember                                                                                          

READ MORE >>

  The purpose of this assignment is to evaluate and select an IT project and c ...

  The purpose of this assignment is to evaluate and select an IT project and create a charter and work breakdown structure associated with the project selected. For this assignment, read the "Running Case" in Chapter 4 of the textbook. Complete the following tasks associated with the "Running Case." Part 1: Using the "Weighted Decision Matrix Template," evaluate the four projects by preparing the weighted scoring model on the template. Develop at least four criteria, assign weights to each criterion, assign scores, and then calculate the weighted scores. Print the spreadsheet and bar chart with the results. Prepare a 250-word paper that describes the weighted scoring model and the results. Include justification of the scores and your recommendation and justification for which project should be selected for completion. Part 2: Based upon the recommendations you made in Part 1 of the assignment, senior management has made a preliminary decision to complete the "Global Treps Project," but it has requested additional information about the project in order to finalize the decision to proceed. Complete the "Business Case Template." Assume that the project will take 6 months to complete, use many volunteer hours, and cost about $130,000 for hardware, software, travel, and labor. Be sure to research information on the television show and events held by colleges and other groups, which have been sparked by the need for more successful entrepreneurs. Visit the DonorsChoose.org website to see how that site operates and investigate the process for forming a nonprofit organization. When completing the "Business Case Template," consider the following: Assume you would be the IT project manager for the project and that you want the project to be implemented. Reread the "Global Treps" project description. Review the sample JWD Consulting business case shown on Table 3-2 in Chapter 3 the textbook to ensure all of the proper information is included when completing the "Business Case Template." Study the "Weighted Decision Matrix Template" results for the project. Assume that the new system must run on existing hardware and software, should require minimal technical support, must be easily accessible by employees, and must be protected from unauthorized users. For the "Analysis of Options and Recommendation" section, consider other possible options if the project is not implemented. For the "Potential Risks" section, consider business risk to the company if the project is not implemented. Be creative in the business case and state any additional assumptions. Part 3: Using the "Project Charter Template," construct a project charter to formalize the project, provide management with information related to the project objectives and management, and provide an explanation of how organizational resources will be used to complete the project. Recall the assumption that the project will take 6 months to complete and have a budget of $130,000. You will be the project manager, and Dr. K. will be the project sponsor. Other team members will include Bobby, Ashok, Kim, and Alfreda. You will conduct four shark tank-like events and you will develop the Global Treps site and application. Review the next-gen DNA-sequencing instrument project charter shown on Table 4-1 in Chapter 4 of the textbook to ensure that you include all of the essential elements of a project charter. Part 4: Complete the "Work Breakdown Structure Template" using the information from the project charter and other relevant information from the Chapter 4 "Running Case." Break the work down to Level 3 or Level 4, as appropriate for the project. Here is the chapter 4   Running Case Note: Additional running cases are provided on the Companion website, including the Manage Your Health, Inc. case from the seventh edition of this text, now with updated tasks based on this edition. Template files are also available on the Companion website. This running case starts here and continues through Chapter 13. Tasks based on this case are explained in the following Tasks section; throughout the book, these tasks will build on work done in previous chapters and scenarios. Economic inequality is a huge issue. A recent study found that the world’s 80 wealthiest individuals own as much as the entire world’s poorest 3.5 billion people. The richest 1 percent of the world’s population control half of the world’s total wealth. Many individuals, corporations, charities, and government agencies have projects and programs in place to attempt to tackle this and other important global issues such as sustainability, but there are many opportunities to do more. A grassroots group of college students has decided to work together to do their part in making the world a better place. The students are from many different countries, and several of them met at global conferences, through study abroad experiences, or on various Internet groups. Strategic goals of this group include developing skills for both college students and for needy populations, sharing information on existing products and services that promote economic growth and sustainability, and promoting entrepreneurship. Leaders of this group were reviewing some ideas for projects (all with a significant IT component) that they could do to support their strategic goals: Global Treps: Many people are familiar with the television show called Shark Tank where entrepreneurs (sometimes called “treps”) present their business ideas to a group of investors or sharks. Several colleges, high schools, and even elementary schools throughout the world hold unique versions of a shark tank like event. You believe that creating a non-profit organization with one central mobile-friendly website/application to assist groups in organizing these types of events would spark even more entrepreneurs throughout the world. You would plan to hold several shark tank like events during the term of the project and create a site and applications to help continue developing more global treps. This site/application would include the following capabilities: Provide guidelines and templates for running a shark tank type of event. Accept donations from potential investors targeted toward specific schools or organizations wishing to host an event (similar to the popular www.donorschoose.org site where people can fund teacher’s requests). Accept ideas for needed new products or services. Provide the ability for organizations to create their own custom site to solicit local participants and sharks, accept applications, and promote the winners as well as losers. Research ideas for a mechanism where a certain percentage of all donations and profits earned by contestants are donated back to the Global Treps organization. Provide an online version of the events by showing videos of contestants and live reactions of the sharks while also getting live inputs and donations from viewers. Change the Laws Campaign: Launch a global campaign to change laws to reduce further income inequality and promote social responsibility. This project would also involve creating a mobile-friendly website/application that would include information about current and proposed laws, allow discussions of potential ideas to change laws, organize people to contact appropriate lawmakers, etc. Wealthy Unite: Develop a system to enable the richest people in the world to provide their input on how they can make the world a better place. Provide information on what several people are currently doing (i.e., Bill Gates, Warren Buffet, famous celebrities, etc.) to promote philanthropy. Allow others to donate to suggested causes and recommend other ways to reduce economic inequality. Global Smart Shoppers: Develop a mobile app and website that recommends products and services produced by organizations that promote social responsibility. Customize the app so it works in any country in the user’s desired language. Work with large companies that do not currently sell products or services in certain countries to expand to regions in need. Allow small companies to easily add their products and services to the shopping network. Tasks 1.Summarize each of the proposed projects using a simple table format suitable for presentation to top management. Include the name of each project, identify how each one supports business strategies, assess the potential financial benefits and other benefits of each project, and provide your initial assessment of the value of each project. Write your results in a one-to two-page memo to top management, including appropriate back-up information and calculations. 2.Evaluate the four projects by preparing a weighted scoring model using the template provided on the Companion website for this text. Develop at least four criteria, assign weights to each criterion, assign scores, and then calculate the weighted scores. Print the spreadsheet and bar chart with the results. Also write a one-page paper that describes this weighted scoring model and the results. 3.Prepare a business case for the Global Treps project. Assume that the project will take six months to complete, use many volunteer hours, and cost about $130,000 for hardware, software, travel, and labor. Use the business case template provided on the Companion website for this text. Be sure to research information on the television show and events held by colleges and other groups, which have been sparked by the need for more successful entrepreneurs. Also visit DonorsChoose.org to see how that site operates and look into steps for forming a non profit organization. 4.Prepare a draft project charter and an assumption log for the Global Treps project. Assume that the project will take six months to complete and have a budget of $130,000. Use the project charter template provided in this text and the sample project charter provided in Table 4-1 as guides. For the assumption log, document at least two assumptions including an assumption ID, date, source, category, description, and status. You will be the project manager, and Dr. K. will be the project sponsor. Other team members will include Bobby, Ashok, Kim, and Alfreda. You plan to hold four shark tank like events plus develop the Global Treps site and application. 5.Start a lessons learned register to document knowledge learned on this project. Include la lessons learned ID, date, source, category, description, impact, recommendations, and proposed actions. Be creative in then making two entries. 6.Prepare a change request for the Global Treps project, using the template provided on the Companion website for this text. Assume that you have decided not to provide an online version of the show as it would be too much work for the initial project. Be creative when making up information.

READ MORE >>

The goal of this project is to: 1. Practice working with the data structures we ...

The goal of this project is to: 1. Practice working with the data structures we have learned this semester. 2. Practice I/O. 3. Use Java APIs in a software project. I uploaded the information and details about this project as PDF file called Lab13-WordFisher. And I need you to work on the java file that I uploaded to you that do not need to create a java file, and also there are specific information tell you what to do at the inside of Java file. For the java files and text files, they are included at Lab13.zip file.

READ MORE >>

   You will provide a comprehensive and detailed manual documenting the step- ...

   You will provide a comprehensive and detailed manual documenting the step-by-step process for building a computer using the components provided in LabSim 14.1: “Build a Computer from Scratch.” The manual will be used by entry-level technicians, so it should be clear, concise, and formatted using the IEEE citation style, with screenshots of each step from LabSim 14.1. Your manual should be similar to step-by-step instructions on How to Change the Oil in Your Car. Note carefully how in this example, not only is each step described individually, and in detail, but also there is a visual representation of each step. You should model your submission along the same lines. Keep in mind that your manual will be used as a guide for new technicians. The manual should not document how to complete a LabSim section; rather, it should provide detailed instructions on how to build an actual computer for a potential customer:

READ MORE >>

   Implement a dictionary using a Bag—Project 4.7 in the text (modified) U ...

   Implement a dictionary using a Bag—Project 4.7 in the text (modified) Use the bag ADT provided to create an array-based implementation for bags. Then use your bag to implement the dictionary ADT provided you. This means you have to implement your dictionary using the bag functions. Test your bag and dictionary implementations with the bagtestmain.cpp file I’ve provided for you. If you are not able to fully implement all the functions of the dictionary and/or bag, you may modify the tests in bagtestmain.cpp to only exercise those functions you were able to complete. You will only get credit for those methods you test and display, so be sure you don’t leave any out.  Also, you cannot add any public functions to your bag and dictionary implementations beyond those specified in the ADTs, though you may add private functions if you want. Put the following files into a zip file named student_name_Bag_Assignment and submit them to Blackboard: - ABag.h   // Your bag-array implementation which must inherit the Bag class - BDictionary.h  // Your Dictionary-bag implementation which must inherit the   // Dictionary class - bagtestmain.cpp  // The test driver I have provided for you - bagADT.h // The bag ADT I gave you – it should be unchanged - dictionaryADT.h // The dictionaryADT I gave you – it should be unchanged - kvpair.h // The kvpair class I gave you – it should be unchanged - Screen Shots   // Word document with screen shot(s) and integrity statements showing  // all of your program’s output. Approach.doc // This is a Word document where you explain how you implemented  // your solution and how you tested each required function. - Any other .cpp and/or .h files that comprise your project (I need all the .cpp and .h files used in your project). - Your_dictionary.exe //Your executable file.*** Note: If your ABag does not inherit Bag and/or BDictionary does not inherit Dictionary, you will not receive any credit for your work. If you use the templates I’ve provided (ABag.h and BDictionary.h) the inheritance is already done for you. *** If you completed your assignment using Visual Studios you must use Visual Studios 2017 and I would like you to submit your entire VS project directory. Your test program must exercise every function of the dictionary. For any function whose functionality is not obvious you must explain in your Word document how your test output demonstrates that function. See me if you have questions. See Blackboard for the assignment due date and the syllabus for the late policy.                     Rubrics (for the 70% content portion): - Program must run in order to get any points. By “run” I mean that you must at least get one or more of the bag methods working (and your program must demonstrate that functionality). Tips for Success Start by working on your “Approach” first. Once you are satisfied with your approach, then start building your program incrementally. Start with the bag and increment one feature at a time (you’ll have to stub out the features the ADT requires that you are not ready to implement yet) starting with the constructors and then working your way down the feature list using common sense to figure out which features need to be implemented first. Try your bag out with the various parameter combinations I want you to test with ( and ). When you are satisfied the bag is working then move on to the dictionary, again implementing and testing function by function. Don’t wait until the last minute. You’ll find that many of your problems you will solve while you are away from your computer and have a chance to think about the error you are seeing. This takes time.  Note: KVpair, which uses the == operator for comparing the key values, will only accept objects that have also implemented the == operator. This class has been tested with the following types: § string § int It specifically does not work with the Int type (at least not in the version of C++ I am working with). Debugging your code A big part of this assignment is debugging your code, so do not expect your instructor to do this for you. Having completed the pre-requisite courses for this class, you should already have some experience finding coding errors and fixing them. This class will give you plenty of opportunities to further refine those skills and you can only do that by wrestling with the problem. Here are some debugging tips: · Build a little, test a little. Don’t write all your code before you start debugging it. Break your work into logical chunks that can be compiled and debugged and build them one at a time. For this project, I would start by building the Bag class and implementing the addItem() function first. Once I get that function working properly, then I would move on to another Bag function. The idea is you build and test a function one function at a time. That way, if you run into an error, you know where to look. · Learn to use the debugger if you haven’t already. The debugger allows you to step through your code one step and a time and see what happens in memory while you’re doing it. When students come to me with problems, I first try to isolate where the problem is logically based on what the program is doing and then I use the debugger to find the actual fault. Here is an excellent video tutorial on the Visual Studios debugger: How to DEBUG C++ in VISUAL STUDIO. · Be willing to walk away from your computer and give your mind a rest. I find that the solution to a problem often comes to me while I am doing something else. I have never regretted stepping away from my computer to let the problem “percolate” in my mind, but I have often regretted not doing this. This is one of the reasons you should never wait till the last minute to start working on your program; by doing that you are not giving yourself the time to walk away.

READ MORE >>

CIS 36A :: LAB 04 - Introducing Classes, Objects and Methods Student Name: Instr ...

CIS 36A :: LAB 04 - Introducing Classes, Objects and Methods Student Name: Instructions: Make a copy of assignment template. Go to File => Make a copy (or download as a Word file.) Complete definitions and attach Snipping Photos where appropriate Place your name in the Title of each Assignment For Example: CIS 36A- Assignment 1 - Basic Concepts -  Irfan O. Use the book or do online research to find answers.  Write your answers using a different font color. Find your own unique color.  Write answers in your own words. DO NOT COPY & PASTE from anywhere. Submission: When done, go to File -> Download as -> Microsoft Word and then upload the file to Canvas.  Task 1: Definitions & Concepts Instructions: Briefly answer the questions below. Keywords: To you best knowledge, describe below words:  class =>   method =>  return  => void =>  this =>   object =>  constructor =>  new =>  What is the difference between a class and an object? =>  How is a class defined? =>  How must a method return if it returns a value? =>  What name does a constructor have? =>  If a method returns no value, what must its return type be? =>  Task 2: Understanding Programming Instructions: Answer each question below. Try to understand and explain the code. Do not put an IDE code screenshot.  Exercise 15: Suppose you have a class MyClass with one instance variable x. What will be printed by the following code segment? MyClass c1 = new MyClass(); c1.x = 3; MyClass c2 = c1; c2.x = 4; System.out.println(c1.x); Explain your answer. =>  Exercise 16: Suppose a class has an instance variable x and a method with a local variable x. If x is used in a calculation in the body of the method, which x is being referred to? =>  Suppose you needed to add the local variable x to the instance variable x in the body of the method. How would you do so? =>  Exercise 17: The following method has a flaw (in fact, due to this flaw it will not compile). What is the flaw? void displayAbsX(int x) {     if (x > 0) {         System.out.println(x);     return;     }    else {         System.out.println(-x);         return;    }    System.out.println(“Done”);  } =>  Exercise 18: Create a method max( ) that has two integer parameters x and y and returns the larger of x and y. =>  Exercise 19: Create a method max( ) that has three integer parameters x, y, and z, and it returns the largest of the three. Do it two ways: once using an if-else-if ladder and once using nested if Statements. =>  Exercise 21: Find all the errors (if any) in the following class declaration: Class MyCla$$ {     integer x = 3.0;     boolean b == false     // constructor     MyClass(boolean b) { b = b; }     int doIt() {}     int don’tDoIt () { return this; } } =>  Task 3: Programming Exercises Instructions: Use any IDE to write and execute below exercises from the book chapter 3. Attach Snipping photos of your source code and execution of the code in the console. Make sure to create separate files for each exercise. Chapter Examples: Follow the lectures to do below programs with the instructor.   Day 1: MethodDemo  Day 2: The last version of your VehicleDemo class Create a BankAccount class with one integer instance variable called balance. Create a constructor with no initial parameters.  Create three methods: one for deposit, one for withdrawal, one for get balance.  TRY THIS TRY THIS 4-1 (Do not submit this): TRY THIS 4-2: Chapter Exercises: Do the following chapter exercises. Exercise 13: Die, DieDemo Exercise 14: Car, CarTester Exercise 22: Swapper Exercise 24: USMoney Exercise 25: Date Exercise 26: DoIt

READ MORE >>

Transform the data model to physical model (database design). Note: a. Draw the ...

Transform the data model to physical model (database design). Note: a. Draw the entity-relationship diagram (ERD) in Crow’s foot notation using MS Visio 2013 2. Transform the physical model/database design to an actual database using MS Access 2013 for all tables and relationships

READ MORE >>

   Please answer the following questions: 1. As the Big Data ecosystem ta ...

   Please answer the following questions: 1. As the Big Data ecosystem takes shape, there are four main groups of players within this interconnected web. List and explain those groups. 2. How the data science team evaluate whether the model is sufficiently robust to solve the problem or not? What are the questions that they should ask? 3. Explain the differences between Hexbinplot and Scatterplot and when to use each one of them. 4. k-means does not handle categorical data? 5. local retailer has a database that stores 10,000 transactions of last summer. After analyzing the data, a data science team has identified the following statistics: ? {battery} appears in 6,000 transactions. ? {sunscreen} appears in 5,000 transactions. ? {sandals} appears in 4,000 transactions. ? {bowls} appears in 2,000 transactions. ? {battery, sunscreen} appears in 1,500 transactions. ? {battery, sandals} appears in 1,000 transactions. ? {battery, bowls} appears in 250 transactions. ? {battery, sunscreen, sandals} appears in 600 transactions. Answer the following questions: a. What are the support values of the preceding itemsets? b. Assuming the minimum support is 0.05, which itemsets are considered frequent? 6. Linear regression is an analytical technique used to model the relationship between several input variables and a continuous outcome variable. Linear regression can be used in business, government, and medical. Explain by example how it can be used in those domains. 7. Which classifier is considered computationally efficient for high-dimensional problems? Why? 8. Define the following time series components: ? Trend ? Seasonality ? Cyclic ? Random

READ MORE >>

  As a staff member at Blue Lake Sports Company, you are expected to prepare t ...

  As a staff member at Blue Lake Sports Company, you are expected to prepare the monthly sales worksheet. You edit and format data, complete calculations, and prepare the workbook for distribution. You also copy the sheet for next month’s data. [Student Learning Outcomes 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.8] File Needed: BlueLakeSports-01.xlsx (Available from the Start File link.) Completed Project File Name: [your name]-BlueLakeSports-01.xlsx Skills Covered in This Project Open and save a workbook. Choose a workbook theme. Edit and format data. Center labels across a selection. Use SUM and the Fill Handle. Adjust column width and row height. Insert a header and a footer. Adjust page layout options. Copy and rename a worksheet. Open the start file BlueLakeSports-01.xlsx workbook. The start file will be renamed automatically to include your name. Change the file name if directed to do so by your instructor and save it. If the document opens in Protected View, click the Enable Editing button in the Message Bar at the top of the document so you can modify it. Apply the Slice theme to the worksheet. Edit worksheet data. Edit the title in cell A2 to display Monthly Sales by Department. Edit cell D6 to 1950. Select cells A1:F2 and click the Alignment launcher [Home tab]. Click the Horizontal arrow, choose Center Across Selection, and click OK. Select and delete row 8. Use the Fill Handle to complete a series. Select cell B3. Use the Fill Handle to complete the series to Week 4 in column E. AutoFit columns C:E to display the complete label. Use SUM and the Fill Handle to calculate totals. Use the AutoSum button to build a SUM function in cell F4. Use the Fill Handle to copy the formula in cell F4 to cells F5:F16. Delete the contents of cell F17 if you copied the formula to that cell. Select cells B17:F17 and click the AutoSum button. The SUM formula is inserted, and a Quick Analysis options button appears (Figure 1-98).Figure 1-98 AutoSum complete with Quick Analysis button Press Esc to ignore the Quick Analysis options. Format labels and values. Select cells A1:A2 and increase the font size to 18. Increase the row height of rows 1:2 to 24 (32 pixels). Format cells A3:F3 as Bold and increase the row height to 18 (24 pixels). Center the data in cells B3:F3. Format cells B4:F16 with Comma Style and decrease the decimal two times. Select cells B17:F17 and apply the Accounting Number Format with no decimal places. Apply the All Borders format to cells A3:F17. AutoFit columns B:F. Finalize the worksheet. Click the Insert tab and click the Header & Footer button [Text group]. In the right header section, insert the Sheet Name field. Go to the footer and click the right section. Type [your first and last name] (Figure 1-99).Figure 1-99 Add a footer in Page Layout view Click a cell in the worksheet and then return to Normal view. Center the worksheet horizontally on the page. Copy and rename a worksheet. Right-click the January sheet tab and choose Move or Copy. Make a copy of the sheet at the end. Rename the copied sheet February. Format the February sheet tab color to Dark Blue, Accent 1 (fifth column). Delete the values in cells B4:E16 and press Ctrl+Home. Return to the January sheet and press Ctrl+Home. Preview the January sheet. Save and close the workbook (Figure 1-100).Figure 1-100 Excel 1-4 completed Upload and save your project file. Submit project for grading.

READ MORE >>
QUICK ORDER

Place a Quick Order

Our verified writers got you covered. Let us help you balance between studies, work, and family.

We provide our assistance to the numerous clients looking for a professional writing service.

Order Now
Designed and developed by Brian Mubichi (mubix)
WhatsApp