Questions
C# Only Create a class named Customer that implements IComparable interface. Create 3 Customer class fields:...

C# Only

Create a class named Customer that implements IComparable interface.

Create 3 Customer class fields: Customer number, customer name, and amount due. Create automatic accessors for each field.

Create an Customer class constructor that takes parameters for all of the class fields and assigns the passed values through the accessors.

Create a default, no-argument Customer class constructor that will take no parameters and will cause default values of (9, "ZZZ", 0) to be sent to the 3-argument constructor.

Create an (override) Equals() method that determines two Customers are equal if they have the same Customer number.

Create an (override) GetHashCode() method that returns the Customer number.

Create an (override) ToString() method that returns a string containing the general Customer information (eg: CreditCustomer 1 russell AmountDue is $4,311.00 Interest rate is 0.01). Display the dollar amounts in currency format.

Implement CompareTo to compare object customer numbers for >, <, == to implement sorting for the array of objects.

Create a CreditCustomer class that derives from Customer and implements IComparable interface.

Create a class variable named Rate using an automatic accessor.

Create an CreditCustomer class constructor that takes parameters for the Customer class fields customer number, name, amount, and rate percent that sets the Rate CreditCustomer variable to the rate percentage. Pass the id number, name and amount back to the base Customer class constructor.

Create a default, no-argument CreditCustomer class constructor that will take no parameters and will cause default values of (0, "", 0, 0) to be sent to the 4-argument CreditCustomer constructor.

Create an (override) ToString() method that returns a string containing the general Customer information (eg: CreditCustomer 1 russell AmountDue is $4,311.00 Interest rate is 0.01 Monthly payment is $179.63). Display the dollar amounts in currency format.

Implement CompareTo to compare CreditCustomer objects based on customer numbers for >, <, == to implement sorting for the array of objects.

In Main:

Create an array of five CreditCustomer objects.

Prompt the user for values for each of the five Customer object; do NOT allow duplicate Customer numbers and force the user to reenter the Customer when a duplicate Customer number is entered.

CreditCustomer objects should be sorted by Customer number before they are displayed.

When the five valid Customers have been entered, display them all, display a total amount due for all Customers, display the same information again with the monthly payment for each customer. See the input/output example shown below.

Create a static GetPaymentAmounts method that will have the current Credit customer object as a parameter and returns a double value type. Each CreditCustomer monthly payment will be 1/24 of the balance (amount due). The computed monthly individual customer payment will be returned for each CreditCustomer object in the object array.

Internal Documentation.

Note that you will be overriding three object methods in the Customer class and one in the CreditCustomer class. Don't forget about IComparable.

An example of program output might look like this:

Enter customer number 3
Enter name johnson
Enter amount due 1244.50
Enter interest rate .10
Enter customer number 2
Enter name jensen
Enter amount due 543.21
Enter interest rate .15
Enter customer number 2
Sorry, the customer number 2 is a duplicate.
Please reenter
5
Enter name swenson
Enter amount due 6454.00
Enter interest rate .11
Enter customer number 1
Enter name olson
Enter amount due 435.44
Enter interest rate .20
Enter customer number 4
Enter name olafson
Enter amount due 583.88
Enter interest rate .25

Summary:

CreditCustomer 1 olson AmountDue is $435.44 Interest rate is 0.2
CreditCustomer 2 jensen AmountDue is $543.21 Interest rate is 0.15
CreditCustomer 3 johnson AmountDue is $1,244.50 Interest rate is 0.1
CreditCustomer 4 olafson AmountDue is $583.88 Interest rate is 0.25
CreditCustomer 5 swenson AmountDue is $6,454.00 Interest rate is 0.11

AmountDue for all Customers is $9,261.03

Payment Information:

CreditCustomer 1 olson AmountDue is $435.44 Interest rate is 0.2
Monthly payment is $18.14
CreditCustomer 2 jensen AmountDue is $543.21 Interest rate is 0.15
Monthly payment is $22.63
CreditCustomer 3 johnson AmountDue is $1,244.50 Interest rate is 0.1
Monthly payment is $51.85
CreditCustomer 4 olafson AmountDue is $583.88 Interest rate is 0.25
Monthly payment is $24.33
CreditCustomer 5 swenson AmountDue is $6,454.00 Interest rate is 0.11
Monthly payment is $268.92
Press any key to continue . . .


Declaring a child class:

public class Fiction : Book //for extending classes, you must use a single colon between the derived class name and its base class name
{
private:
//put your private data members here!
public:
//put your public methods here!
}

