Questions
Write a complete program using the do-while loop that prompts the user to enter a string...

Write a complete program using the do-while loop that prompts the user to enter a string and displays its first and last characters. Repeat until the user enter a string that contains only one character.
Here is an example to show you how the output may look like:

<output>
Enter a string ( type only one character to exit): this is my string

The first character is t
The last character is g
Enter a string ( type only one character to exit): _
<output>

Do the code in C++

In: Computer Science

The Welding Department of Healthy Company has the following production and manufacturing cost data for February...

The Welding Department of Healthy Company has the following production and manufacturing cost data for February 2017. All materials are added at the beginning of the process. Manufacturing Costs Production Data Beginning work in process Beginning work in process 15,000 units, 1/10 complete Materials $18,000 Units transferred out 54,600 Conversion costs 14,360 $32,360 Units started 50,900 Materials 200,129 Ending work in process 11,300 units, 1/5 complete Labor 67,500 Overhead 84,171 Prepare a production cost report for the Welding Department for the month of February. (Round unit costs to 2 decimal places, e.g. 2.25 and all other answers to 0 decimal places, e.g. 1,225.)

In: Accounting

A fallacy in which something is compared to something else in a misleading way. Example: Water...

A fallacy in which something is compared to something else in a misleading way.

Example: Water is a liquid that is good for you; therefore, since Windex is a liquid, it must be good for you.

1. Ad Hominem

2. Texas Sharpshooter

3. Slippery Slope

4. False Dichotomy/Dilemma

5. Appeal to Emotion

6. Red Herring

7. Hasty Generalization

8. Begging the Question

9. Weak Analogy

10. Non-Sequitur

11. Complex Question

12. Straw Man

13. Appeal to Ignorance

14. Ad Populum

In: Psychology

A 335 kg box is pulled 6.00 m up a 30° frictionless, inclined plane by an...

A 335 kg box is pulled 6.00 m up a 30° frictionless, inclined plane by an external force of 5425 N that acts parallel to the plane.

Calculate the work done by the external force.

Calculate the work done by gravity.

Calculate the work done by the normal force.

In: Physics

hi this question bring 20 marks im supposedly to do pfd (process flow diagram) for formaldehyde...

hi this question bring 20 marks im supposedly to do pfd (process flow diagram) for formaldehyde production plant using catalytic oxidation of methanol method , which mixer ,reactor and separator as main equipment .unreactant methanol is recycled but 20% of unreacted methanol is send to product stream as product stabilizer. Then solve the material balance when overall conversion of methanol is within (80-90) % , basis of calculation is stated. then the ratio on the amount of feed reactants fixed accordingly before enter the reactor.

just state any basis of calculation

In: Other

1- Definition and introduction of its layer 2- Explain the network functions 3- Explain the data...

1- Definition and introduction of its layer
2- Explain the network functions
3- Explain the data transfer method in the network
4- Mention the protocols if there is and explain them
5- Network positives and negatives effect

for the session layer

and transport layer

In: Computer Science

Mark Anderson, a 36 year old married male, will be sent to India to work in...

Mark Anderson, a 36 year old married male, will be sent to India to work in the sales office of your medium sized manufacturing facility that produces professional and causal clothing for women. My staffing approach is geocentic – Mark’s position is head of international sales in the sales office. Mark will take is wife Susan who is an elementary school teacher and their son, David who is in the 7th grade. Mark’s assignment is for 3 years. He and his family will then move back to the company’s headquarters to work.

You will need to develop a plan for: Pre-departure training for Mark and his family.

In-country training for Mark and his family.

Repatriation program for Mark.

Position and compensation for Mark upon ending his assignment.

In: Operations Management

Because the database server can cache and reuse ___________________ statements, they are more efficient than regular...

Because the database server can cache and reuse ___________________ statements, they are more efficient than regular SQL statements.

When you work with a result set, the ____________ identifies the current position in the result set.

You use the __________________ class to work with data returned from a SQL query.

What does the invoices result set contain after the code that follows is executed?
String sql = "SELECT InvoiceDate, InvoiceTotal "
           + "FROM Invoices WHERE InvoiceTotal > ?";
PreparedStatement ps = connection.prepareStatement(sql);
ps.setDouble(1, 100);

ResultSet invoices = ps.executeQuery();

a.

All rows from the Invoices table

b.

Rows from the Invoices table where InvoiceTotal is greater than 100

c.

Rows from the Invoices table where InvoiceTotal is greater than 0

d.

Rows from the Invoices table where InvoiceTotal is greater than 1

In: Computer Science

Watch Karen Armstrong's lecture about her book Muhammad: A Prophet For Our Time and write a...

Watch Karen Armstrong's lecture about her book Muhammad: A Prophet For Our Time and write a reflection on her contribution to an understanding of Islam in the contemporary world. What are the connections Armstrong makes between Western Society, Islam, Modernism and Fundamentalism?

