Questions
C++ Question Design and implement a class that stores a list of students. Each student has...

C++ Question

Design and implement a class that stores a list of students. Each student has the list of courses he/she registered for the semester. You will need a container of containers to hold this list of students. Choose the optimal container for this exercise, noting that no duplicates should be permitted. Use STL classes with iterators to navigate the list. Develop a test program, which allows options to add, remove, and list students and their associated course lists. Also include a function that displays the first course name in each list (the function must use iterators) Please use namespace std for this.

In: Computer Science

Ratio of Liabilities to Stockholders' Equity and Ratio of Fixed Assets to Long-Term Liabilities Recent balance...

Ratio of Liabilities to Stockholders' Equity and Ratio of Fixed Assets to Long-Term Liabilities

Recent balance sheet information for two companies in the food industry, Santa Fe Company and Madrid Company, is as follows (in thousands):

Santa Fe Madrid
Net property, plant, and equipment $743,280 $574,700
Current liabilities 331,320 466,878
Long-term debt 687,534 413,784
Other long-term liabilities 241,566 160,916
Stockholders' equity 300,100 226,430

a. Determine the ratio of liabilities to stockholders' equity for both companies. Round to one decimal place.

Santa Fe
Madrid

b. Determine the ratio of fixed assets to long-term liabilities for both companies. Round to one decimal place.

Santa Fe
Madrid

c. Although   uses more debt, it has   creditor protection and borrowing capacity.

In: Accounting

Two separate capacitors, C1 and C2 C1 = 36 micro-Coulomb on 3 micro-Farad C2 = 72...

Two separate capacitors, C1 and C2
C1 = 36 micro-Coulomb on 3 micro-Farad
C2 = 72 uC on X 2uF, , if zero 1
C2 had a gap of 0.2m maintained by a compressed plastic spring inside the gap, the natural spring length
was 0.5m, the compressed spring length was 0.2 m. Spring constant = 8,000 micro-Newton/ meter
Action: Connected the two capacitors in parallel
Part A
Find Q2-new, C2-new, new gap,
Hint: Capacitance has geometry parameters, build an equation with numerical coefficients
Hint: Parallel connection, V same, build an equation with numerical coefficients
Hint: F-attract equals F-spring with spring inside the gap, build an equation with numerical coefficients

Part B
Find the initial total energy, the final total energy,
Hint: use the energy formulas

In: Physics

You will generate a People class of object and load an ArrayList with person objects, then...

You will generate a People

class of object and load an ArrayList with person objects, then report the contents of that ArrayList. To do so, you must

perform the following:

(30 pts.)

A) (15/30 pts.

(line break, 11 pt)

) - Create a class file “People.java” (which will generate People.class upon compile). People.java will

have eight(8) methods to

1) read a .txt file ‘people.txt’

2) generate:

List of all students AND teachers

List of all students OR teachers

List of all female or male students OR teachers

List of female or male students OR teachers whose age is greater than or equal to given age

List of female or male students OR teachers whose age is greater than or equal to given age1

and less than given age2

List students OR teachers whose age is greater than or equal to given age

List students OR teachers whose age is greater than or equal to given age1 and less than given

age2 (line break, 11 pt)

  1. B) (3/30 pts.) – When you instantiate your class with new, you must use the text file name (eg. People p = new People ("people.txt"))

  2. C) (10/30 pts.) – You are required to use “Constructor”, “ArrayList” and “Overloading” concepts.

    [Example of Main()]→This is an example. I will test all cases.

    public static void main(String[] args)throws FileNotFoundException { People p =new People("people.txt");

D) Once your People.class is functional, generate a file “Assg05_yourName.java”.

Assg05_yourName.java should contain only one Main() method.

p.list();
p.list("s");
p.list("t","f");
p.list("s","f", 20); // List of female students whose age>=20

// List of students AND teachers)
// List of students
// List of female teachers

