Questions
To be Completed in C# Write a program that creates an exception class called ManyCharactersException, designed...

To be Completed in C#

Write a program that creates an exception class called ManyCharactersException, designed to be thrown when a string is discovered that has too many characters in it. Consider a program that takes in the last names of users. The driver class of the program reads the names (strings) from the user until the user enters "DONE". If a name is entered that has more than 20 characters, throw the exception. Design the program such that it catches and handles the exception if it is thrown. Handle the exception by printing an appropriate message, and then continue processing more names by getting more inputs from the user. Note: Your program should exit only when the user enters "DONE".

SAMPLE OUTPUT:

Enter strings. When finished enter DONE

Short string

You entered: Short string

Medium size string

You entered: Medium size string

Really really long string, someone stop me!

You entered too many characters

DONE

You entered:

DONE

Good bye!

In: Computer Science

Solve the following: 1. The engineering director asks her managers if they have any nominations for...

Solve the following:

1. The engineering director asks her managers if they have any nominations for promotions from within their respective departments. The maximum number of promotions allowed for the entire division is 2. The nominations must be selective and only for people whose performance whose performance has been outstanding. One manager thought his whole team had been outstanding, so he recommended all 10 promotions. He reasoned, “It is better for the morale of the team that they know that I support all of them fully. If the director now promotes 1 of the 10 or none at all, then they will not feel so bad knowing that at least I have thought them all worthy of being promoted.” What should the director do?

2. The customer service manager is a busy person. He rushes from one problem to another without actually taking time to complete any job and solve any problem properly. What control problem does the customer service manager have? What can he do to enhance his job effectiveness?

3. Mary Stevenson, the shop manager, works well with all of the staff members. She regards Mike Denver, who has the longest tenure and most extensive experience in the group, as the second in command for the day-to-day operation. The shop is modernizing its operation with the use of computers. Mary Stevenson and her boss, Craig Martin, decide to bring in a young computer specialist, Janet Carter, from outside. To make sure that the shop modernization process moves forward, Mary Stevenson spends a lot of time with Janet Carter. Mike Denver sees less and less of Mary Stevenson, although Mary still depends on Mike for the day-to-day operation. Mike resents being shut out from the work done by Mary and Janet. Mike does not complain, but after six months, he tenders his resignation and goes to work for a competitor. Mary Stevenson is shattered. She deeply regrets this major loss to the shop. What went wrong? What was not controlled? What would you do differently?

In: Operations Management

Whenever an exception arises, it terminates the program execution, which means it stops the execution of...

Whenever an exception arises, it terminates the program execution, which means it stops the execution of the current java program.
a) Identify and explain how the remedy for the exception is considered.
b) Implement the above-identified remedy in the java program to overcome the problem raised in the exceptional case when we try to open and close the files.

In: Computer Science

What are the economic and human costs of White-Collar crime? How are the costs different from...

What are the economic and human costs of White-Collar crime? How are the costs different from street crimes?

Please answer in 300 words.

In: Psychology

what is time based pricing and how is it used? in 200 words and in own...

what is time based pricing and how is it used? in 200 words and in own words please

In: Operations Management

explain what the term "leakage" means. identify the three main ways that economic Leakage can occur?

explain what the term "leakage" means. identify the three main ways that economic Leakage can occur?

In: Operations Management

Provide pricing methods (at least 3) and costing methods(at least 3) that can be used by...

Provide pricing methods (at least 3) and costing methods(at least 3) that can be used by service industries in the event management activities such as annual dinner of the company or training seminar.

In: Accounting

Create HiArrayPerson class to store objects of type class Person (in java ) and Give example

  1. Create HiArrayPerson class to store objects of type class Person (in java ) and Give example

In: Computer Science

When traveling through mountains, most highways periodically have emergency escape ramps to allow large, heavy vehicles...

When traveling through mountains, most highways periodically have emergency escape ramps to allow large, heavy vehicles to stop safely, even when their brakes are not working properly. One such escape ramp is angled 13 ∘ above the horizontal. The brakes on one large truck (mass 1.4×104 kg ) fail when driving at a speed of 80 miles per hour (35.75 m/s), and the driver makes use of the escape ramp.

Part A: What is the minimum length of ramp necessary for this truck to come to a stop? Assume negligible friction and air resistance forces.

