Write a program that asks for the user's first, middle, and last name as one input. The names must be stored in three different character arrays. The program should then store in a fourth array the name arranged in the following manner: the last name followed by a comma and a space, followed by the first name and a space, followed by the first initial of the middle name and a period. Display the contents of the fourth array on the screen. No standard strings can be used. Oh I'm so mean.
Sample input:
Neil Patrick Harris
Output:
Harris, Neil P.

Answers

Answer 1

Answer:

Here is the C++ program:

#include <iostream>  //to use input output functions  

#include <cstring>  // used to manipulate c strings  

using namespace std;  //to identify objects cin cout

const int SIZE = 20;  //fixes constant size for firstName, middleName and lastName arrays  

const int FULL_SIZE = 60;  //constant size for fullName array  

int main() {  //start of main method  

 char firstName[SIZE]; //declares a char type array to hold first name  

 char middleName[SIZE];//declares a char type array to hold middle name  

 char lastName[SIZE]; //declares a char type array to hold last name  

 char fullName[FULL_SIZE]; //declares a char type array to hold full name

 cout << "Enter first, middle, and last name:  ";  //prompts user to enter first name

 cin>>firstName>>middleName>>lastName;  //reads last name from user, stores it in lastName array

 strcpy(fullName, lastName);  //copies last name from lastName to fullName array using strcpy method which copies a character string from source to destination

 strcat(fullName, ", "); //appends comma "," and empty space " " after last name in fullName using strcat method which appends a string at the end of another string

 strcat(fullName, firstName);  //appends first name stored in firstName to the last of fullName

 strcat(fullName, " ");  //appends an empty space to fullName

  char temp[2];  //creates a temporary array to hold first initial of middle name

temp[0] = middleName[0];  //holds the first initial of middle name

strcat(fullName, temp);  //appends first initial of middle name stored in temp to the last of fullName

strcat(fullName, ".");   //appends period

    cout<<fullName;  } //displays full name

Explanation:

I will explain the program with an example

Lets say user enters Neil as first name, Patrick as middle and Harris as last name. So firstName char array contains Neil, middleName char array contains Patrick and lastName char array contains Harris.  

Next the fullName array is declared to store Neil Patrick Harris in a specific format:

strcpy(fullName, lastName);

This copies lastName to fullName which means fullName now contains Harris.

 strcat(fullName, ", ");

This appends comma and an empty space to fullName which means fullName now contains Harris with a comma and empty space i.e. Harris,

strcat(fullName, firstName);

This appends firstName to fullName which means Neil is appended to fullName which now contains Harris, Neil

 strcat(fullName, " ");  

This appends an empty space to fullName which means fullName now contains Harris, Neil with an empty space i.e. Harris, Neil

char temp[2];

temp[0] = middleName[0];

This creates an array to hold the first initial of middle name i.e. P of Patrick

strcat(fullName, temp);

This appends an the first initial of middleName to fullName which means fullName now contains Harris, Neil P

strcat(fullName, ".");

This appends a period to fullName which means fullName now contains Harris, Neil P.

Now    cout <<"Full name is:\n"<<fullName<< endl; prints the fullName so the output of this entire program is:

Full name is:                                                                                                                                  Harris, Neil P.

The screenshot of the program along with its output is attached.

Write A Program That Asks For The User's First, Middle, And Last Name As One Input. The Names Must Be

Related Questions

How do I give brainliest (I’m new) .Actually answer my question!

Answers

Answer: I’m sorry, but what is your question? Then, I may be able to help you. Also, add a link (image)!

Explanation: Thank You!

Answer:

Hi! There has to be two answers to your question. That is the only way you are able to give a brainliest. You can give a brainliest if you believe a person who wrote an answer to your question fully detailed and organized. It has to answer your question.

Hope this helps! :D

Which best describes what online reading tools aim to help readers do? *100 POINTS*

Answers

Answer:

Read faster

Explanation:

