Questions
Question #2 Write a program that prints a nicely formatted table of the product of every...

  • Question #2 Write a program that prints a nicely formatted table of the product of every pair of numbers in a given set of integer numbers. Your program reads two integer numbers x and y that represent the lower and upper bounds of the set, (?≤?x≤y), respectively. Then, for every pair of numbers in this set {?,?+1,?+2,…,?}{x,x+1,x+2,…,y}, your program should compute the product of the two numbers.
  • Please note the following:
    1. Your program should read each input (lower bound and the upper bound) one at a time, and should make sure that each input is an integer. If not, it should prompt the user to re-enter a valid input.
    2. Once the two numbers are read, your program should validate that the lower bound is less than or equal to the upper bound. Otherwise, the input should be read again, starting from the lower bound.

In: Computer Science

Everything else works except the range, I only want the numbers entered to be in between...

Everything else works except the range, I only want the numbers entered to be in between 2-70 but I can enter 700 for some reason. How can I make the limit work? (This is in C#)

namespace Prime_Numbers
{
class Program
{
static void Main(string[] args)
{
int limit; // Declare limit as an int as we do not need double.

Console.WriteLine("*****************************\nPRIME NUMBERS UP TO 25\n*****************************");

Console.Write("Enter a limit to the prime numbers you want displayed: ");

while (true) {

string input = Console.ReadLine(); // Convert number to a string.
Int32.TryParse(input, out limit);
if (!Int32.TryParse(input, out limit)) // See if we can parse the 'text' string. If False:
{

Console.WriteLine("Input must be a whole number. Please try again.");
}

else if (limit <= 70 || limit >= 2) // If True run the program:
{
Console.WriteLine("Calculating...");
for (int i = 1; i <= limit; i++) // Main loop for the prime number rows.
{
if (checkPrime(i))
{
for (int j = 0; j < i; j++) //For space after "X" has printed.
{
Console.Write("*");
}

Console.WriteLine(" " + i); // Adds prime number onto string output.
}
}

break;
}
  
else // If the number is out of range:
{
Console.WriteLine("The value entered must be between 2 and 70.");
}
}

Console.ReadKey();
}

static bool checkPrime(int n) // Create function to check for prime values.
{
// Check if n is 0 or 1.
if (n == 0 || n == 1)
{
return false;
}

else
{
// Loop from 2 to n / 2,
for (int i = 2; i <= n / 2; i++)
{
// If any number is divisible by i then it is not a prime number
// Assign the result of a boolean expression to n.
if (n % i == 0)
{
return false;
}

}

return true;

} //end of else
}

}

}


In: Computer Science

Write 4-6 professional-level paragraphs on ANY movie of your choice that contains a leadership lesson (even...

Write 4-6 professional-level paragraphs on ANY movie of your choice that contains a leadership lesson (even FROZEN has a ton of leadership lessons - you just have to look for them.) Write up a summary of what leadership lessons you've learned. Be specific. I want to know what leadership styles you saw. Add what events showed you what kind of leader someone was. What situations were most impactful to you (as you as a developing leader yourself) as you watched the movie. What lessons will you takeaway into your own leadership and why?

In: Operations Management

Case 6: Project Resource Management Several people working on the Healthy You Intranet Project are confused...

Case 6: Project Resource Management
Several people working on the Healthy You Intranet Project are confused about their responsibilities for the testing portion of the project. Recall that the team members include you, a programmer/analyst and junior/assistant project manager; Ivan, a network specialist; Helen, a business analyst; and Bonnie, another programmer/analyst. Paul Sparks is the project manager, and he has been working closely with managers in other departments to make sure everyone knows what’s going on with the project.
The main tasks for testing include writing a test plan, unit testing and integration testing for each of the main system modules (registration, tracking, and incentives), system testing, and user acceptance testing.
In addition to the project team members, a team of user representatives is available to help with testing, and Paul has also hired an outside consulting firm ABC Digital to help as needed.
One of the issues Paul identified is the ability to work effectively with the user group during testing. According to MBTI classifications, Paul knows that several of his project team members are very introverted and strong thinking types, while several members of the user group are very extroverted and strong feeling types.

Prepare a responsibility assignment matrix (RAM) based on the information from this case.
3. Prepare a RACI chart (use the template) to help clarify roles and responsibilities for these testing tasks. Document key assumptions you make in preparing the chart.

In: Computer Science

Digital Access Inc. needs $323,640 in funds for a project. (Assume the loan term is one...

Digital Access Inc. needs $323,640 in funds for a project. (Assume the loan term is one year.) a. With a compensating balance requirement of 7 percent, how much will the firm need to borrow? (Do not round intermediate calculations.) Amount to be borrowed $ b. Given your answer to part a and a stated interest rate of 17 percent on the total amount borrowed, what is the effective rate on the $323,640 actually being used? (Input your answer as a percent rounded to 2 decimal places.) Effective rate of interest %

In: Finance

The Herjavec Co. just paid a dividend of $1.95 per share on its stock. The dividends...

The Herjavec Co. just paid a dividend of $1.95 per share on its stock. The dividends are expected to grow at a constant rate of 3 per year indefinitely. Investors require a return of 11 percent on the companys stock. What is the current price of the stock? What will the price be in three years? What will the price be in 6 years?

In: Finance

Physical Chemistry A)The electrolytic conductivity of 0.10 M solution of acetic acid is 5.3x 10-5 Scm-1....

Physical Chemistry

A)The electrolytic conductivity of 0.10 M solution of acetic acid
is 5.3x 10-5 Scm-1. The cell constant was 0.10 cm-1. Neglecting activity
coefficient, Calculate the acid dissociation constant (Ka).
(Λmo for acetic acid = 390. S cm2 mol-1)

B)The observed osmotic pressure of 0.1 M acetic acid solution is
2.45 atm at 25.0 oC. Calculate the Van’t Hoff factor (i) and the degree of
ionization (α). Compare your value with that obtained from problem 1.
Comment on your answer.