Part B: If instead dissipative forces (friction and air resistance) provide a constant force of 60,000N parallel to the ramp, what is the minimum length of ramp necessary for this truck to come to a stop?

my answer for part A is 290 m, but I am unsure how to get the answer for part B. please help

In: Physics

Finley designs and manufactures displays used in mobile devices. Serious flooding throughout the region affected ​Finleys'...

Finley designs and manufactures displays used in mobile devices. Serious flooding throughout the region affected ​Finleys' facilities. Inventory was completely​ ruined, and the​ company's computer​ system, including all accounting​ records, was destroyed.

Before the disaster recovery specialists clean the​ buildings,

Heather Bailey​, the company​ controller, is anxious to salvage whatever records she can to support an insurance claim for the destroyed inventory. She is standing in what is left of the Accounting Department wtih Tad Myers​, the cost accountant. "I didn't know mud could smell so​ bad,"Tad says.​ "What should I be looking​ for?" ​"Don't worry about beginning inventory​ numbers," responds Heather. ​"We'll get them from last​ year's annual report. We need​ first-quarter cost​ data." "I was working on the​ first-quarter results just before the storm​ hit," Tad says.​ "Look, my​ report's still in my desk drawer. But all I can make out is that for the first​ quarter, material purchases were $524,000 and that direct​ labor, manufacturing overhead​ (other than indirect​ materials), and total manufacturing costs to account for were $545,000​; $218,000​; and $1,508,000​, respectively.​ Wait, and cost of goods available for sale was $1,615,000​." ​"Great," says Heather. ​"I remember that sales for the period were approximately $1.6 million. Given our gross profit of 15​%, ​that's all you should​ need." Tad is not sure about​ that, but decides to see what he can do with this information.

the beginning inventory numbers are as follows:

Raw​ materials, $85,000

Work in​ process, $187,000

Finished​ goods, $209,000

He remembers several schedules he learned in college that may help him get started.

Requirement

Determine the ending inventories of raw​ materials, work in​ process, and finished goods. Assume that Raw Materials Inventory contains only direct materials.

Start by determining the ending inventory of raw materials by calculating the direct materials used.

Finney Displays

Calculation of Direct Materials Used

For Current Year

Plus:

Less:

​Next, determine the ending inventory of work in process by calculating the cost of goods manufactured.

Finney Displays

Calculation of Cost of Goods Manufactured

For Current Year

Plus:

Less:

​Finally, determine the ending inventory of finished goods by calculating the cost of goods manufactured.

Finney Displays

Calculation of Cost of Goods Sold

For Current Year

Plus:

Less:

In: Accounting

what is geographic pricing and how is it used? 300 words and in own words please

what is geographic pricing and how is it used? 300 words and in own words please

In: Operations Management

DHCP Troubleshooting Review the following technical support email from a junior IT admin: Facilitation Dear IT...

DHCP Troubleshooting

Review the following technical support email from a junior IT admin:

Facilitation

Dear IT Admin:

I am working at a branch office and have been tasked with changing out the DHCP scope to match the overall corporate IP address scheme. The main office assigned me an IP address range of 192.168.0.200 through 192.168.0.225. I changed the scope on Friday afternoon and came in on Monday morning to discover that only some of the workstations had picked up new leases from the new DHCP scope. Any ideas as to what may be happening, what I might check or adjust?

Thank you, Junior Admin

-- Respond in detail with clarifying questions, suggested approaches and/or possible solutions

In: Computer Science

in one paragraph give an opinion about " Unmarried in Saudi Arabia"

in one paragraph give an opinion about " Unmarried in Saudi Arabia"

In: Nursing

The 2015 supermoon eclipse of the moon took place when the moon was at perigee. (a)...

The 2015 supermoon eclipse of the moon took place when the moon was at perigee.

(a) How much larger (as per cent) is the angular radius of the moon at perigee compared to apogee?

(b) The moon is drifting away from the Earth at a rate of 4 cm per year. How long will it take until we no longer see any total Solar eclipses at perigee? You may assume that the semi-major axis of the Earth-Sun system does not change over this period

In: Physics

List two algorithms commonly used to identify a frame for replacement

List two algorithms commonly used to identify a frame for replacement

In: Computer Science