Write a program that contains a main method and another method named userName. The main method should prompt the user to enter a full name. The userName method takes the full name as an argument and prints the name in reverse order and returns the number of characters in the name. See Sample Output (input shown in blue).
Sample Output
Please enter your FULL name
Billy Joe McCallister
Here is the name Billy Joe McCallister in reverse:
retsillaCcM eoJ ylliB
Billy Joe McCallister consists of 21 characters
In: Computer Science
Create a program that creates a sorted list from a data file. The program will prompt the user for the name of the data file.
Create a class object called group that contains a First Name, Last Name, and Age. Your main() function should declare an array of up to 20 group objects, and load each line from the input file into an object in the array.
The group class should have the following private data elements:
first name ,last name age
The group class should have the following functions:
Constructor(s)
Destructor - optional
Get - read first name, last name, and age from an input stream
Put - write last name, first name, and age to an output stream
The group class should have the following operators:
Your program should do the following:
==============
text file
Ann ember 70
jacob Mark 68
David smith 45
Frank lee 37
John doe 30
Kathleen honor 34
bob ember 42
bob ember 13
Richard start 47
Susan hox 36
In: Computer Science
c++ Create a program that creates a sorted list from a data file. The program will prompt the user for the name of the data file. Create a class object called group that contains a First Name, Last Name, and Age. Your main() function should declare an array of up to 20 group objects, and load each line from the input file into an object in the array. The group class should have the following private data elements: first name ,last name age The group class should have the following functions: Constructor(s) Destructor - optional Get - read first name, last name, and age from an input stream Put - write last name, first name, and age to an output stream The group class should have the following operators: > < == compare the group to another group, using Last name, First name, then age, and return a bool Your program should do the following: Prompt the user for the name of the file Open the file Read the data into the array of group objects (maximum size 20) Close the file Sort the array Display the array ============== text file Ann ember 70 jacob Mark 68 David smith 45 Frank lee 37 John doe 30 Kathleen honor 34 bob ember 42 bob ember 13 Richard start 47 Susan hox 36 Expert Answer
In: Computer Science
PostgreSQL
1. Write a query to join two tables employees and departments to
display the department name, first_name and last_name, hire date,
and salary for all managers who have more than 15 years of
experience.
2. Write a query to join the employees and departments table to find the name of the employee including the name and last name, department ID and department name.
3. Write a SQL query to join three tables of employees, departments, and locations to find the names, including first and last name, job title, department name and ID, of employees working in London.
4. Write a query to concatenate the two tables of employees and yourself to find the employee id, last_name as Employee, and their manager_id and last name as Manager.
5. Write a query to connect to the employee table and to yourself to find the name, including first_name and last_name, and the hiring date for those employees who were hired after employee Jones.
6. Write a query to combine the two employee and department tables to get the department name and the number of employees working in each department.
7. Write a query to find employee ID, title and number of days he worked, who worked in department with ID 90.
8. Write a query to combine the two employee and department tables to display the department ID, department name, and manager name.
In: Computer Science
A neutron collides elastically with a helium nucleus (at rest initially) whose mass is four times that of the neutron. The helium nucleus is observed to move off at an angle θ′2=45∘. The neutron's initial speed is 6.6×105 m/s .
the angle of the neutron after the collision: 76 below the initial direction of the neutron
Determine the speeds of the two particles, v′n and v′He, after the collision.
In: Physics
MATLAB question
The range of a projectile launched at velocity V and angle q
is R=2 V2 sin(q) cos(q)
What should the accuracy of the launch angle have be to keep the uncertainty of the range to within 5%.
In: Advanced Math
For a power supply with full wave bridge rectifier, input voltage is 230 V and required output voltage
is 12 V DC Load resistance is of 100 . Determine output rms voltage, dc current, rms current, power, ac power, efficiency of the rectifier, form factor, ripple factor, transformer utilization factor,
and size of the transformer Draw complete diagram of the supply circuit
In: Electrical Engineering
Write each vector as a linear combination of the vectors in S. (Use
s1 and s2,
respectively, for the vectors in the set. If not possible, enter IMPOSSIBLE.)
S = {(1, 2, −2), (2, −1, 1)}
(a) z = (−8, −1,
1)
z
=
(b) v = (−2, −5,
5)
v
=
(c) w = (1, −23,
23)
w
=
(d) u = (2, −6,
−6)
u =
In: Advanced Math
Use the following data provided to calculate the mass thats needed for the solution.
DDCNa.3H2O (FW=225.31) 50 ml of 2% w/v DDCNa solution in methanol
NaAc.3H2O (FW=136.08) 50 ml of 5% w/v NaAc solution in DI water
CuSO4 .5H2O (FW=249.68) 100 ml of 300 ppm Cu2+ solution in 1% HNO3
In: Chemistry
1. You need 100 mL of 10% (W/V) CuSO4 (FW 160), but only CuSO4 * H2O is available.
2. A procedure requires the use of a 10% (W/V) sodium carbonate (FW 106). Prepare 200 mL using the monohydrate form.
3. Prepare 1 mmol/L Lithium standard from lithium carbonate (Li2CO3). Give the quantity in mg/L.
In: Chemistry