Questions
Tony’s favorite memories of his childhood were the times he spent with his dad at camp....

Tony’s favorite memories of his childhood were the times he spent with his dad at camp. Tony was daydreaming of those days a bit as he and Suzie jogged along a nature trail and came across a wonderful piece of property for sale. He turned to Suzie and said, “I’ve always wanted to start a camp where families could get away and spend some quality time together. If we just had the money, I know this would be the perfect place.” On November 1, 2022, Great Adventures purchased the land by issuing a $500,000, 6%, 10-year installment note to the seller. Payments of $5,551 are required at the end of each month over the life of the 10-year loan. Each monthly payment of $5,551 includes both interest expense and principal payments (i.e., reduction of the loan amount).

Late that night Tony exclaimed, “We now have land for our new camp; this has to be the best news ever!” Suzie said, “There’s something else I need to tell you. I’m expecting!” They decided right then, if it was a boy, they would name him Venture.

1) Prepare the journal entries for transactions. (If no entry is required for a particular transaction/event, select "No Journal Entry Required" in the first account field.)

  • Record the issuance of the long-term note payable for the purchase of land on November 1, 2022.

  • Record the first monthly payment on the long-term note payable, made on November 30, 2022.

  • Record the second monthly payment on the long-term note payable, made on December 31, 2022.

  • The 12 monthly payments in 2023 (following year) will reduce the note's balance by an additional $38,014. Record the reclassification of this amount from long-term notes payable to current notes payable.

  • Prepare the closing entry for revenue accounts.

  • Prepare the closing entry for expense and loss accounts.

2) Prepare an income statement for the period ended December 31, 2022. Choose the appropriate accounts to complete the company's income statement. The unadjusted or post-closing balances will appear for each account, based on your selection.

3) Prepare a classified balance sheet as of December 31, 2022. Choose the appropriate accounts to complete the company's balance sheet. The unadjusted or post-closing balances will appear for each account, based on your selection.

In: Accounting

CASE STUDY 3 Febrile Seizure Abby is a 1-year-old girl who presents after a reported seizure...

CASE STUDY 3

Febrile Seizure

Abby is a 1-year-old girl who presents after a reported seizure at daycare.

Subjective Data

Fever for 1 hour

Eating and drinking normally per mother

Objective Data

Vital signs: T 40, HR 160, R 44, BP 104/68

Awake and alert

Skin hot to touch, otherwise normal physical examination

A. How should the nurse respond to Abby’s mother when she asks if Abby has epilepsy?

B. How should the nurse respond to Abby’s mothers question about brain damage?

C. In this clinical situation what should the nurse do?

CASE 4.

Distal Radius and Ulnar Fracture (Buckle)

Billy is a 10-year-old boy who presents with an obvious deformity to his right forearm. Billy fell on his arm while playing soccer 15 minutes before admission.

Subjective Data

Complains of pain to right forearm

States he is able to feel sensation to right hand

Denies any numbness or tingling to upper right extremity

Objective Data

Vital signs: T 36.8, P 110, RR 28, BP 122/60

Right radial pulses is strong to palpation

Capillary refill to right hand brisk <2 sec

Last PO intake 8 hours ago

A. What complications is Billy at risk for from a fracture?

B. What measures might have helped prevent this injury?

C. What should the nurse do in this clinical situation? Prioritize actions.

CASE 5.

Type 1 Diabetes Mellitus

Susan is an 8-year-old girl who has been brought to her pediatrician by her mother for a weight loss of 5 pounds over the past 2 months despite an increased food intake.

Subjective Data

Complains of thirst

Complains of hunger

Complains of frequent voiding

Objective Data

Today’s Weight: 25 kg

Weight from physical examination 6 months ago: 27.3 kg

Finger stick glucose: 325

HbA1c: 9.1

UA: glycosuria

pH 7.34

Father diagnosed with type 1 diabetes at age 8

A. Will Susan require hospitalization?

B. Susan plays after-school sports; will she have to stop these activities?

C. What should the nurse do in this situation? Prioritize actions.

NO PHOTOS PLEASE

In: Nursing

Using the following definition to determine if the child in each case study has a mental...

Using the following definition to determine if the child in each case study has a mental disorder. If there’s not enough information in the case study, identify any other information you would need to determine if he or she meets the DSM-5 definition: A mental disorder is a syndrome characterized by clinically significant disturbance in an individual’s cognition, emotion regulation, or behavior that reflects a dysfunction in the psychological, biological, or developmental processes underlying mental functioning. Mental disorders are usually associated with significant distress or disability in social, occupational, or other important activities. An expectable or culturally approved response to a common stressor or loss, such as the death of a loved one, is not a mental disorder. Socially deviant behavior (e.g., political, religious, sexual) and conflicts that are primarily between the individual and society are not mental disorders unless the deviance or conflict results from a dysfunction in the individual, as described above.

Margaret wets the bed at night. Her parents discover her wet the next morning and spend a great deal of time and energy washing her pajamas and bedding. _______________

Shawn is afraid to ride elevators. Every time he is in an elevator, he experiences intense feelings of panic. He tries to avoid elevators whenever he can. ____________________

Charlotte is a teenage girl whose father died of a heart attack. Charlotte isn’t eating or sleeping well. She can’t concentrate on her homework or activities at school. Sometimes, at night, she talks with her father about her day before she falls asleep. She also thinks a lot about death. _____________________

Jordan was slow to reach many developmental milestones, including sitting up and walking. Most striking are Jordan’s marked delays in language. He has limited vocabulary, struggles to recite the alphabet or recognize letters, and has difficulty counting. He also has problems performing self-care tasks typical of children his age, such as dressing, bathing, and grooming. ___________________

Corey is an 8-year-old boy who shows significant problems with hyperactivity and impulsiveness at home. “Corey is always on the go. Watching him tires me out,” his mother reported. Corey has difficulty remaining seated during meals, constantly fidgets with objects around the house, talks incessantly, and engages in high-rate behavior. “He’s very impulsive,” she added. _____________________

In: Psychology

Your client, Ben McDonald, has written you about his tax situation. Please assume that gross income...