p.list("s","f", 15, 20); // List of female students whose age>=15 and age<=20

p.list("s", 20); // List of students whose age>=20

p.list("s", 15, 20); // List of students whose age>=15 and age<=20 }

and the people. txt is

s John m 18
t William m 42
s Susan f 18
s Jack m 19
s Jennifer f 28
t Sophia f 35
t Emma f 37
s Chloe f 14
s Racheal f 14
s Olivia f 20
t Cara f 33
t Tom m 47
s Mia f 21
s Isabella f 18
s Zoe f 21
t Lily f 22


use java program

In: Computer Science

A man named Bob Smith believes that he is Santa Claus (who delivers presents to all...

A man named Bob Smith believes that he is Santa Claus (who delivers presents to all the children around the world on Christmas Eve). In fact, he is not Santa, but he has believed this for many years. He signs his name "Santa." He signs many contracts as "Santa," and he refers to his wife as "Mrs. Claus" even though her name is actually Betty Smith. She puts up with it, because he really does believe he is Santa, and because she loves him and because his wages from his job at Hasbro toys pays the bills.

One day he enters a contract with your company to hire you to build him a gigantic workshop in his backyard so he can build his toys and stable his "eight tiny reindeer." In return he will pay you $120,000 for the construction. When his wife learns of this deal, she tries to reject it because it is voidable due to his lack of contractual capacity.

Was this contract voidable, or valid and enforceable? Fully explain your answer.

In: Economics

Directions: You are to craft a persuasive speech for the following prompt: It is Christmastime, and...

Directions: You are to craft a persuasive speech for the following prompt: It is Christmastime, and Santa Claus has placed you on his VERY NAUGHTY list. However, instead of handing you lumps of coal, he has turned this list over to his old friend Krampus. You are given one opportunity to convince Krampus that you are in fact NICE and that he should, as a result, not drag you off in his basket and beat you with switches and chains. N.B.: While there is no set “length” for this speech script, you must be certain that you make a complete and convincingargument. (Translation: I expect an Introduction, a Body with three main points, and a Conclusion that would be as developed as one should be for any speech made in this class).

In: Psychology

What are different types of live loads consider in the design of RCC bridges

What are different types of live loads consider in the design of RCC bridges

In: Civil Engineering

describe how bridges technology fit into the overall EHR mirgration path

describe how bridges technology fit into the overall EHR mirgration path

In: Operations Management

How can I return in a list all possible paths from a grid if I can...

How can I return in a list all possible paths from a grid if I can only go right and down?

For example consider the following table:

A B C

D E F

If I go right I need to insert in my list 'H' if I go down I need to insert in my list 'V'.

For example the path A - > B -> C -> F would be H - H - V

The path A -> D -> E -> F would be V - H - H

How would be the code for that? Please preference write in JAVA.

Thank you,

In: Computer Science

CAN YOU PLEASE ANSWER ALL QUESTIONS. 1). Two point charges, q₁= +10 nC and q₂= +5...

CAN YOU PLEASE ANSWER ALL QUESTIONS.

1). Two point charges, q₁= +10 nC and q₂= +5 nC, are located on the x-axis at x= 0 and x=5.00 m. What is the electric field at point x=1.10 m?

2). Two point charges, q₁= +8 nC and q₂= -3 nC, are located on the x-axis at x= 0 and x=5.00 m. What is the electric field at point x=3 m?

3). Two charges, one is + 36 nC and other is -2* 36 nC are separated by 1 m distance. What is the electric field at the mid point of the line joining the charges?

4). Two charges, one is - 61 nC and other is 2* 61 nC are separated by 2 m distance. What is the electric field at the mid point of the line joining the charges?

5). Three charges, + 21 uC, - 21 uC and + 21 uC are placed at A (0,5cm), B (5cm,0), C(-5cm,0). Calculate the potential energy of the whole system of charges.

In: Physics