NOTE: when you instantiate an object of Fiction child class, you will inherit all the data members and methods of the Book class

In: Computer Science

Describe why worksheets are required for accounting transactions. What is the purpose of adjusting entries?

Describe why worksheets are required for accounting transactions. What is the purpose of adjusting entries?

In: Accounting

The following questions are to be done in JAVA. 1) If an array is not considered...

The following questions are to be done in JAVA.

1) If an array is not considered circular, the text suggests that each remove operation must shift down every remaining element of the queue. An alternative method is to postpone shifting until rear equals the last index of the array. When that situation occurs and an attempt is made to insert an element into the queue, the entire queue is shifted down so that the first element of the queue is in the first position of the array. What are the advantages of this method over performing a shift at each remove operation? What are the disadvantages?

2) what does the following code fragment do to the queue q?

ObjectStack s = new ObjuectStack();

while (!q.isEmpty())

s.push(q.remove());

while (!s.isEmpty())

q.insert(s.pop());

3)Describe how you might implement a queue using two stacks. Hint: If you push elements onto a stack and then pop them all, they appear in reverse order. If you repeat this process, they're now back in order.

Thank you for all the help.

In: Computer Science

*Please answer all three parts Three Part Question: X. (A) NASA Atmospheric Mission balloons use helium...

*Please answer all three parts

Three Part Question: X. (A) NASA Atmospheric Mission balloons use helium that expands to almost 1 million cubic meter at the top of the atmosphere where pressure is 0.003 atm only. Even though it takes about 2.5 hours to get to this altitude, it is assumed that the rise is fast enough to be considered as adiabatic. Find the initial volume of the helium at the ground level. (Helium is a mono-atomic gas). (B) If the initial temperature of the gas was 15 degree celsius what is the temperature of the gas at the top? Ignore real atmospheric temperature changes. (C) What is the change in internal energy of the gas?

*Please provide steps, explanations, and formulas.

*Explain to me as if I know nothing

*I am genuinly trying to learn and understand. Please and thank you.

In: Physics

3. Job design (Connect/Perform) Select the best answer based on your knowledge of different approaches to...

3. Job design (Connect/Perform)

Select the best answer based on your knowledge of different approaches to job design.

An online clothing retailer wants to provide superior customer service in its call centers. Based on an analysis of customer satisfaction surveys, the company decided to give customer service representatives as much discretion as possible in terms of taking appropriate actions to delight customers. This included making exceptions to policies on returns and refunds among other things. This is an example of which job design approach?

A. Specialization
B. Empowerment
C. Industrial engineering
D. Ergonomics

Select the best answer based on your knowledge of different approaches to job design.

The manager of a social media specialist at a public relations firm wants to redesign the job so that it contains a much wider range of job duties. Which approach to job design should the manager use in this situation?

A. Job enrichment
B. Job rotation
C. Job crafting
D. Job enlargement

Select the best answer based on your knowledge of the job characteristics model.

The new car sales professional’s job at a major car dealer network does not motivate many of the individuals who hold this job because they feel that the scope of the job is too narrow. Specifically, current and past sales professionals have said that while they are able to show customers various options for vehicles, they cannot be involved in negotiating the final selling price of the vehicle, nor can they handle the business side of the transaction in terms of getting loan approvals, completing the final paperwork for the sale, etc. Based on the job characteristics model, what would you do to address these issues if you were the manager?

A. Increase skill variety
B. Decrease autonomy
C. Increase task identity
D. Increase feedback

In: Operations Management

The college IT department manager no longer wants to use spreadsheets to calculate grades. The manager...

The college IT department manager no longer wants to use spreadsheets to calculate grades. The manager has asked you to create a program that will input the teachers' files and output the students' grades.

Write a Ruby program named format file.rb, which can be run by typing ruby widgets.rb.

In your Ruby environment, the program must read an input file formatted in CSV format, named input.csv. Each record contains data about a student and their corresponding grades.

The data will look similar to the following:

Student Name, assignment 1, assignment 2, assignment 3, assignment 4

John Adams, 90, 91, 99, 98

Paul Newman, 90, 92, 93, 94

Mary Smith, 95, 96, 99

Be careful to follow the output format exactly, including spacing. The output of your program must look like the following:

Student Assignment Average

John Adams    94.5

In: Computer Science

THIS IS IN PYTHON 3.0 Let's call the first function power(a,b). Use the built-in power function...

THIS IS IN PYTHON 3.0

Let's call the first function power(a,b). Use the built-in power function a**b in python to write a second function called testing(c) that tests if the first function is working or not.

I already have the function power(a,b), which is as follows:

def power(a, b):

    if (b == 0): return 1

    elif (int(b % 2) == 0):

        return (power(a, int(b / 2)) *

               power(a, int(b / 2)))

    else:

        return (a * power(a, int(a / 2)) *

                   power(a, int(b / 2)))

In: Computer Science

1.) What is the absolute pressure of the air in your car's tires, in psi, when...

1.) What is the absolute pressure of the air in your car's tires, in psi, when your pressure gauge indicates they are inflated to 35.0psi ? Assume you are at sea level.

2.)A Jaguar XK8 convertible has an eight-cylinder engine. At the beginning of its compression stroke, one of the cylinders contains 499 cm3 of air at atmospheric pressure

(1.01

In: Physics

Succinyl-CoA inhibits both citrate synthase and α-ketoglutarate dehydrogenase. How is succinyl-CoA able to inhibit both enzymes?

Succinyl-CoA inhibits both citrate synthase and α-ketoglutarate dehydrogenase. How is succinyl-CoA able to inhibit both enzymes?

In: Biology

C programming Program must use FileIO to read in a file formatted like below and print...

C programming

Program must use FileIO to read in a file formatted like below and print it to the screen;

#include<stdio.h>

#include<stdio.h>

int main)int argc, char * argv[])
{
    printf("hello\n");
    return 0;
}

it then must check if there are balanced Parentheses and balanced brackets.  

If it is balanced it must display "Code is balanced" and if its not balanced it must display "code is not balanced"

In: Computer Science

Just have a quick question about IT in general. If there are any good study techniques/websites/youtube...

Just have a quick question about IT in general. If there are any good study techniques/websites/youtube videos that can help explain how to use Python on a Macbook, I could really use the help. I'm currently running OSX 10.10.5 on my Mac, and am using the Python Crash Course book by Eric Matthes to reference.

In: Computer Science

q3. The probability a car salesman sells a car to a customer is 0.05 Assuming the...

q3. The probability a car salesman sells a car to a customer is 0.05 Assuming the salesmen sees 12 customers in a week, what is the probability he sells less than 2 cars? Write answer using three decimal places

q4. The Jones family was one of the first to come to the U.S. They had 6 children. Assuming that the probability of a child being a girl is .5, find the probability that the Jones family had: at least 2 girls? at most 2 girls?

In: Math

A thin 0.200-kg rod that is 350 mm long has a small hole drilled through it...

A thin 0.200-kg rod that is 350 mm long has a small hole drilled through it 87.5 mm from one end. A metal wire is strung through the hole, and the rod is free to rotate about the wire.

A. Determine the rod's rotational inertia I about this axis.

B. Determine the period of the rod's oscillation.

In: Physics

1. List the three types of radioactive decay and specifically what particles are released from the...

1. List the three types of radioactive decay and specifically what particles are released from the nucleus during these decays.

2. Radioactivity exists naturally and is man made. Radioactive particles are used for a variety of purposes in industry and medicine. Provide a list of at least 3 unique uses of radioactivity for the benefit of mankind.

3. Many workers are exposed to radioactivity while on the job. These workers must be monitored and are not allowed to continue to work in certain positions once an exposure amount has been met. What are the three parameters associated with an increase of dose on the worker? How could this dose possibly be minimized?

In: Physics

Hillsong Inc. manufactures snowsuits. Hillsong is considering purchasing a new sewing machine at a cost of...

Hillsong Inc. manufactures snowsuits. Hillsong is considering purchasing a new sewing machine at a cost of $2.45 million. Its existing machine was purchased five years ago at a price of $1.8 million; six months ago, Hillsong spent $55,000 to keep it operational. The existing sewing machine can be sold today for $245,090. The new sewing machine would require a one-time, $85,000 training cost. Operating costs would decrease by the following amounts for years 1 to 7: Year 1 $389,800 2 399,800 3 410,200 4 425,400 5 432,400 6 435,000 7 436,000 The new sewing machine would be depreciated according to the declining-balance method at a rate of 20%. The salvage value is expected to be $380,800. This new equipment would require maintenance costs of $99,000 at the end of the fifth year. The cost of capital is 9%. Click here to view PV table. Use the net present value method to determine the following: (If net present value is negative then enter with negative sign preceding the number e.g. -45 or parentheses e.g. (45). Round present value answer to 0 decimal places, e.g. 125. For calculation purposes, use 5 decimal places as displayed in the factor table provided.) Calculate the net present value. Net present value $ Determine whether Hillsong should purchase the new machine to replace the existing machine?

In: Accounting