Your client, Ben McDonald, has written you about his tax situation. Please assume that gross income is $172,900 (which consists only of salary) for purposes of this problem.

December 31, 2016

Dear ***** *****, CPA:

Hi, it’s Ben McDonald again. I understand you need some more information from me in order to complete my tax return. Please let me know what information you need and I’ll be happy to provide it.

I moved this year due to taking a job at SwissLog. The move was in late January and I worked my job at SwissLog for the rest of the year. I moved 650 miles away from my old house but I still live in the same state. I left a little bit early to go on a house-hunting trip that cost me a total of $450. I hired a moving company to move our stuff at a cost of $2,300, and I drove Junior in my car. Junior and I got a hotel room along the way that cost us $65. We spent $35 on meals on the way to our new home. Oh yeah, I took my little boy to a movie on the way and that cost $20.

Can you believe I’m still paying off my student loans, even after 15 years? I paid a total of $900 in interest on my old student loans this year.

Since SwissLog (my employer) never started a retirement plan, I decided I should probably start saving for my golden years. I contributed $3,000 to what the bank referred to as a regular IRA (or was it a REM?). Oh yeah. I also did a little investing this year. I bought a limited partnership interest in IGlow, Ltd. for $10,000. I thought it was going to be a real winner, but this year they took a bath. My portion of the loss was $8,000. Well, at least I did not actually do any work for IGlow, and I get the tax deduction - right?

That should be all the information you need right now. Please calculate my adjusted gross income and complete page 1 of Form 1040. You’re still doing this for free, right?

Sincerely,

Ben

Required: calculate Ben’s AGI and complete the 1st page of the 1040 form (forms can be downloaded from the IRS website).

In: Accounting

Provide positive feedback: Pay-for-Performance Link. Based on your understanding of linking organization strategy to compensation and...

Provide positive feedback:

Pay-for-Performance Link. Based on your understanding of linking organization strategy to compensation and performance management, as discussed in Chapter 9, discuss how to strengthen the pay-for-performance link.

Powerful incentives can cause undesired behaviors. Suggest ways to solve this problem, using something you know a great deal about – academic performance.

Oooh, fascinating question! At the end of last year I read Smartest Kids in the World by Amanda Ripley. One of the stories a South Korean boy killed his mom and hid her corpse in their apartment for months. He was under so much stress about his high school graduation exams and had so much pressure to preform well for his family that he snapped. That would be pretty extreme in the US.  

Here I would expect cheating if incentives became too high. Maybe it would be in the form of buying paper. Maybe it would be in the form of parents bribing administrators or admissions counselors.

To promote ethical behavior teachers could try to promote class unity by recognizing accomplishments in a way that does not pit students against each other in competition. Maybe schools could offer teaching classes on ethics. Maybe they could lower the incentives or increase punishments for fraud and cheating.

How would you design a pay-performance system that uses powerful incentives to motivate behavior, yet keep the behavior from veering into the unethical? (Hint: You want to keep the powerful incentive effect of pay. So don’t recommend eliminating incentive pay or reducing the size of the incentive component.) What’s left?

We could try increasing the punishments for unethical behavior. We could do things to promote group unity or at least keep students in pairs - oh but I had group projects. We could try peer reviews to verify that those who are receiving top incentives deserve them honestly.  

   How do you ensure ethical behavior?

My first thought is to hire ethical employees. Another thought is to encourage ethical behavior from the top down and to be quick to remove anyone caught committing fraud. At the end of the day, I don't think we can totally ensure other people's ethical behavior.

In: Finance