Technology inspires learners to learn as well. They keep trying to figure time to discover and learn stuff from blogs , videos, applications, and games on their computers. At the very same time, kids will understand and have pleasure, which lets them keep involved with the subject.

Answer:

ITS NOT B I THOUGHT IT WAS BUT DO NOT PUT B I PUT B AND GOT THE QUESTION WRONG

Explanation:

DONT PUT B just trying to help idk the answer but not b

                                                                                                                                                                                                                                               

This program is to ask the user N number of math (using only +, -, *, and /) questions. Once the program start it asks the user to enter how many questions will be asked (N, which is between 3-10). Then, the program asks N questions to the user. Each question will be one of four math operations (+, -, *, and /). The operation and operands will be selected randomly in your program.Operand are "unsigned short" between 0 and 100. After N questions, program exits by showing success score (number of correct / number of all questions).
------Sample Run------
Enter number of questions I need to ask: 5
1) 3 + 4 = 6
Incorrect, 7 was the answer.
1) 8 - 4 = 4
Correct
1) 5 * 6= 30
Correct
1) 5 - 345= -300
Incorrect, it should be -340.
1) 0-0=0
Correct
Your success rate is 60%.

Answers

Answer:

Written in Python

import random

N = int(input("Enter number of questions I need to ask: "))

if N >2 and N < 11:

    signs = ['+', '-', '*', '/']

    correct = 0

    for i in range(1,N+1):

         num1 = random.randint(1,101)

         num2 = random.randint(1,101)

         sign = random.choice(signs)

         print(str(i)+":) "+str(num1)+" "+sign+" "+str(num2)+" = ")

         res = int(input(""))

         if sign == '+':

              result = num1 + num2

         elif sign == '-':

              result = num1 - num2

         elif sign == '*':

              result = num1 * num2

         elif sign == '/':

              result = num1 / num2

         if result == res:

              correct = correct + 1

    print("Your success rate is "+str(round(correct * 100/N))+"%")

Explanation:

I've added the source program as an attachment where I used comments to explain difficult lines

Consider a banking system with ten accounts. Funds may be transferred between two of those accounts by following these steps:

lock A(i); lock A(j);
Update A(i); Update A(j);
Unlock A(i); Unlock A(j);


Required:
a. Can this system become deadlocked? If yes, show how. If no, explain why not?
b. Could the numbering request policy (presented in the chapter discussion about detection) be implemented to prevent deadlock if the number of accounts is dynamic? Explain why or why not?

Answers

Answer:

qegfds

Explanation:

Write a Java program that will 1. Ask the user to type in a sentence, using a JOptionPane.showInputDialog(). 2. The program will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears. The key here is to use the charAt method in class String. 3. Using a JOptionPane.showMessageDialog(), tell the user how many upper and lower case e's were in the string. 4. Repeat this process until the user types the word "Stop". (Check out the method equalsIgnoreCase in class String to cover all upper/lower case possibilities of the word "STOP").
Please provide a code for this in JAVA.

Answers

Answer:

Here is the JAVA program :

import javax.swing.JOptionPane;   //to use JOptionPane  

public class Main {   //class name

public static void main(String[] args) { //start of main method

   int ECount= 0;   //counts number of upper case E

   int eCount= 0;  //counts number of lower case e

   String sentence;   //stores input sentence string

sentence = JOptionPane.showInputDialog(null, "Type a sentence (type stop to exit)");  //uses showInputDialog method to display a dialog box which prompts user to enter a sentence

 int length = sentence.length();  //stores the length of the sentence

 while (!sentence.equalsIgnoreCase("stop"))  //the loop continues to execute until the user types stop

{ for (int i = 0; i < length; i++) { //loops through the sentence

             if (sentence.charAt(i) == 'E')  //if the character is an uppercase E

                  ECount += 1;  //adds 1 to the count of Ecount

             if (sentence.charAt(i) == 'e')  //if the character in a sentence is lowercase e

                  eCount += 1;}  //adds 1 to the count of lower case e

JOptionPane.showMessageDialog(null, "There are " + ECount + " number of E's and " + eCount + "  number of e's in " +sentence);   //displays the number of times uppercase and lowercase (E and e) occur in sentence

sentence = JOptionPane.showInputDialog(null, "Type a sentence (type stop to exit");  //prompts user to enter the next sentence

length = sentence.length();  //stores the length of sentence at each iteration of while loop until user enters stop

eCount=0;  //resets the counter of lowercase e

ECount=0;  } } } //resets the counter of uppercase e