In: Psychology

Use the Database “Company shown on pages 7 to 9 to answer the questions (a) to...

Use the Database “Company shown on pages 7 to 9 to answer the questions (a) to (g):

  1. Retrieve both the names and social security numbers of employees who do not work on any one of projects with the project number 1, 2, and 3. (Show the query and output)
  1. Retrieve the social security number and the name of each employee, and the corresponding social security number and the name of his/her supervisees if any. (Otherwise, just display the employee's social security number and name.) (Show the query and output)

  1. Retrieve the social security numbers of all direct supervisees of James E.

Borg. (Show the query and output)

  1. Retrieve all of direct and indirect supervisees of James E Borg in the employee table. (Show the query and output)

  1. Find the social security numbers of employees who have no dependents. (Show the query and output)

  1. Calculate the total number of employees, the average salary, and the total salary of department 5. (Show the query and output)

  1. Retrieve the number of employees, the average salary, and the total salary of each

department that has more than one employee.

DDL Statements to Create Tables the Database “Company”

To create EMPLOYEE table:

create table EMPLOYEE

(

name varchar2(19) not null,

ssn char (9),

bdate date,

sex char(3),

salary number(8,2),

superssn char(9),

dno varchar(8),

constraint empPK

primary key (ssn),

constraint empsuperFRK

foreign key (superssn)

references employee(ssn) disable

);

To create DEPARTMENT table:

create table DEPARTMENT

(

dname varchar2(15) not null,

dnumber varchar(8),

mgrssn char(9),

mgrstardate date,

constraint departPK

primary key (dnumber),

constraint departUK

unique (dname),

constraint departFRK

foreign key (mgrssn)

references employee (ssn) on delete cascade disable

);

To create DEPTLOCATION table:

create table DEPTLOCATION

(

dnumber varchar(8),

dlocation varchar2(15),

constraint dlocPK

primary key (dnumber, dlocation),

constraint dlocnoFRK

foreign key (dnumber)

references department (dnumber) on delete cascade disable

);

To create PROJECT table:

create table project

(

pname varchar2(15) not null,

pnumber varchar(8),

plocation varchar2(15),

dnum varchar(8),

constraint projUK

unique (pname),

constraint projPK

primary key (pnumber),

constraint projFRK

foreign key (dnum)

references DEPARTMENT(dnumber)

);

To create WORKSON table:

create table WORKSON

(

essn char(9),

pno varchar(8),

hours number(5,1),

constraint workPK

primary key (essn, pno),

constraint workssnFRK

foreign key (essn)

references EMPLOYEE(ssn) on delete cascade disable,

constraint workpnoFRK

foreign key (pno)

references PROJECT(pnumber) on delete cascade disable

);

To create DEPENDENT table:

create table DEPENDENT

(

essn char(9),

dependentname varchar2(15),

sex char(3),

bdate date,

relationship varchar2(12),

constraint depenPK

primary key (essn, dependentname),

constraint depenFRK

foreign key (essn)

references EMPLOYEE (ssn) on delete cascade disable

);

DML Statements to Insert Data into Tables:

Insert the Data into the DEPARTMENT Table:

insert into DEPARTMENT values ('Research','5','333445555','22-MAY-78');

insert into DEPARTMENT values ('Administration','4','987654321','01-JAN-85');

insert into DEPARTMENT values ('Headquarters','1','888665555','19-JUN-71');

Insert the Data into the EMPLOYEE Table:

insert into EMPLOYEE values ('John B Smith','123456789','09-JAN-55','M',30000,'333445555','5');

insert into EMPLOYEE values ('Franklin T Wong','333445555','08-DEC-45','M',40000,'888665555','5');

insert into EMPLOYEE values ('Alicia J Zelaya','999887777','19-JUL-85','F',25000,'987654321','4');

insert into EMPLOYEE values ('Jennifer S Wallace','987654321','20-JUN-31','F',43000,'888665555','4');

insert into EMPLOYEE values ('Ramesh K Narayan','666884444','15-SEP-52','M',38000,'333445555','5');

insert into EMPLOYEE values ('Joyce A English','453453453','31-JUL-62','F',25000,'333445555','5');

insert into EMPLOYEE values ('Ahmad V Jabbar','987987987','29-MAR-59','M',25000,'987654321','4');

insert into EMPLOYEE values ('James E Borg','888665555','10-NOV-27','M',55000,' ','1');

Insert the Data into the DEPTLOACITON Table:

insert into deptlocation values ('1','Houston');

insert into deptlocation values ('4','Stafford');

insert into deptlocation values ('5','Bellaire');

insert into deptlocation values ('5','Sugarland');

insert into deptlocation values ('5','Houston');

Insert the Data into the PROJECT Table:

insert into project values ('ProductX','1','Bellaire','5');

insert into project values ('ProductY','2','Sugarland','5');

insert into project values ('ProductZ','3','Houston','5');

insert into project values ('Computerization','10','Stafford','4');

insert into project values ('Reorganization','20','Houston','1');

insert into project values ('Newbenefits','30','Stafford','4');

Insert the Data into the DEPENDENT Table:

insert into dependent values ('333445555','Alice','F','05-APR-76','Daughter');

insert into dependent values ('333445555','Theodore','M','25-OCT-73','Son');

insert into dependent values ('333445555','Joy','F','03-MAY-48','Spouse');

insert into dependent values ('987654321','Abner','M','29-FEB-32','Spouse');

insert into dependent values ('123456789','Michael','M','01-JAN-78','Son');

insert into dependent values ('123456789','Alice','F','31-DEC-78','Daughter');

insert into dependent values ('123456789','Elizabeth','F','05-MAY-57','Spouse');

Insert the Data into the WORKSON Table:

insert into workson values ('123456789','1',32.5);

insert into workson values ('123456789','2',7.5);

insert into workson values ('666884444','3',40.0);

insert into workson values ('453453453','1',20.0);

insert into workson values ('453453453','2',20.0);

insert into workson values ('333445555','2',10.0);

insert into workson values ('333445555','3',10.0);

insert into workson values ('333445555','10',10.0);

insert into workson values ('333445555','20',10.0);

insert into workson values ('999887777','30',30.0);

insert into workson values ('999887777','10',10.0);

insert into workson values ('987987987','10',35.0);

insert into workson values ('987987987','30',5.0);

insert into workson values ('987654321','30',20.0);

insert into workson values ('987654321','20',15.0);

insert into workson values ('888665555','20',NULL);

In: Computer Science

Problem 31. Calculate the expected value and variance of X for each of the following scenarios....

Problem 31. Calculate the expected value and variance of X for each of the following scenarios.

1. X = {0, 1} where each has equal probability. (A coin flip)

2. X = {1, 2, 3, 4, 5, 6} where each has equal probability. (A die roll)

3. X = {0, 1} with f(0) = 1/3 and f(1) = 2/3.

4. X = B(3, 0.35). (Use info from Problem 26.)(Problem 26. Let X = B(3, 0.35). Calculate each f(k) and the sum X 3 k=0 f(k).)

Problem 32. Calculate the expected value and variance of X = B(3, 0.35) by using Theorem 41. Compare the results to part 4 of Problem 31.

Problem 33. Let (X, f) be a CPD. Show that P(X = x) = 0 for any x ∈ X.

Problem 34. Consider f : R → R defined by f(x) = 1 1 + x 2 . Explain why f is not a PDF, and find a constant c so that cf is a PDF.

Problem 35. Let F be a CDF for a CPD (X, f). Find lim x→−∞ F(x) and limx→∞ F(x).


it is on there its right after number 4

In: Math

If the LDL-Cholesterol is to be calculated by the Friedewald formula, which of the following measurements...

If the LDL-Cholesterol is to be calculated by the Friedewald formula, which of the following measurements needs to be preformed by a chemical method?

A. All of these mentioned here

B. HDL-C

C. Triglycerides

D. Total Cholesterol

(I answered B and it was incorrect)

In: Anatomy and Physiology

Discuss the racial disparities that allegedly exist within our criminal justice system.

Discuss the racial disparities that allegedly exist within our criminal justice system.

In: Psychology

Write the binary representation of the decimal number -64 (negative 64) Assuming IEEE 754 single precision...

Write the binary representation of the decimal number -64 (negative 64)

  1. Assuming IEEE 754 single precision format
  2. Assuming 8-bit 2’s complement representation
  3. Assuming signed magnitude representation

In: Computer Science

Part III: Account for notes payable and accrued interest __current liabilities____ are notes payable due within...

Part III: Account for notes payable and accrued interest

__current liabilities____ are notes payable due within one year (or operating cycle if longer).

At the end of each year, a company reclassifies the portion of its long-term debt principal payments that must be paid in the next year from long-term debt to a current _current liability__.

Part IV: Account for accrued liabilities and unearned revenue

The major operating expense for a merchandising company is payroll. True or false?

false

What payroll liabilities does salary expense create?

Employee Income Tax Payable, Gross pay, FICA Tax Payable

Salary Payable, Employee Income Tax Payable, Union dues

Employee Income Tax Payable, FICA Tax Payable, Salary Payable

Healthcare, Salary Payable, FICA Tax Payable

Every expense accrual, including payroll, has the same effect: ____________________ and __________________________ because of the expense.

When is a company required to record warranty expense?

Part V: Account for contingent liabilities

A contingent liability is a potential liability that depends on the _________________ outcome of _________ events.

Part VI: Account for bonds payable and interest expense with straight-line amortization

______________________________ are groups of debt securities issued to multiple lenders, called bondholders.

In: Accounting