Instructions Please respond to the following questions in essay format; (number each response so I know...

Instructions
Please respond to the following questions in essay format; (number each response so I know which person you are referring to). Your response must be at least 250 words in length (standard margins, 12pt Times font). The format of your response must include headings for each topic listed below. You may include information about your own personal experience, information from the book, and empirical research that you have found from a legitimate research journal (NOT Wikipedia or other similar sites). Please review the information on the syllabus about how to find an empirical research article if you choose to incorporate this.

Topic
Vignettes Human Development
Around what age is each of the following individuals? How do you know? What concepts are they displaying? According to Eric Erikson’s stages of development, which stage of development is each person in and what are the characteristics of that stage?

Kelly needs a lot of sleep these days- about 9-10 hours per night, especially on the weekends! Most of the time however, she doesn’t get enough sleep during the week because she’s up late studying. She is spending more time with her friends and not as much time with her parents and her mom is feeling frustrated with this change. Kelly is also very concerned about what others think of her and always worries that they are watching her and that she is the center of attention everywhere she goes.

Joshua just learned how to walk! His parents watched in amazement as he learned to lift his head, then chest, then the rest of his body. He was a determined crawler and is a curious boy, playing with toys and putting them in his mouth. Now he is more interested in whatever his dad is doing, turning nobs on his dad’s stereo as his father does.

Maria has noticed some difficulties with her memory lately. She takes longer to recall events and form words to explain stories. Maria tends to remember the positive interactions she has with her friends these days and enjoys going on walks with them when she has energy. When Maria thinks about her life, she feels a sense of accomplishment and values her small circle of family and friends.

In: Psychology

Please use the books database pasted under question 4 to design the following SQL queries. Use...

Please use the books database pasted under question 4 to design the following SQL queries. Use any method such as subqueries, equi-join/inner-join, outer join, EXISTS

1. Find the name(s) of the publisher(s) who have published the computer book.

2. Find the name(s) of the author(s) that have authored more than one books.

3. Find the name(s) of the publisher(s) who published the least expensive book.

4. Find the name(s) of the author(s) who wrote the book with the greatest number of pages.

DROP TABLES IF EXISTS Artists,Genre, Members, Titles, Tracks,SalesPeople,Studios,XrefArtistsMembers;
DROP TABLES IF EXISTS Authors,Publishers,Titles,Title_Authors,Royalties;
DROP TABLES IF EXISTS Products,Customers,Orders,Order_details;
DROP TABLES IF EXISTS Sailors,Boats,Reserves;

CREATE TABLE Authors
  (
  au_id    CHAR(3)     NOT NULL,
  au_fname VARCHAR(15) NOT NULL,
  au_lname VARCHAR(15) NOT NULL,
  phone    VARCHAR(12)         ,
  address  VARCHAR(20)         ,
  city     VARCHAR(15)         ,
  state    CHAR(2)             ,
  zip      CHAR(5)             ,
  CONSTRAINT pk_Authors PRIMARY KEY (au_id)
  );

CREATE TABLE Publishers
  (
  pub_id   CHAR(3)     NOT NULL,
  pub_name VARCHAR(20) NOT NULL,
  city     VARCHAR(15) NOT NULL,
  state    CHAR(2)             ,
  country  VARCHAR(15) NOT NULL,
  CONSTRAINT pk_Publishers PRIMARY KEY (pub_id)
  );

CREATE TABLE Titles
  (
  title_id   CHAR(3)      NOT NULL,
  title_name VARCHAR(40)  NOT NULL,
  type       VARCHAR(10)          ,
  pub_id     CHAR(3)      NOT NULL,
  pages      INTEGER              ,
  price      DECIMAL(5,2)         ,
  sales      INTEGER              ,
  pubdate    DATE                 ,
  contract   SMALLINT     NOT NULL,
  CONSTRAINT pk_Titles PRIMARY KEY (title_id)
  );

CREATE TABLE Title_Authors
  (
  title_id      CHAR(3)      NOT NULL,
  au_id         CHAR(3)      NOT NULL,
  au_order      SMALLINT     NOT NULL,
  royalty_share DECIMAL(5,2) NOT NULL,
  CONSTRAINT pk_Title_Authors PRIMARY KEY (title_id, au_id)
  );

CREATE TABLE Royalties
  (
  title_id     CHAR(3)      NOT NULL,
  advance      DECIMAL(9,2)         ,
  royalty_rate DECIMAL(5,2)         ,
  CONSTRAINT pk_Royalties PRIMARY KEY (title_id)
  );

INSERT INTO Authors VALUES('A01','Sarah','Buchman','718-496-7223',
  '75 West 205 St','Bronx','NY','10468');
INSERT INTO Authors VALUES('A02','Wendy','Heydemark','303-986-7020',
  '2922 Baseline Rd','Boulder','CO','80303');
INSERT INTO Authors VALUES('A03','Hallie','Hull','415-549-4278',
  '3800 Waldo Ave, #14F','San Francisco','CA','94123');
INSERT INTO Authors VALUES('A04','Klee','Hull','415-549-4278',
  '3800 Waldo Ave, #14F','San Francisco','CA','94123');
INSERT INTO Authors VALUES('A05','Christian','Kells','212-771-4680',
  '114 Horatio St','New York','NY','10014');
INSERT INTO Authors VALUES('A06','','Kellsey','650-836-7128',
  '390 Serra Mall','Palo Alto','CA','94305');
INSERT INTO Authors VALUES('A07','Paddy','O''Furniture','941-925-0752',
  '1442 Main St','Sarasota','FL','34236');

INSERT INTO Publishers VALUES('P01','Abatis Publishers','New York','NY','USA');
INSERT INTO Publishers VALUES('P02','Core Dump Books','San Francisco','CA','USA');
INSERT INTO Publishers VALUES('P03','Schadenfreude Press','Hamburg',NULL,'Germany');
INSERT INTO Publishers VALUES('P04','Tenterhooks Press','Berkeley','CA','USA');
INSERT INTO Publishers VALUES('P05','PTR Press','Los Angeles','CA','USA');



INSERT INTO Titles VALUES('T01','1977!','history','P01',
  107,21.99,566,'2000-08-01',1);
INSERT INTO Titles VALUES('T02','200 Years of German Humor','history','P03',
  14,19.95,9566,'1998-04-01',1);
INSERT INTO Titles VALUES('T03','Ask Your System Administrator','computer','P02',
  1226,39.95,25667,'2000-09-01',1);
INSERT INTO Titles VALUES('T04','But I Did It Unconsciously','psychology','P04',
  510,12.99,13001,'1999-05-31',1);
INSERT INTO Titles VALUES('T05','Exchange of Platitudes','psychology','P04',
  201,6.95,201440,'2001-01-01',1);
INSERT INTO Titles VALUES('T06','How About Never?','biography','P01',
  473,19.95,11320,'2000-07-31',1);
INSERT INTO Titles VALUES('T07','I Blame My Mother','biography','P03',
  333,23.95,1500200,'1999-10-01',1);
INSERT INTO Titles VALUES('T08','Just Wait Until After School','children','P04',
  86,10.00,4095,'2001-06-01',1);
INSERT INTO Titles VALUES('T09','Kiss My Boo-Boo','children','P04',
  22,13.95,5000,'2002-05-31',1);
INSERT INTO Titles VALUES('T10','Not Without My Faberge Egg','biography','P01',
  NULL,NULL,NULL,NULL,0);
INSERT INTO Titles VALUES('T11','Perhaps It''s a Glandular Problem','psychology','P04',
  826,7.99,94123,'2000-11-30',1);
INSERT INTO Titles VALUES('T12','Spontaneous, Not Annoying','biography','P01',
  507,12.99,100001,'2000-08-31',1);
INSERT INTO Titles VALUES('T13','What Are The Civilian Applications?','history','P03',
  802,29.99,10467,'1999-05-31',1);

INSERT INTO Title_Authors VALUES('T01','A01',1,1.0);
INSERT INTO Title_Authors VALUES('T02','A01',1,1.0);
INSERT INTO Title_Authors VALUES('T03','A05',1,1.0);
INSERT INTO Title_Authors VALUES('T04','A03',1,0.6);
INSERT INTO Title_Authors VALUES('T04','A04',2,0.4);
INSERT INTO Title_Authors VALUES('T05','A04',1,1.0);
INSERT INTO Title_Authors VALUES('T06','A02',1,1.0);
INSERT INTO Title_Authors VALUES('T07','A02',1,0.5);
INSERT INTO Title_Authors VALUES('T07','A04',2,0.5);
INSERT INTO Title_Authors VALUES('T08','A06',1,1.0);
INSERT INTO Title_Authors VALUES('T09','A06',1,1.0);
INSERT INTO Title_Authors VALUES('T10','A02',1,1.0);
INSERT INTO Title_Authors VALUES('T11','A03',2,0.3);
INSERT INTO Title_Authors VALUES('T11','A04',3,0.3);
INSERT INTO Title_Authors VALUES('T11','A06',1,0.4);
INSERT INTO Title_Authors VALUES('T12','A02',1,1.0);
INSERT INTO Title_Authors VALUES('T13','A01',1,1.0);

INSERT INTO Royalties VALUES('T01',10000,0.05);
INSERT INTO Royalties VALUES('T02',1000,0.06);
INSERT INTO Royalties VALUES('T03',15000,0.07);
INSERT INTO Royalties VALUES('T04',20000,0.08);
INSERT INTO Royalties VALUES('T05',100000,0.09);
INSERT INTO Royalties VALUES('T06',20000,0.08);
INSERT INTO Royalties VALUES('T07',1000000,0.11);
INSERT INTO Royalties VALUES('T08',0,0.04);
INSERT INTO Royalties VALUES('T09',0,0.05);
INSERT INTO Royalties VALUES('T10',NULL,NULL);
INSERT INTO Royalties VALUES('T11',100000,0.07);
INSERT INTO Royalties VALUES('T12',50000,0.09);
INSERT INTO Royalties VALUES('T13',20000,0.06);

show tables;

In: Computer Science

Please use the books database pasted under question 4 to design the following SQL queries. Use...

Please use the books database pasted under question 4 to design the following SQL queries. Use any method such as subqueries, equi-join/inner-join, outer join, EXISTS

1. List the title_name and book type of the books that are published earlier than the earliest biography book

2. List the title_name and book type of the books published by 'Abatis Publishers'

3. Find the name(s) of the publisher(s) that have not published any book

4. Find the name(s) of the publisher(s) who have published the computer book.

DROP TABLES IF EXISTS Artists,Genre, Members, Titles, Tracks,SalesPeople,Studios,XrefArtistsMembers;
DROP TABLES IF EXISTS Authors,Publishers,Titles,Title_Authors,Royalties;
DROP TABLES IF EXISTS Products,Customers,Orders,Order_details;
DROP TABLES IF EXISTS Sailors,Boats,Reserves;

CREATE TABLE Authors
  (
  au_id    CHAR(3)     NOT NULL,
  au_fname VARCHAR(15) NOT NULL,
  au_lname VARCHAR(15) NOT NULL,
  phone    VARCHAR(12)         ,
  address  VARCHAR(20)         ,
  city     VARCHAR(15)         ,
  state    CHAR(2)             ,
  zip      CHAR(5)             ,
  CONSTRAINT pk_Authors PRIMARY KEY (au_id)
  );

CREATE TABLE Publishers
  (
  pub_id   CHAR(3)     NOT NULL,
  pub_name VARCHAR(20) NOT NULL,
  city     VARCHAR(15) NOT NULL,
  state    CHAR(2)             ,
  country  VARCHAR(15) NOT NULL,
  CONSTRAINT pk_Publishers PRIMARY KEY (pub_id)
  );

CREATE TABLE Titles
  (
  title_id   CHAR(3)      NOT NULL,
  title_name VARCHAR(40)  NOT NULL,
  type       VARCHAR(10)          ,
  pub_id     CHAR(3)      NOT NULL,
  pages      INTEGER              ,
  price      DECIMAL(5,2)         ,
  sales      INTEGER              ,
  pubdate    DATE                 ,
  contract   SMALLINT     NOT NULL,
  CONSTRAINT pk_Titles PRIMARY KEY (title_id)
  );

CREATE TABLE Title_Authors
  (
  title_id      CHAR(3)      NOT NULL,
  au_id         CHAR(3)      NOT NULL,
  au_order      SMALLINT     NOT NULL,
  royalty_share DECIMAL(5,2) NOT NULL,
  CONSTRAINT pk_Title_Authors PRIMARY KEY (title_id, au_id)
  );

CREATE TABLE Royalties
  (
  title_id     CHAR(3)      NOT NULL,
  advance      DECIMAL(9,2)         ,
  royalty_rate DECIMAL(5,2)         ,
  CONSTRAINT pk_Royalties PRIMARY KEY (title_id)
  );

INSERT INTO Authors VALUES('A01','Sarah','Buchman','718-496-7223',
  '75 West 205 St','Bronx','NY','10468');
INSERT INTO Authors VALUES('A02','Wendy','Heydemark','303-986-7020',
  '2922 Baseline Rd','Boulder','CO','80303');
INSERT INTO Authors VALUES('A03','Hallie','Hull','415-549-4278',
  '3800 Waldo Ave, #14F','San Francisco','CA','94123');
INSERT INTO Authors VALUES('A04','Klee','Hull','415-549-4278',
  '3800 Waldo Ave, #14F','San Francisco','CA','94123');
INSERT INTO Authors VALUES('A05','Christian','Kells','212-771-4680',
  '114 Horatio St','New York','NY','10014');
INSERT INTO Authors VALUES('A06','','Kellsey','650-836-7128',
  '390 Serra Mall','Palo Alto','CA','94305');
INSERT INTO Authors VALUES('A07','Paddy','O''Furniture','941-925-0752',
  '1442 Main St','Sarasota','FL','34236');

INSERT INTO Publishers VALUES('P01','Abatis Publishers','New York','NY','USA');
INSERT INTO Publishers VALUES('P02','Core Dump Books','San Francisco','CA','USA');
INSERT INTO Publishers VALUES('P03','Schadenfreude Press','Hamburg',NULL,'Germany');
INSERT INTO Publishers VALUES('P04','Tenterhooks Press','Berkeley','CA','USA');
INSERT INTO Publishers VALUES('P05','PTR Press','Los Angeles','CA','USA');



INSERT INTO Titles VALUES('T01','1977!','history','P01',
  107,21.99,566,'2000-08-01',1);
INSERT INTO Titles VALUES('T02','200 Years of German Humor','history','P03',
  14,19.95,9566,'1998-04-01',1);
INSERT INTO Titles VALUES('T03','Ask Your System Administrator','computer','P02',
  1226,39.95,25667,'2000-09-01',1);
INSERT INTO Titles VALUES('T04','But I Did It Unconsciously','psychology','P04',
  510,12.99,13001,'1999-05-31',1);
INSERT INTO Titles VALUES('T05','Exchange of Platitudes','psychology','P04',
  201,6.95,201440,'2001-01-01',1);
INSERT INTO Titles VALUES('T06','How About Never?','biography','P01',
  473,19.95,11320,'2000-07-31',1);
INSERT INTO Titles VALUES('T07','I Blame My Mother','biography','P03',
  333,23.95,1500200,'1999-10-01',1);
INSERT INTO Titles VALUES('T08','Just Wait Until After School','children','P04',
  86,10.00,4095,'2001-06-01',1);
INSERT INTO Titles VALUES('T09','Kiss My Boo-Boo','children','P04',
  22,13.95,5000,'2002-05-31',1);
INSERT INTO Titles VALUES('T10','Not Without My Faberge Egg','biography','P01',
  NULL,NULL,NULL,NULL,0);
INSERT INTO Titles VALUES('T11','Perhaps It''s a Glandular Problem','psychology','P04',
  826,7.99,94123,'2000-11-30',1);
INSERT INTO Titles VALUES('T12','Spontaneous, Not Annoying','biography','P01',
  507,12.99,100001,'2000-08-31',1);
INSERT INTO Titles VALUES('T13','What Are The Civilian Applications?','history','P03',
  802,29.99,10467,'1999-05-31',1);

INSERT INTO Title_Authors VALUES('T01','A01',1,1.0);
INSERT INTO Title_Authors VALUES('T02','A01',1,1.0);
INSERT INTO Title_Authors VALUES('T03','A05',1,1.0);
INSERT INTO Title_Authors VALUES('T04','A03',1,0.6);
INSERT INTO Title_Authors VALUES('T04','A04',2,0.4);
INSERT INTO Title_Authors VALUES('T05','A04',1,1.0);
INSERT INTO Title_Authors VALUES('T06','A02',1,1.0);
INSERT INTO Title_Authors VALUES('T07','A02',1,0.5);
INSERT INTO Title_Authors VALUES('T07','A04',2,0.5);
INSERT INTO Title_Authors VALUES('T08','A06',1,1.0);
INSERT INTO Title_Authors VALUES('T09','A06',1,1.0);
INSERT INTO Title_Authors VALUES('T10','A02',1,1.0);
INSERT INTO Title_Authors VALUES('T11','A03',2,0.3);
INSERT INTO Title_Authors VALUES('T11','A04',3,0.3);
INSERT INTO Title_Authors VALUES('T11','A06',1,0.4);
INSERT INTO Title_Authors VALUES('T12','A02',1,1.0);
INSERT INTO Title_Authors VALUES('T13','A01',1,1.0);

INSERT INTO Royalties VALUES('T01',10000,0.05);
INSERT INTO Royalties VALUES('T02',1000,0.06);
INSERT INTO Royalties VALUES('T03',15000,0.07);
INSERT INTO Royalties VALUES('T04',20000,0.08);
INSERT INTO Royalties VALUES('T05',100000,0.09);
INSERT INTO Royalties VALUES('T06',20000,0.08);
INSERT INTO Royalties VALUES('T07',1000000,0.11);
INSERT INTO Royalties VALUES('T08',0,0.04);
INSERT INTO Royalties VALUES('T09',0,0.05);
INSERT INTO Royalties VALUES('T10',NULL,NULL);
INSERT INTO Royalties VALUES('T11',100000,0.07);
INSERT INTO Royalties VALUES('T12',50000,0.09);
INSERT INTO Royalties VALUES('T13',20000,0.06);

show tables;

In: Computer Science

1. What is the outcome of this case? (Guilty, not guilty, acquitted, etc.) (2-3 sentences) 2....

1. What is the outcome of this case? (Guilty, not guilty, acquitted, etc.) (2-3 sentences)


2. What is the author's basis of dissent OR basis or support for upholding the opinion of the court? (1 full paragraph)


3. How does this judicial opinion (and general case) increase your understanding of what has been learned/discussed during this time period of the class and the events within it? Explain how this case is historically significant to what we have learned. (I full paragraph)




U.S. Supreme Court

Dennis v. United States, 341 U.S. 494 (1951)

Dennis v. United States

No. 336

Argued December 4, 1950

Decided June 4, 1951

341 U.S. 494

MR. CHIEF JUSTICE VINSON announced the judgment of the Court and an opinion in

which MR. JUSTICE REED, MR. JUSTICE BURTON and MR. JUSTICE MINTON join.

The obvious purpose of the statute is to protect existing Government not from change

by peaceable, lawful and constitutional means, but from change by violence, revolution

and terrorism. That it is within the power of the Congress to protect the Government of

the United States from armed rebellion is a proposition which requires little discussion.

Whatever theoretical merit there may be to the argument that there is a "right" to

rebellion against dictatorial governments is without force where the existing structure of

the government provides for peaceful and orderly change. We reject any principle of

governmental helplessness in the face of preparation for revolution, which principle,

carried to its logical conclusion, must lead to anarchy. No one could conceive that it is

not within the power of Congress to prohibit acts intended to overthrow the Government

by force and violence. The question with which we are concerned here is not whether

Congress has such power, but whether the means which it has employed conflict with

the First and Fifth Amendments to the Constitution.

One of the bases for the contention that the means which Congress has employed are

invalid takes the form of an attack on the face of the statute on the grounds that, by its

terms, it prohibits academic discussion of the merits of Marxism-Leninism, that it stifles

ideas and is contrary to all concepts of a free speech and a free press.

The very language of the Smith Act negates the interpretation which petitioners would

have us impose on that Act. It is directed at advocacy, not discussion. Thus, the trial

judge properly charged the jury that they could not convict if they found that petitioners

did "no more than pursue peaceful studies and discussions or teaching and advocacy in

the realm of ideas." He further charged that it was not unlawful" to conduct in an

American college or university a course explaining the philosophical theories set forth in

the books which have been placed in evidence."

In this case, we are squarely presented with the application of the "clear and present

danger" test, and must decide what that phrase imports.

Obviously, the words cannot mean that, before the Government may act, it must wait

until the putsch is about to be executed, the plans have been laid and the signal is

awaited. If Government is aware that a group aiming at its overthrow is attempting to

indoctrinate its members and to commit them to a course whereby they will strike when

the leaders feel the circumstances permit, action by the Government is required. The

argument that there is no need for Government to concern itself, for Government is

strong, it possesses ample powers to put down a rebellion, it may defeat the revolution

with ease needs no answer. For that is not the question. Certainly an attempt to

overthrow the Government by force, even though doomed from the outset because of

inadequate numbers or power of the revolutionists, is a sufficient evil for Congress to

prevent. The damage which such attempts create both physically and politically to a

nation makes it impossible to measure the validity in terms of the probability of success,

or the immediacy of a successful attempt. In the instant case, the trial judge charged the

jury that they could not convict unless they found that petitioners intended to overthrow

the Government "as speedily as circumstances would permit." This does not mean, and

could not properly mean, that they would not strike until there was certainty of success.

What was meant was that the revolutionists would strike when they thought the time

was ripe. We must therefore reject the contention that success or probability of success

is the criterion.

Chief Judge Learned Hand, writing for the majority below, interpreted the phrase as

follows:

"In each case, [courts] must ask whether the gravity of the 'evil,' discounted by its

improbability, justifies such invasion of free speech as is necessary to avoid the

danger." We adopt this statement of the rule. As articulated by Chief Judge Hand, it is

as succinct and inclusive as any other we might devise at this time. It takes into

consideration those factors which we deem relevant, and relates their significances.

More we cannot expect from words.

Likewise, we are in accord with the court below, which affirmed the trial court's finding

that the requisite danger existed. The mere fact that, from the period 1945 to 1948,

petitioners' activities did not result in an attempt to overthrow the Government by force

and violence is, of course, no answer to the fact that there was a group that was ready

to make the attempt. The formation by petitioners of such a highly organized

conspiracy, with rigidly disciplined members subject to call when the leaders, these

petitioners, felt that the time had come for action, coupled with the inflammable nature

of world conditions, similar uprisings in other countries, and the touch-and-go nature of

our relations with countries with whom petitioners were in the very least ideologically

attuned, convince us that their convictions were justified on this score. And this analysis

disposes of the contention that a conspiracy to advocate, as distinguished from the

advocacy itself, cannot be constitutionally restrained, because it comprises only the

preparation. It is the existence of the conspiracy which creates the danger…if the

ingredients of the reaction are present, we cannot bind the Government to wait until the

catalyst is added.

We hold that §§ 2(a)(1), 2(a)(3) and 3 of the Smith Act do not inherently, or as

construed or applied in the instant case, violate the First Amendment and other

provisions of the Bill of Rights, or the First and Fifth Amendments because of

indefiniteness. Petitioners intended to overthrow the Government of the United States

as speedily as the circumstances would permit. Their conspiracy to organize the

Communist Party and to teach and advocate the overthrow of the Government of the

United States by force and violence created a "clear and present danger" of an attempt

to overthrow the Government by force and violence. They were properly and

constitutionally convicted for violation of the Smith Act. The judgments of conviction are

upheld.

MR. JUSTICE BLACK, dissenting.

At the outset, I want to emphasize what the crime involved in this case is, and what it is

not. These petitioners were not charged with an attempt to overthrow the Government.

They were not charged with overt acts of any kind designed to overthrow the

Government. They were not even charged with saying anything or writing anything

designed to overthrow the Government. The charge was that they agreed to assemble

and to talk and publish certain ideas at a later date: the indictment is that they conspired

to organize the Communist Party and to use speech or newspapers and other

publications in the future to teach and advocate the forcible overthrow of the

Government. No matter how it is worded, this is a virulent form of prior censorship of

speech and press, which I believe the First Amendment forbids. I would hold § 3 of the

Smith Act authorizing this prior restraint unconstitutional on its face and as applied.

But let us assume, contrary to all constitutional ideas of fair criminal procedure, that

petitioners, although not indicted for the crime of actual advocacy, may be punished for

it. Even on this radical assumption, the other opinions in this case show that the only

way to affirm these convictions is to repudiate directly or indirectly the established "clear

and present danger" rule. This the Court does in a way which greatly restricts the

protections afforded by the First Amendment. The opinions for affirmance indicate that

the chief reason for jettisoning the rule is the expressed fear that advocacy of

Communist doctrine endangers the safety of the Republic. Undoubtedly a governmental

policy of unfettered communication of ideas does entail dangers. To the Founders of

this Nation, however, the benefits derived from free expression were worth the risk.

They embodied this philosophy in the First Amendment's command that "Congress shall

make no law . . . abridging the freedom of speech, or of the press. . . ." I have always

believed that the First Amendment is the keystone of our Government, that the

freedoms it guarantees provide the best insurance against destruction of all freedom. At

least as to speech in the realm of public matters, I believe that the "clear and present

danger" test does not "mark the furthermost constitutional boundaries of protected

expression," but does "no more than recognize a minimum compulsion of the Bill of

Rights."

So long as this Court exercises the power of judicial review of legislation, I cannot agree

that the First Amendment permits us to sustain laws suppressing freedom of speech and press on the basis of Congress' or our own notions of mere "reasonableness." Such

a doctrine waters down the First Amendment so that it amounts to little more than an

admonition to Congress. The Amendment as so construed is not likely to protect any

but those "safe" or orthodox views which rarely need its protection.

Public opinion being what it now is, few will protest the conviction of these Communist

petitioners. There is hope, however, that, in calmer times, when present pressures,

passions and fears subside, this or some later Court will restore the First Amendment

liberties to the high preferred place where they belong in a free society


In: Economics

I'm have trouble change JRadioButton and do not want to select all at the same time...

I'm have trouble change JRadioButton and do not want to select all at the same time just one at a time. if one of them is unselected, then set the font as plain. Set font size as 20.

run the program and change the font and you see what I'm talking about

also this there anyway to shorten my code

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Font;
import java.awt.event.*;
import java.net.URL;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import javax.swing.JCheckBox;
import javax.swing.JColorChooser;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.KeyStroke;
//MyMenuFrame will use Jframe with actionlistener
public class MyMenuFrame extends JFrame implements ActionListener{

//creating the main menu items
JMenu menuEdit = new JMenu("Edit");
JMenu menuPrint = new JMenu("Print");
JMenu mnFile = new JMenu("File");
JMenu menuHelp = new JMenu("Help");


//creating the submenu items here because we are gonna use these across the code
JRadioButton subMenuItem1 = new JRadioButton("Times New Roman");
JRadioButton subMenuItem2 = new JRadioButton("Arial");
JRadioButton subMenuItem3 = new JRadioButton("Serif");
JCheckBox subMenuItem4 = new JCheckBox("Bold");
JCheckBox subMenuItem5 = new JCheckBox("Italic");

//provide scrollable view of a component
JScrollPane scrollPane;

//creating notePadArea for notepad to input the text
JTextArea notePadArea;

public MyMenuFrame() {

//setting the border layout for JFrame
this.setLayout(new BorderLayout());

// create menu bar named menuBar

JMenuBar menuBar = new JMenuBar();

this.setJMenuBar(menuBar);//adding the menubar to JFrame

// create File menu
mnFile.setMnemonic(KeyEvent.VK_F);//Alt+F

menuBar.add(mnFile);//adding the menufile

// create Open menu item

JMenuItem mntmOpen = new JMenuItem("Open");//creating the Open menu

mntmOpen.setMnemonic(KeyEvent.VK_O);//Alt+O command

mntmOpen.setActionCommand("open");//when the command equals to 'open' then the corresponding action will be performed

mntmOpen.setAccelerator(KeyStroke.getKeyStroke('O', KeyEvent.CTRL_DOWN_MASK));//respond when user clicks Ctrl+O

mntmOpen.addActionListener(this);//adding actionLister to the Menu Option Open


// create Save menu item

JMenuItem mntmSave = new JMenuItem("Save");//creating the Save menu

mntmSave.setMnemonic(KeyEvent.VK_S);//Alt+S command

mntmSave.setActionCommand("save");//when the command equals to 'save' then the corresponding action will be performed

mntmSave.setAccelerator(KeyStroke.getKeyStroke('S', KeyEvent.CTRL_DOWN_MASK));//respond when user clicks Ctrl+S

mntmSave.addActionListener(this);//adding actionLister to the Menu Option Save

// create Exit menu item

JMenuItem mntmExit = new JMenuItem("Exit");//creating the Exit menu

mntmExit.setMnemonic(KeyEvent.VK_X);//Alt+X command

mntmExit.setActionCommand("exit");//when the command equals to 'exit' then the corresponding action will be performed

mntmExit.setAccelerator(KeyStroke.getKeyStroke('X', KeyEvent.CTRL_DOWN_MASK));//respond when user clicks Ctrl+X

mntmExit.addActionListener(this);//adding actionLister to the Menu Option Exit

// add open, save and exit menu to menu-bar

mnFile.add(mntmOpen);

mnFile.addSeparator();//adding separator between open and save

mnFile.add(mntmSave);

mnFile.addSeparator();//adding separator between save and exit

mnFile.add(mntmExit);

// create Edit menu

menuEdit.setMnemonic(KeyEvent.VK_E);//creating shortcut menu when user press Alt+E

menuBar.add(menuEdit);//adding the Edit to the menubar

JMenu submenu1 = new JMenu("Color");//creating the new menu which comes under Edit
submenu1.setMnemonic(KeyEvent.VK_C);//creating shortcut menu when user press Alt+C
JMenuItem menuItem0 = new JMenuItem("Change Color");//creating submenu item called change color
menuItem0.setAccelerator(KeyStroke.getKeyStroke('C', KeyEvent.CTRL_DOWN_MASK));//it responds when user click Ctrl+C
menuItem0.setActionCommand("color");//setting the command used to call the correcponding action when user click this
menuItem0.addActionListener(this);//adding actionlistener
submenu1.add(menuItem0);//adding this menu item to submenu
menuEdit.add(submenu1);//adding this submenu to editmenu
menuEdit.addSeparator();//creating separator between Color and Font

JMenu submenu = new JMenu("Font");//creating the new menu which comes under Edit
submenu.setMnemonic(KeyEvent.VK_F);//creating shortcut menu when user press Alt+F
subMenuItem1.setMnemonic(KeyEvent.VK_T);//creating shortcut menu when user press Alt+T for Times New Roman
subMenuItem1.setActionCommand("times_new_roman");//setting the command used to call the correcponding action when user click this
subMenuItem1.addActionListener(this);//adding actionlistener
submenu.add(subMenuItem1);//adding to the submenu


subMenuItem2.setMnemonic(KeyEvent.VK_A);//creating shortcut key Alt+A
subMenuItem2.setActionCommand("arial");//respond when the command equals to arial
subMenuItem2.addActionListener(this);//adding action listener
submenu.add(subMenuItem2);//adding it to the submenu

subMenuItem3.setMnemonic(KeyEvent.VK_S);
subMenuItem3.setActionCommand("serif");
subMenuItem3.addActionListener(this);
submenu.add(subMenuItem3);

submenu.addSeparator();

subMenuItem4.setMnemonic(KeyEvent.VK_B);
subMenuItem4.setActionCommand("bold");
subMenuItem4.addActionListener(this);
submenu.add(subMenuItem4);

subMenuItem5.setMnemonic(KeyEvent.VK_I);
subMenuItem5.setActionCommand("italic");
subMenuItem5.addActionListener(this);
submenu.add(subMenuItem5);

menuEdit.add(submenu);


// create Print menu


menuPrint.setMnemonic(KeyEvent.VK_P);

menuBar.add(menuPrint);

JMenuItem menuItemPrint = new JMenuItem("Send To Printer");

menuItemPrint.setAccelerator(KeyStroke.getKeyStroke('P', KeyEvent.CTRL_DOWN_MASK));

menuItemPrint.setActionCommand("print");

menuItemPrint.addActionListener(this);

menuPrint.add(menuItemPrint);

// create Help menu

menuHelp.setMnemonic(KeyEvent.VK_H);


menuBar.add(menuHelp);

JMenuItem menuItemHelp = new JMenuItem("About");

menuItemHelp.setAccelerator(KeyStroke.getKeyStroke('A', KeyEvent.CTRL_DOWN_MASK));

menuItemHelp.setActionCommand("about");
menuItemHelp.addActionListener(this);

JMenuItem menuItemVisitHomePage = new JMenuItem("Visit Home Page");

menuItemVisitHomePage.setAccelerator(KeyStroke.getKeyStroke('V', KeyEvent.CTRL_DOWN_MASK));

menuItemVisitHomePage.setActionCommand("visithomepage");
menuItemVisitHomePage.addActionListener(this);

menuHelp.add(menuItemHelp);

menuHelp.addSeparator();

menuHelp.add(menuItemVisitHomePage);

notePadArea = new JTextArea();

// set no word wrap

notePadArea.setWrapStyleWord(false);

// create scrollable pane

scrollPane = new JScrollPane(notePadArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS , JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);

this.add(scrollPane,BorderLayout.CENTER);

}


@Override

public void actionPerformed(ActionEvent e) {

if(e.getActionCommand().equals("exit")) {

System.exit(0);

}else if (e.getActionCommand().equals("open")) {

JFileChooser file = new JFileChooser();

String fileName = "";//initial filename was empty

// show open file dialog

if (file.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {

fileName = file.getSelectedFile().getAbsolutePath();

} else {

return;

}

try(BufferedReader bufferedReader = new BufferedReader(new FileReader(fileName));) {

// load file content into text area

StringBuffer stringBuffer = new StringBuffer();//creating a string buffer for reading data from file

String lines = "";//for reading the lines from the selecting file

while((lines = bufferedReader.readLine() ) != null) {//it'll read untill the file ends

stringBuffer.append(lines).append("\n");//for every line read insert new line in stringBuffer

}

bufferedReader.close();//after reading of file done, the bufferedReader will be close

notePadArea.setText(stringBuffer.toString());//converting the read text to string and inserting this text into textArea

} catch (Exception error1) {//if any exception occures

System.out.println(error1.toString());//convert the expection into string and print it

}

} else if (e.getActionCommand().equals("save")) {//if the user click the save command then the file will gonna saved


JFileChooser file = new JFileChooser();//creating the file chooser

String fileName = "";//initial file name is empty

// show open file dialog

if (file.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {//if the user select file and clicks OK button

fileName = file.getSelectedFile().getAbsolutePath();

} else {//other wise will be closed
return;
}

try(BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(fileName));) {

// write editor's content to selected file.

bufferedWriter.write(notePadArea.getText());//get the text entered in textarea
bufferedWriter.flush();//clear the writer
} catch(Exception ex1) {}

} else if (e.getActionCommand().equals("color")) {

Color select_color = JColorChooser.showDialog(this, "Select a color", Color.RED);
notePadArea.setForeground(select_color);

} else if (e.getActionCommand().equals("times_new_roman")) {
if(subMenuItem1.isSelected())
notePadArea.setFont(new Font("Times New Roman", Font.PLAIN, 20));

} else if (e.getActionCommand().equals("arial")) {
if(subMenuItem2.isSelected())
notePadArea.setFont(new Font("Arial", Font.PLAIN, 20));

} else if (e.getActionCommand().equals("serif")) {
if(subMenuItem3.isSelected())
notePadArea.setFont(new Font("Serif", Font.PLAIN, 20));

} else if (e.getActionCommand().equals("bold")) {
if(subMenuItem4.isSelected()){
if(subMenuItem5.isSelected()){
notePadArea.setFont(new Font("Serif", Font.BOLD+Font.ITALIC, 12));
}else{
notePadArea.setFont(new Font("Serif", Font.BOLD, 12));
}
}else{
if(!subMenuItem5.isSelected())
notePadArea.setFont(new Font("Serif", Font.PLAIN, 12));
}

} else if (e.getActionCommand().equals("italic")) {

if(subMenuItem5.isSelected()){
if(subMenuItem4.isSelected()){
notePadArea.setFont(new Font("Serif", Font.BOLD+Font.ITALIC, 12));
}else{
notePadArea.setFont(new Font("Serif", Font.ITALIC, 12));
}
}else{
if(!subMenuItem4.isSelected())
notePadArea.setFont(new Font("Serif", Font.PLAIN, 12));
}

} else if (e.getActionCommand().equals("print")) {

int output = JOptionPane.showConfirmDialog(this, "Do you want to print the File","Confirmation", JOptionPane.YES_NO_OPTION);
if(output==0){
JOptionPane.showMessageDialog(this, "The file is successfully printed","Confirmation", JOptionPane.INFORMATION_MESSAGE);
}
} else if (e.getActionCommand().equals("changecolor")){
System.out.println("Color clicked");
}
else if (e.getActionCommand().equals("about")) {

JOptionPane.showMessageDialog(this, "This software is developed in 2019\nVersion is 1.0","About", JOptionPane.INFORMATION_MESSAGE);

} else if (e.getActionCommand().equals("visithomepage")) {

openWebpage("http://www.microsoft.com");

}

}

private void openWebpage (String urlString) {

try {

Desktop.getDesktop().browse(new URL(urlString).toURI());

}

catch (Exception e) {

e.printStackTrace();
}
}
}

import javax.swing.JFrame;
public class MyMenuFrameTest {
public static void main(String[] args) {
MyMenuFrame frame = new MyMenuFrame();
frame.setTitle("MyNotepad");
//for the title of the box
frame.setSize(600, 400);
//for the size of the box
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame.setVisible(true);
}
}

In: Computer Science