Explanation:

The program uses showInputDialog() method that displays a dialog box on output screen. This dialog box prompts the user to enter a string (sentence) Suppose user enters "Evergreen" as input sentence so

sentence = "Evergreen"

Next the length of this string is computed using length() method and stored in length variable. So

length = sentence.length();

length = 9

The for loop iterates through this input sentence until the variable i is less than length i.e. 9

At first iteration

if (sentence.charAt(i) == 'E') becomes

if (sentence.charAt(0) == 'E')

Here charAt() method is used which returns the character at the specified index i. This if condition is true because the character at 0-th index (first character) of the sentence Evergreen is E. So ECount += 1; statement adds 1 to the count of upper case E so

ECount = 1

At second iteration:

if (sentence.charAt(1) == 'E')

this condition is false because the character at 1st index of sentence is 'v' which not an upper case E so the program moves to next if condition if (sentence.charAt(i) == 'e') which is also false because the character is not a lower case e either.

At third iteration:

if (sentence.charAt(2) == 'E')

this condition is false because the character at 2nd index of sentence is 'e' which not an upper case E so the program moves to next if condition if (sentence.charAt(i) == 'e') which is true because the character is a lower case e. So the statement eCount += 1; executes which adds 1 to the count of e.

eCount = 1

So at each iteration the sentence is checked for an upper case E and lower case e. After the loop breaks, the program moves to the statement:

JOptionPane.showMessageDialog(null, "There are " + ECount + " number of E's and " + eCount + "  number of e's in " +sentence);

which displays the number of uppercase E and lower case e in a message dialog box. So the output is:

There are 1 number of E's and 3 number of e's in Evergreen.

Then because of while loop user is prompted again to enter a sentence until the user enters "stop". Now the user can enter Stop, StOp, STOp etc. So equalsIgnoreCase method is used to cover all upper/lower case possibilities of the word "stop".

The screenshot of the program and its output is attached.

ILL MARK BRAINEST.
What must a new object have in Turtle Graphics? O Export O Name Title O Rank​

Answers

Answer:

Name

Explanation:

Answer:

name

Explanation:

brain

You're a short-order cook in a pancake restaurant, so you need to cook pancakes as fast as possible. You have one pan that can fit capacity pancakes at a time. Using this pan you must cook pamCakes pancakes. Each pancake must be cooked for five minutes on each side, and once a pancake starts cooking on a side it has to cook for five minutes on that side. However, you can take a pancake out of the pan when you're ready to flip it after five minutes and put it back in the pan later to cook it on the other side. Write the method, minutes Needed, that returns the shortest time needed to cook numCakes pancakes in a pan that holds capacity pancakes at once.

Answers

Answer:

Explanation:

The shortest time needed means that we are not taking into account the amount of time it takes to switch pancakes, flip them, or take them out of the pan, etc. Only cooking them. Therefore, written in Java would be the following...

public static int minutesNeeded (int numCakes, int panCapacity) {

       int minutesNeededtoCook = 0;

       while (numCakes != 0) {

           if (numCakes > panCapacity) {

               numCakes -= panCapacity;

               minutesNeededtoCook += 10;

           } else {

               numCakes = 0;

               minutesNeededtoCook += 10;

           }

       }

       return minutesNeededtoCook;

   }

The code takes in the amount of pancakes and the pan capacity, then compares them and adds 10 minutes (5 on each side) per pancake batch that is being made until all the pancakes are made.

What allows you to create a wireless connection among your smart devices.

Answers

Answer:

Probably Wi-Fi or a network but if you need more specific i'm not sure

Explanation:

What is the importance of material and component

Answers

Answer:

The innovative values of an object can be underlined by the chosen material; in fact its mechanical and chemico-physical properties, as well as its forming, joining and finishing technologies, all participate to the success of a product. ...

Explanation:

[tex]hii[/tex]hope this helps you ✌️✌️✌️

What is the shortcut for inserting fraction in word?(except insert equation)​

Answers

Answer:

\frac is the shortcut for inserting fraction in ms-word

e.g of a/b = \frac {a}{b}

Which of the following section does not exist in a slide layout?
A. Titles
B. Lists
C. Charts
D Animations​

Answers

Answer:

D

Explanation:

What are sums of money that are given out for specific reasons?

conventional loans

grants

venture capitals

angel fundings

Answers

Answer:

B. grants

Explanation: This is the correct answer on Edge 2021, just did the assignment. Hope this helps ^-^.

What are some ways to find out what skills you need to develop at work? Check all of the boxes that apply.

Ask a supervisor’s opinion.

Ask coworkers’ opinions.

Observe what people who have easy jobs are doing.

Attend trainings offered by the company.

Answers

Answer:

Attend traings

Explanation:

Because if you do you can learn diffent waay to do it and choose your way that you like.

ANd do not obseve poeple who has it easy  

the answers are:

- ask a supervisor’s opinion

- ask coworkers’ opinions

- attend trainings offered by the company

Let A, B, and C, and D be the following statements:
A The villain is French.
B The hero is American.
C The heroine is British.
D The movie is good.
Translate the following compound statements into symbolic notation.
a. The hero is American and the movie is good.
b. Athough the villain is French, the movie is good.
c. If the movie is good, then either the hero is American or the heroine is British.
d. The hero is not American, but the villain is French.
e. A British heroine is a necessary condition for the movie to be good.

Answers

what tha hell is that my bad i try lol im so dumb it is what it is

Microsoft
Excel Module 6

Answers

Answer:

what Is your question?

As you apply to college when should you apply for financial aid

Answers

Answer:

after you are accepted in the college

Explanation:

You should apply for admission to the colleges you are interested in BEFORE filing your FAFSA. Once you are accepted to the colleges you have applied to, you can add those schools to receive financial aid award offers from when you file your FAFSA.

fill in the blanks to save a file in Paint used...... key combination​

Answers

I don’t see nothing .

Read the list of Cybersecurity First Principles. In addition to the Cybersecurity Principles, research the Adversary Model of cybercrime using your textbook and the Internet. Using the information you uncover, as well as your own critical thinking skills, write a summary report that details each of the cybersecurity principles and describes the Adversary Model, including resources, capabilities, intent, motivation, risk aversion, and access.

Answers

Answer:

Throughout the interpretation portion below, this same overview of the look at various is summed up.

Explanation:

The cybersecurity architecture as well as concepts are required to ensure websites and software apps from perpetrators that aim to interrupt, pause, modify, or redirect data flow.

Domain separation:

This term in something like a program describes a set of data or orders that deserve security outside a program, a field of duty or regulation could be a domain.

Process isolation:

A process seems to be a program that runs on a computer, and each process seems to have a memory region.

Resource encapsulation:

There are several tools for a machine. The memory, hard drive, communication overhead, battery life, or a display may have been a commodity.

Least privilege:

In a machine, a privilege is another permission for the operator to operate on controlled machine property.

Layering:

A layer seems to be a different step in the sense of information protection that really should be penetrated by an offender to break a device.

Abstraction:

Abstraction has been the idea that it is possible to think about something complex and difficult as well as encompass it more obviously.

Write a statement that compares the values of score1 and score2 and takes the following actions. When score1 exceeds score2, the message "player1 wins" is printed to standard out. When score2 exceeds score1, the message "player2 wins" is printed to standard out. In each case, the variables player1Wins,, player1Losses, player2Wins, and player2Losses,, are incremented when appropriate.
Finally, in the event of a tie, the message "tie" is printed and the variable tieCount is incremented.
So far this is what I have:
if score1>score2:
player1Wins=player1Wins+1
player2Losses=player2Losses+1
print("player1Wins")
elif score2>score1
player2Wins=player2Wins+1
player1Losses=player1Losses+1
print("player2Wins")
else:
score1=score2
tieCount=tieCount+1
print("tie")
___________________________
However, I'm still getting an error and not sure why. Am I indenting something wrong?

Answers

Answer:

player1Wins = player1Losses = player2Wins = player2Losses = tieCount = 0

score1 = 10

score2 = 10

if score1>score2:

   player1Wins=player1Wins+1

   player2Losses=player2Losses+1

   print("player1 wins")

elif score2>score1:

   player2Wins=player2Wins+1

   player1Losses=player1Losses+1

   print("player2 wins")

else:

   tieCount=tieCount+1

   print("tie")

Explanation:

Since your indentation can not be understand what you give us, please try to do it as you see in the answer part.

Although it seems that this is a part of the code, it is normal that you get errors. However, since you keep track of the variables, it is better to initialize the variables that will keep the counts. Since initially, they are 0, you may set them as 0. Also, if you assign the values to the scores, probably you would not get any error. This way, you may test your code as I did.

Other than these, in the else part you do not need to write "score1=score2", because if score1 is not greater than score2 and if score2 is not greater than score1, this already implies that they are equal

Please help on a timer!!

Answers

Answer:

I believe it is the Second Option as all the others are correct.

Incompatible Power Adapter: While using your laptop, you notice the battery life is running low. When you plug in the AC adapter that was included with the laptop, an error message is displayed stating that the AC adapter is incompatible. You unplug the AC adapter and plug it back in, but the same message keeps appearing. Why might this be happening

Answers

Answer:

1. in compatible adaptor

2. bad cable

3. software issues

4. damaged laptop battery

Explanation:

there are several reasons why this might be happening.

if this message is being displayed it means that the adaptor may not be compatible. this implies that it is spoilt or the laptop just needs to be shutdown. if this fails, then adaptor needs replacing.

the adaptor cable itself may be faulty and needs changing. the laptop's battery may be too old or damaged and needs replacing. also the laptop may be having software issues and needs updating.

Extend to also calculate and output the number of 1 gallon cans needed to paint the wal. Hint: Use a math function to round up to the nearest gallon. (Submit for 2 points, so 5 points total)Enter wall height (feet): Enter wall width (feet): Wall area: 1000 square feet Paint needed: 2.86 gallons Cans needed: 3 can(s) Choose a color to paint the wall: Cost of purchasing blue paint: $ {'red': 35, 'blue': 75} Expected output Enter wall height (feet): Enter wall width (feet): Wall area: 1000 square feet Paint needed: 2.86 gallons Cans needed: 3 can(s) Choose a color to paint the wall: Cost of purchasing blue paint: $75

Answers

Answer:

Here is the Python program:

import math #import math to use mathematical functions

height = float(input("Enter wall height (feet): ")) #prompts user to enter wall height and store it in float type variable height

width = float(input("Enter wall width (feet): ")) #prompts user to enter wall width and store it in float type variable width

area = height *width #computes wall area

print('Wall area: {} square feet'.format(round(area))) #displays wall area using round method that returns a floating-point number rounded

sqftPerGallon = 350 #sets sqftPerGallon to 350

paintNeeded = area/ sqftPerGallon #computes needed paint

print("Paint needed: {:.2f} gallons".format(paintNeeded)) #displays computed paint needed up to 2 decimal places

cansNeeded = int(math.ceil(paintNeeded)) #computes needed cans rounding the paintNeeded up to nearest integer using math.ceil

print("Cans needed: {} can(s)".format(cansNeeded)) #displays computed cans needed

colorCostDict = {'red': 35, 'blue': 25, 'green': 23} #creates a dictionary of colors with colors as key and cost as values

color = input("Choose a color to paint the wall: ") #prompts user to enter a color

if color in colorCostDict: #if the chosen color is present in the dictionary

    colorCost = colorCostDict.get(color) #then get the color cost from dictionary and stores it into colorCost using get method that returns the value(cost) of the item with the specified key(color)

    cost = cansNeeded * colorCost #computes the cost of purchasing paint of specified color per cansNeeded

  print("Cost of purchasing {} paint: ${}".format(color,colorCostDict[color])) #displays the real cost of the chosen color paint

print("Cost of purchasing {} paint per {} gallon can(s): ${}".format(color,cansNeeded, cost)) #displays the cost of chosen color paint per cans needed.

Explanation:

The program first prompts the user to enter height and width. Lets say user enter 20 as height and 50 as width so the program becomes:

Wall area computed as:

area = height *width

area = 20 * 50

area = 1000

Hence the output of this part is:

Wall area: 1000 square feet                                                                                                                     Next program computes paint needed as:

paintNeeded = area/ sqftPerGallon

Since sqftPerGallon = 350 and area= 1000

paintNeeded = 1000 / 350

paintNeeded = 2.86

Hence the output of this part is:

Paint needed: 2.86 gallons

Next program computes cans needed as:      

cansNeeded = int(math.ceil(paintNeeded))

This rounds the computed value of paintNeeded i.e. 2.86 up to nearest integer using math.ceil so,

cansNeeded = 3                                                                  

Hence the output of this part is:

Cans needed: 3 can(s)                                                                                                                            Next program prompts user to choose a color to paint the wall

Lets say user chooses 'blue'

So the program get the cost corresponding to blue color and multiplies this cost to cans needed to compute the cost of purchasing blue paint per gallon cans. So

cost = cansNeeded * colorCost

cost = 3 * 25

cost = 75

So the output of this part is:

Cost of purchasing blue paint per 3 gallon can(s): $75                                                                                        The screenshot of the program along with its output is attached.

How would you access the Format Trendline task pane?

A. clicking the Insert tab and Trendline group
B. double-clicking on the trendline after it’s added
C. adding the Chart Element called Trendline
D. clicking the Format contextual tab and Format Selection

Answers

Answer:

B. double-clicking on the trendline after it's added

Explanation:

I did the assignment on edge 2020

A format trendline task pane is a task pane that is used to format or change the settings of a trendline in a chart. The correct option is B.

What is the format trendline task pane?

A format trendline task pane is a task pane that is used to format or change the settings of a trendline in a chart.

The easiest way to access the format trendline task pane for an inserted trend line is to double-click on the trendline after it is added. A preview of the Format trendline task pane is attached below. Therefore, the correct option is B.

Learn more about Task Pane:

https://brainly.com/question/20360581

#SPJ2

Which of the following statements BEST describe why Agile is winning?

Answers

Where are the statements

Answer:

nunya

Explanation:

what is cpu write its parts

Answers

Explanation:

hope it is helpful to you

Based on MLA guidelines, what is the correct line spacing?
O Double space
O Single space
O 1.5 lines

Answers

the answer is double space.

i always have to with my essay in MLA format and it’s double space,new times roman, and size 12 font

According to the Modern Language Association (MLA) guidelines, the correct line spacing for a document is double-spacing. This means that there should be a full blank line between each line of text in the document. Hence, option A is the correct answer.

Double spacing helps improve readability and makes it easier for readers to distinguish between different lines of text. It also allows for better legibility and makes it easier to add annotations or comments to the document.

It's important to note that the MLA guidelines may change over time, so it's always a good idea to consult the most recent edition of the MLA Handbook or check with your instructor or institution for any specific requirements regarding line spacing or formatting.

Hence, option A is the correct answer.

Learn more about MLA here:

brainly.com/question/32131813

#SPJ6

Raw facts, or ____
are the input for a computer process.
O data
O software
O output
O peripherals

Answers

data is the answer to this question

What is a promotional activity for a film?

Answers

Answer:

Sometimes called the press junket or film junket, film promotion generally includes press releases, advertising campaigns, merchandising, franchising, media and interviews with the key people involved with the making of the film, like actors and directors.

Explanation:

A dietician wants you to write a program that will calculate the number of calories a person can lose by walking at a slow pace for a mile; however, the user will have only the distance given by a pedometer, which is measured in steps and not miles. Assume each mile a person walks is equivalent to 2000 steps, and that for every mile walked, a person loses 65 calories. Allow the user of the program to enter the number of steps taken throughout the day. The program will calculate the distance in miles and the number of calories lost. The user of the program should also be able to enter the day of the week the data is being calculated for. The day of the week, the distance in miles, and the calories lost should then be displayed to the screen.
How would I write the calculation for this problem in pseudocode?

Answers

Answer:

The pseudocode is as follows

1. Input Steps

2. Input Day

3. Miles = Steps/2000

4. Calories = 65 * Miles

5. Print Calories

6. Stop

Explanation:

This line gets the number of steps for the day

1. Input Steps

This line gets the current day

2. Input Day

The line calculates number of miles

3. Miles = Steps/2000

This line calculates the calories lost

4. Calories = 65 * Miles

This line prints the calories lost

5. Print Calories

The pseudocode ends here

6. Stop

Cam needs to turn her Turtle to the right 50 pixels. Which line of code should Cam use? O tom(50) O tom. turtle(50) Otom. forward(fifty) O tom.right(50) WILL MARK BRAINEST

Answers

Answer:

I believe it is D

Explanation:

Answer:

Its D

Explanation:

Other Questions
British colonists objected to the Proclamation of 1763 because they Here are comparative statement data for Duke Company and Lord Company, two competitors. All balance sheet data are as of December 31, 2020, and December 31, 2019. Duke Company Lord Company 2020 2019 2020 2019 Net sales $1,866,000 $559,000 Cost of goods sold 1,059,888 297,388 Operating expenses 264,972 78,819 Interest expense 7,464 4,472 Income tax expense 54,114 6,149 Current assets 323,000 $311,200 82,000 $78,300 Plant assets (net) 521,400 501,200 138,300 125,100 Current liabilities 66,000 75,600 36,200 31,000 Long-term liabilities 108,200 90,200 29,000 24,600 Common stock, $10 par 496,000 496,000 122,000 122,000 Retained earnings 174,200 150,600 33,100 25,800 A) Prepare a vertical analysis of the 2020 income statement data for Duke Company and Lord Company. Condensed Income Statement For the Year Ended December 31, 2017 Duke Company Lord Company Dollars % Dollars %Net Sales 1,849,000 100% $546,000 100%Cost of Goods Sold 1,063,200 57.5% 289,000 52.9%Gross Profit $785,800 42.52% 57,000 47%Operating Expenses 240,000 12.9% 82,000 15%Income from Operations 545,800 29.5% 175,000 32%Other Expenses and LosesInterest Expense 6,800 0.4% 3,600 0.7%Income Before Income Tax 539,000 29.2% 171,400 31.4%Income Tax Expense 62,000 3.4% 28,000 5.1%Net Income/Loss $477,000 25.8% $143,400 26.3%B) Compute the 2017 return on assets and the return on common stockholders equity for both companies. Mr. and Mrs. Smith, an elderly couple, had no relatives. When Mrs. Smith became ill, the Smiths asked a friend, Henrietta, to help with various housekeeping chores, including cleaning and cooking. Although the Smiths never promised to pay her, Henrietta performed the chores for eighteen months. Henrietta now claims that she is entitled to the reasonable value of the services performed. Is she correct? Explain. what is male reproductive system One common feature of Byzantine and Roman architecture was? I suck at Spanish, smh!! Arman is building a bench. The bench comes out from the wall and there is a brace supporting the bench as shown in the figure below. The angle created between the wall and the brace is 52.6. Which equation can be used to solve for the missing angle? What effect does Satanta achieve by combining his central ideas with his assertive and passionate tone? Check all of the boxes that apply.He makes his central ideas seem more abstract and universal.He makes his central ideas seem like they were already the ideas of the reader.He emphasizes that the injustices he describes are affecting fellow humans who have emotions.He stresses the urgent need to do something about the injustices he describes.He highlights the cruelty of the US government and white Americans.He provides a view of the central ideas through the eyes of someone who is directly affected.He communicates a feeling of guilt for not communicating the central ideas earlier. this is my exam question a. what are professions and manpower related to teaching field? describe any oneb. write the name of any four diseases that attack on cows and buffaloes. explain any two of themc. "modern technology is developed from ancient technology."justify this statement. !!!!!! What are the names of four coplanar points? DNA Interactive \ worksheetDirections: Answer the questions on this worksheet. Complete each section by following theinstructions on the first page.DNA EXTRACTION1. What are three reasons why we would need to extract DNA?2. Why does the DNA need to be extracted from a cell before it can be analyzed?3. About how much DNA is inside every cells nucleus?4. When we extracted our own DNA last Friday, how did the things we used (Gatorade, alcohol,soap) relate to the things that are used in this virtual lab?5. What are the alcohol and soap used for?GEL ELECTROPHORESIS1. What is electrophoresis used for?2. Why is gel used?3. What makes the DNA move?4. Which strands move father? Why do you think they are able to do this?5. What is a buffer? Why is it used in electrophoresis?6. Why it is important to put the black (negative) cord closest to the wells where the negativelycharged DNA was injected?TRANSCRIPTION & TRANSLATION1. Why do you think it is important for there to be designated Start and Stop codons?2. What amino acid would you end up with if you replaced the U in the second reading frame witha G?3. What amino acid would you end up if you deleted the C from the second reading frame?4. What amino acid would you end up with if you added a G to the end of the second readingframe?5. How might having a mutation occur during transcription harm an organism? How might anorganism benefit from this? A dolphin is swimming 3 feet below sea level. It dives down 9 feet to catch some fish. Then the dolphin swims 4 feet up toward the surface with its catch.What is the dolphins final elevation relative to sea level? PLEASE HELP GIVING 15 P If A is at -4 and B is at 7, what is the distance between A and B?O 11O 9O 120 10 HELPPPPP PLEASEEE. For this assignment you are to put yourself in the place of the women you see in the paintings. You will pretend that you are a womanthe 1900s. Your goal will be to create a historical based fictional story for that women.First, as a fictional creation you will tell a detailed story of what it was like for a woman in 1909. Was she married? Did she work?Where does she live? what is a typical day for her? What as happening in the world around her?Then you will explain what her life was like now in 1927. using details, you should explain how her life has changed. What is sheexperiencing now? how did the events in the years between 1909 - 1927 impact her? How has her life changed?For the section of how the events in the years between 1909 1927 impact her you should detail what important historical eventshappened in that time span. You should identify at least 4-5 historical world events that would have happened in that time span and howthey are affecting her and the rest of the world. 3. How does the sense of belonging help to develop a good society? ?opinion in four points. Which statement best expresses how the author uses the varying viewpoints of the reader, Georgia, and her parents to create humor in the passage?The reader knows that Georgia throws a major tantrum to seek attention, but her parents can't even hear her.The reader knows that Georgia's parents are trying to be helpful, but her parents are unaware of how their comments make her feel.Georgia's parents praise her work even though they don't know what she is drawing, but the reader knows it is a portrait of her brother.Georgia believes that her parents knew what she had been drawing all along, but the reader knows they are just trying to make her feel better. WILL MARK BRANLIESTTT A star has a declination of approximately 15. Which of these statements is correct about the star? It is 15 to the left of the celestial equator. It is 15 to the right of the celestial equator. It is 15 above the celestial equator. It is 15 below the celestial equator Can somebody plz google these!!! its not very complicated, I just cant find it.Only question WILL MARK AS CROWN) :D Solve for x:8x15 = 6x + 1