In: Chemistry

Please give a breif summary of the mechanism of the following anti-arrhythmic agents 1. Beta-blockers 2.Diuretics...

Please give a breif summary of the mechanism of the following anti-arrhythmic agents
1. Beta-blockers
2.Diuretics
3.ACE Inhibitors

In: Biology

write the vhdl code to get the moore and mealy machine to detect the sequence 1101

write the vhdl code to get the moore and mealy machine to detect the sequence 1101

In: Computer Science

Please refer to the article titled as “Sustainable Construction Excellence for a Better Future in Malaysia,...

Please refer to the article titled as “Sustainable Construction Excellence for a Better Future in Malaysia, published in The Ingenieur, Vol. 69 January – March 2017 by the Board of Engineers Malaysia.Elaborate on the “Paradigm Shift” which was outlined in the 11th Malaysian Plan and how would it affect our quality of life?

In: Mechanical Engineering

Bilbo Baggins wants to save money to meet three objectives. First, he would like to be...

Bilbo Baggins wants to save money to meet three objectives. First, he would like to be able to retire 30 years from now with a retirement income of $32,500 per month for 20 years, with the first payment received 30 years and 1 month from now. Second, he would like to purchase a cabin in Rivendell in 10 years at an estimated cost of $405,000. Third, after he passes on at the end of the 20 years of withdrawals, he would like to leave an inheritance of $825,000 to his nephew Frodo. He can afford to save $3,800 per month for the next 10 years. If he can earn an EAR of 10 percent before he retires and an EAR of 7 percent after he retires, how much will he have to save each month in Years 11 through 30

In: Finance

What is the basis of nonrepudiation and how is it commonly implemented? (Please be specific)

What is the basis of nonrepudiation and how is it commonly implemented? (Please be specific)

In: Computer Science

Read the following scenario and complete the questions below. The entire poultry industry is working hard...

Read the following scenario and complete the questions below.

The entire poultry industry is working hard to keep up with demand, but egg production is falling behind. According to the USDA’s Economic Research Service, the price of eggs in the U.S. is expected to rise more than 35 percent in 2018. The cause of this egg price increases? An uptick in foreign demand for US eggs is partly to blame. When avian influenza devastated Europe this past year, egg suppliers in the U.S. stepped in to help fill the demand in these countries. Another problem arose in late 2017 where some egg supplies were contaminated with a dangerous insecticide, affecting countries including Germany, France, and Belgium. With millions of eggs being pulled from the shelves in Europe, US exports of eggs rose 663 percent between 2016 and 2017. Domestic demand has increased as well. In the United States, 2017 saw a 20-year record in egg consumption at 275.2 eggs per person per year. When you multiply that by 325 million Americans, that’s a lot of eggs.

Now, consider the commercial use of eggs in the production of grocery items such as bread, ice cream, pasta, cakes, and waffles. Let’s focus on the Sara Lee® All Butter Pound Cake® found in the freezer section of your local grocery store. The first ingredient listed on the package is, you guessed it – eggs. The pound cake sells for around $3.97 at the grocery store. However, with the price of eggs on the rise, it is likely that the $3.97 price may change.

  1. Which of Sara Lee’s variances will be affected by the increase in egg prices? Why?
  2. Will the increase in egg prices result in favorable or unfavorable variances for Sara Lee? Why?
  3. What is Sara Lee® likely to do to its standards based on this increase in price and which standards will be impacted?
  4. What, if anything, can Sara Lee® do to mitigate the impact of the rising cost of eggs on its manufacturing costs?

In: Finance

As part of the internationalization process, when did The Coca-Cola Company first started their licensing in...

As part of the internationalization process, when did The Coca-Cola Company first started their licensing in China? What were the FSAs or CSAs the company used to help with licensing in China?

In: Operations Management

1. How will small businesses, which are now closed, under shelter-in-place orders continue to exist? 2....

1. How will small businesses, which are now closed, under shelter-in-place orders continue to exist?

2. How will small businesses continue to make payroll and pay for benefits, if they are closed?

3. Will banks make bridge loans to small businesses, given their failure rate?

In: Operations Management