Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can you help me to write the little spider Tableau pile test code by following s

ID: 3757219 • Letter: C

Question

Can you help me to write the little spider Tableau pile test code by following steps?

Tableau pile tests: [36 points]

Tableau piles in Golf initially hold 5 cards [4 points]

Tableau piles in Little Spider initially hold 6 cards [4 points]

Golf tableau pile correctly determines if adding a specific card is legal or illegal (e.g., the method should always return false) [4 points]

Little Spider tableau pile correctly determines if adding a specific card is legal or illegal [4 points]

Golf tableau pile correctly returns if removing top card is legal or illegal (e.g., if the tableau pile is NOT empty) [4 points]

Little Spider tableau pile correctly returns if removing top card is legal or illegal (e.g., if the tableau pile is NOT empty) [4 points]

Adding card to Little Spider's tableau pile increases its number of cards and results in that card being the tableau pile's new top card [4 points]

Removing card from Golf tableau pile decreases its number of cards and results in following card being the new top card [4 points]

Removing card from Little Spider's tableau pile decreases its number of cards and results in following card being the new top card [4 points]

These are the codes i write, i need a testing program to go through these pictures.

eclipse-workspace CSE116 Project 1/src/spider/littleSpiderAddcard.java tclipse Eile Edit Soue Relactor Navigate Seach rojet un Wirdow Help Quick Access|: |4, h project Explorere a littlespiderAddc 1 package spider; littlespiderRemo nittlespidersetu -/ littlespidervalue. Deck avan Cardja alf pleja a Deckiest aa littlespidert CSE115 G CSE115 2018 3 import java.util.frrayList; csc116 CSF116 Projert1 public class littlespiderAddcardf spider Cald.java 9 public littleSpider AdCad Card card, ArrayList pile) for (Card tahleauPilrpile) if (tableauPile.equals(pile.get (o))) > littleSpiderRemove java int cardHanking-card, getkank(); int tablrauCardRanking -card.eRankO; if Larundriking-- (tableauCardRenking + 1) Il cerdRenking--(tableeuCardRanking -1)) { tUp.java littlespiderValue java Pile.java ArrayList nenList- neN ArrayLists> newl ist.add(card) JRE System Library [test eJava tost labs Froject1 Project 21 w S18SemesterProjectlf18semesterprojectat 24 } JRE System Library Itest] 25 rnde Cardjava Deckjava > Pile.java StockPile.java tests CardTest.java DockTestjava stockpile lestjava Durrimy.txt minutes Writable Smart Insert 251 ^1x ENG 2018/9/29 22:42

Explanation / Answer

import scrapy

class ShopcluesSpider(scrapy.Spider):

#name of spider

   name = 'shopclues'

   #list of allowed domains

   allowed_domains = ['www.shopclues.com/mobiles-featured-store-4g-smartphone.html']

   #starting url

   start_urls = ['http://www.shopclues.com/mobiles-featured-store-4g-smartphone.html/']

   #location of csv file

   custom_settings = {

       'FEED_URI' : 'tmp/shopclues.csv'

   }

   def parse(self, response):

       #Extract product information

       titles = response.css('img::attr(title)').extract()

       images = response.css('img::attr(data-img)').extract()

       prices = response.css('.p_price::text').extract()

       discounts = response.css('.prd_discount::text').extract()

       for item in zip(titles,prices,images,discounts):

           scraped_info = {

               'title' : item[0],

               'price' : item[1],

               'image_urls' : [item[2])], #Set's the url for scrapy to download images

               'discount' : item[3]

           }

           yield scraped_info

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote