Write a Java Program that repeatedly enters a date and prints the day of the week that



Q Write a Java Program that repeatedly enters a date and prints the day of the week that corresponds to each input date. 



Use a Calendar class object to find the day of week. 



Prompt the user appropriately for inputs

Test Driven Development



Test Driven Development

Use the attached JUnit test (CounterTest) to simulate a Test Driven Development environment. 
Place the test class into a project, and write a class so that the test compiles. 
Run the test, and modify your class until it passes the first test. 
Uncomment the next test, and modify your class until it passes that test.
Repeat this process until your class support all of the tests in the test class.

Second Part
Filtering Data JUnit Tests
MeasurableSet JUnit Tests



Write JUnit test methods for the starter code given in the Filtering Data exercise of the Abstract Classes and Interfaces lesson.  (Use the class I provided as starter code.) (Measurable, FilteredData)  Identify, list with a brief description, and write test cases for several equivalence categories.  For example, one category is a data set having no elements added to it.  Be sure to test all important methods.

A+ Answers



The following analysis attempts to determine if there is a statistically significant linear relationship between the number of international stores and the annual international sales revenue for the Phoenix Mart company, during the years 1995 through 1998.

The following data was collected from a report titled “Taking Wal-Mart Global: Lessons From Retailing's Giant” (Govindarajan, Gupta, 2002). The data collected for the given years is summarized in the following table:

Year
Number of International Stores
International Sales (Billions)
1995
226
1.511
1996
276
3.712
1997
314
5.002
1998
601
7.517

The following scatterplot shows the relationship between the two variables, along with a trendline representing the best-fit linear model, the linear regression equation for that model, and the coefficient of determination value.

Calculations Shown



Elizabeth Egbert owns a galvanizing plant.  Customers bring in their fabricated steel products (like light poles, towers, trailers, etc.), and Egbert dips them into a heated vat of molten zinc.  The zinc bonds to the metal and produces a highly durable corrosion resistant product.


Egbert's primary inventory is molten zinc purchased from suppliers in large blocks of solid material.  These blocks are immersed in the heated vat and will melt together with the zinc already in the pool.  Egbert generally keeps the vat relatively full, and it is never allowed to cool.
Egbert started the year 20X8 with 500,000 pounds of zinc in the pool.  During the year Egbert purchased 2,800,000 pounds of zinc.  At year's end, the pool contained 520,000 pounds of zinc.
(a) How much zinc was used during 20X8?
(b) Accountants frequently refer to "goods available for sale."  Is this concept the same as ending inventory?  How much zinc, in pounds, was "available for sale?"
(c) If the beginning inventory cost $1.25 per pound, and purchases during 20X8 cost $1.50 per pound, how much is the "cost of goods available for sale"?
(d) In preparing financial statements for 20X8, to what financial statement elements will the amount you calculated in part (c) be allocated?
(e) If Egbert uses FIFO, how much should be attributed to ending inventory and how much to cost of goods sold?
(f) If Egbert uses LIFO, how much should be attributed to ending inventory and how much to cost of goods sold?
(g) What will be the difference in profitability between choosing the FIFO and LIFO methods?  Does is seem reasonable the choice of accounting method can change the reported profit?

******* Partial information follows about net sales, net purchases, cost of goods sold, gross profit, total expenses, and net income for Slabaugh Company.  Compute the missing values.
     
 NET SALES    
   Sales    $        800,000  
   Sales discounts                20,000  
   Sales returns and allowances                45,000  
   Net sales              735,000  
        
 NET PURCHASES    
   Purchases    $        400,000  
   Freight-in                20,000  
   Purchase discounts                 4,000  
   Purchase returns and allowances               2,500  
   Net purchases              413,500  
        
 COST OF GOODS SOLD    
   Beginning inventory    $          85,400  
   Ending inventory                74,500  
   Cost of goods sold              424,400  
        
 GROSS PROFIT    
   Gross profit              310,600  
        
 TOTAL EXPENSES    
   Rent    $          36,000  
   Salaries              145,700  
   Utilities                12,300  
   Freight-out                24,100  
   Other                24,100  
   Total expenses              242,200  
        
 NET INCOME    
   Net income                68,400  
        
     
******** Dine-Corp International publishes ratings and reviews of the world's finest restaurants.  Following are facts you need to prepare Dine-Corp's March bank reconciliation:
  
Balance per company records at end of month  $       72,644.12  
Bank service charge for the month                 44.00  
NSF check returned with bank statement            1,440.66  
Note collected by the bank during the month          45,000.00  
Outstanding checks at month end          31,553.57  
Interest on note collected during the month            4,500.00  
Balance per bank at end of month         144,223.99  
Deposit in transit at month end            7,989.04  

java



Q Following is a small java assignment please do it in java (if not too hard also in java script)



Read the following data from a file:



Executive,Mr,Moshe,Roth,250000

Supervisor,Mr,Chaim,Stark,150000

Supervisor,Mr,Moshe,Spira,160000

Manager,Mr,Yehuda,Gold,120000

Manager,Mrs,Miriam,Weiss,120000

Employee,Mr,Shlomo,Green,65000

Employee,Mrs,Ester,Silver,75000

Employee,Mr,Yakov,Weiser,70000



Put all the records in to appropriate objects

Put all the objects in to a data structure

Loop through the data structure and print out (on screen)

Title,First Name, Last Name, Bonus (in currency format)

The bonus being the following rules:

Executive – 20% of salary

Supervisor – 10% of salary

Manager – 8% of salary

Employee – 5% of salary

Ex. Mr,Moshe,Roth,$50,000.00

Exam: 500497RR - Planning a Research Paper and Evaluating Sources




Exam: 500497RR - Planning a Research Paper and Evaluating Sources

1. Benet's Reader's Encyclopedia, The Oxford English Dictionary, and Roget's Thesaurus are all considered 

A. peer-reviewed compendiums. 

B. secondary sources. 

C. reference works. 

D. trade references. 

2. Using _______ searches in digital articles can help you locate topics you're researching.

 A. database

 B. index

 C. citation

 D. keyword 

3. Which type of writing assignment would benefit the most from the use of outside sources such as scholarly works or reference works?

 A. An essay about your grandmother's immigration to the United States

 B. An essay describing your first car 

C. An informative essay about the development of steam engines 

D. The first act of a play about Taylor Swift 

4. When writing a research paper about a specific event, you can use sources to 

A. create an outline or graphic organizer. 

B. compare information about similar events. 

C. narrow the thesis. 

D. explain the topic.

 5. Which of the following is probably not going to be found in a popular source?

 A. Interviews 

B. Opinion pieces and editorials 

C. In-depth evaluations of specialized topics

 D. Articles of general interest 

6. When the instructions for a writing assignment ask you to explore or explain a topic, the purpose of the assignment is most likely 

A. persuasive. 

B. argumentative. 

C. informative. 

D. figurative. 

7. Which of the following is an example of a secondary source? 

A. A novel by Pearl S. Buck 

B. A biography of Pearl S. Buck

 C. Pearl S. Buck's letters to her editor 

D. An interview with Pearl S. Buck

 8. Which of the following is not typically considered a criterion for determining whether or not you would choose a particular source? 

A. Your audience 

B. Previous citations 

C. The genre of the source 

D. Your purpose for writing 



9. In general, a source that claims to summarize research or provide facts would not be considered reliable if it 

A. cites only secondary sources. 

B. is written by a popular author.

 C. uses charts or other visuals. 

D. does not provide a list of works cited. 

10. After being assigned a research project, Jessica immediately sets out to choose an interesting and workable topic. Gene launches immediately into seeking out appropriate sources. Which one is following the correct procedure for planning a research paper?

 A. Both Jessica and Gene are correct. 

B. Only Jessica is correct. 

C. Neither Jessica nor Gene is correct. 

D. Only Gene is correct.

 11. Publications geared toward audiences made up of people in specific professions are called

 A. general-interest nonfiction books. 

B. popular sources.

 C. trade journals. 

D. reference works.

 12. You know a potential source is relevant if it A. is both persuasive and fair. B. is reliable and unbiased. C. answers one or more of your research questions. D. provides both historical and current information. 

13. Which of the following is an example of a primary source? 

A. A journal article that reviews various reports on Abraham Lincoln 

B. A website that tells stories about Abraham Lincoln 

C. Abraham Lincoln's letters 

D. A biography of Abraham Lincoln 

14. Eric and Heather are choosing a topic for their research paper. Eric will choose a topic that he knows can be covered adequately in his five-page paper. Heather will choose a topic about a current news event. Who is choosing a workable topic?

 A. Only Eric

 B. Only Heather 

C. Both Eric and Heather 

D. Neither Eric nor Heather 

15. Which of the following would not be considered a secondary source? 

A. Letters, diaries, or speeches

 B. Journal articles that review previously published research reports 

C. A nonfiction history of the Civil War 

D. A biography 

16. The author of a source would probably not be considered reliable if he or she 

A. states a strong opinion.

 B. ignores opposing views.

 C. includes information that doesn't fit his or her opinion. 

D. specializes in a particular field. 

17. Jonathan is writing a research paper about African migrants seeking refuge in Europe. Rather than simply write that "the number of migrants has increased dramatically over the past four years," he would most likely need to use information from sources to

 A. compare information about similar events.

 B. reinforce his opinion with concrete evidence. 

C. make his general comment more specific.

 D. eliminate bias. 

18. While _______ may provide interesting sources for a particular point of view, many are heavily biased and/or contain factual errors.

 A. popular magazines 

B. blogs 

C. trade journals 

D. abstracts. 

19. Most scholarly journals are published

 A. quarterly. 

B. semi-annually. 

C. monthly.

 D. annually.

 20. While evaluating Internet sources, John questions the reliability of articles that contain

 A. highly charged, emotional language. 

B. charts, tables, or other visuals. 

C. background information about the author. 

D. citations from primary sources.

A passive verb is a good choice if you wish to



Questions 1 to 20: Select the best answer to each question.


1. A passive verb is
A. the same as an intransitive verb.
B. always formed in the past tense.
C. always formed in the future tense
D. constructed from a form of the verb to be combined with a past participle.
2. Which sentence should be edited to eliminate its cliché?
A. The family was immensely relieved when Great-Aunt Martha's condition progressed from "critical" to "it looks like she'll live another 10 years."
B. The texture of the burlap was a cross between woven straw and a three-day beard.
C. Striding toward the barn in her red coverall and bucket hat, Gloria—tall and round—gave the impression of a charging silo.
D. I wanted to hire Dave, but a chain is only as strong as its weakest link.
3. Which of the following sentences contains a redundancy?
A. At no time did Tony indicate a willingness to admit defeat.
B. Chris had trouble working up even mild enthusiasm for Mike's plan.
C. Steve admired the partially completed stadium.
D. Emily's sister gave birth to two twins.
4. Which of the following sentences contains a correlative conjunction?
A. Either Maria will pick up the birthday cake, or her brother Shawn will stop by the bakery.
B. Neither of us wanted to tell our mother about the cost of a computer upgrade.
C. You don't need to buy a new cell phone, nor should you.
D. Scotland may vote to break away from the United Kingdom, or it will remain within the union.
5. A passive verb is a good choice if you wish to
A. deemphasize the subject.
B. emphasize the subject.
C. establish a formal tone.
D. establish a casual tone.
6. Which of the following is the correct form of punctuation to use when using a conjunctive adverb to create a compound sentence?
A. Dash B. Comma
 C. Semicolon
D. Colon
7. Paragraphs that use _______ diction tend to use first and second person pronouns and shorter, less varied sentences.
A. popular
B. compound
C. colloquial
D. informal
8. Which of the following sentences uses parallelism effectively?
A. The large plant-eating dinosaurs were quite slow, rather stupid, and extremely hungry.
B. The report was good because it was factual and offered many details.
C. The Red Sox fans screamed, yelled, and were applauding wildly.
 D. Laura spent all her time gardening and arranging flowers, when she wasn't in a shoe store to shop.
9. Both Ada and Phil are evaluating their thesis statements, topic sentences, and evidence. If Ada finds that her essay doesn't have a thesis statement identifying the topic of the essay, she will reread the essay to determine the main point of the essay. If Phil finds that his essay lacks evidence to support his thesis statement, he will do additional research to find substantial evidence. Who is correctly evaluating and revising his or her essay?
A. Only Ada
B. Only Phil
C. Neither Ada nor Phil
D. Both Ada and Phil
10. When revising an essay, it's a good idea to write down a sentence stating what your essay is about. If you can't summarize it in one sentence, your essay
A. isn't directed toward its intended audience.
B. lacks evidence to support your thesis.
C. lacks essential background information.
D. probably lacks a clear purpose.
11. Contractions, slang, short sentences, and sentence fragments are all characteristic of _______ diction.
 A. non-academic
B. informal
C. conventional
D. popular
12. How many independent clauses are included in a simple sentence?
A. None
B. One
C. Two
D. Three
13. Pablo insists that a conclusion should reinforce the thesis statement. Patrice says that the conclusion should follow logically from the introduction. Who is correct?
A. Both Pablo and Patrice are correct.
B. Only Pam is correct.
C. Neither Pablo nor Pam is correct.
D. Only Pablo is correct.
14. Which of the following techniques would be best used to present constructive feedback on a draft of an essay to a peer?
A. Rewrite sections for your peer
B. Point out the negative aspects so your peer can improve
C. Only write notes on the things you like about it
D. Concentrate on content and the message of the paper
15. Which of the following statements is true about an independent clause?
A. It contains only a verb, not a subject.
B. It begins with a subordinating conjunction.
C. It can't stand alone.
D. It can stand alone as a complete sentence.
16. Which of the following sentences contains one or more strong, active verbs?
A. The phone directory was hastily searched by Conrad.
B. It was believed by some that Conrad's father had been a war hero.
C. Conrad trembled with anxiety and anticipation as he pressed Denise's doorbell.
D. Having been away in London for two years, Conrad was happy to see Denise.
17. What is the purpose of varying the order of subjects, verbs, and modifiers in different sentences within a paragraph?
A. To indicate emphasis where it's needed
B. To supply background detail for readers unfamiliar with a topic
C. To support the topic sentence
D. To provide necessary evidence to support a thesis
18. Balancing a sentence through using words or phrases that have the same grammatical structure is
known as
A. correlation.
B. compound sentencing.
C. subject-verb agreement
D. parallelism.
19. Which of the following is a complex sentence?
A. We didn't have enough potatoes for dinner, so we served rice instead.
B. After Henry submitted his essay, he realized that he hadn't proofread the last page.
C. Jim tried to watch a video on a device connected to a crowded wireless network; as a result, the video stuttered and froze.
D. identity theft is a growing problem, especially among seniors.
20. A _______ can be used for both organizing and revising an essay.
A. graphic organizer
B. flowchart
C. topic sentence
D. verbal sketch