Questions
In Python: Design a program that lets the user enter the total rainfall for each of...

In Python:

Design a program that lets the user enter the total rainfall for each of the 12 months into a list. The program should calculate and display the total rainfall for the year, the average monthly rainfall, the months with the highest and lowest amounts. However, to start, do not ask the user for input. Instead, hard code the monthly rainfalls as a list in your program, and then use the list to determine how to conduct the processing and output described in the problem (total, average, highest and lowest).

    1. Rewrite your previous program to use a loop to ask the user for the monthly rainfall twelve times (once for each month, without needing to specify which month is which). You will need to create an empty list to hold the user’s input. Show your code.
    1. Rewrite the previous program to ask the user for the rainfall for each month, specifying the name of the month. For example, if the previous iteration asked “Enter rainfall “ then in this iteration, ask the user to “Enter rainfall for January “ then “Enter rainfall for February” etc. Show your code.

Please write this short program in Python. Thank you.

In: Computer Science

Design a program that lets the user enter the total rainfall for each of 12 months...

Design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts.

Design a program to solve Chapter 8 Programming Exercise 3 (Rainfall Statistics) in your textbook. Create parallel arrays for the month names and rainfall amounts for each month. Use month names (i.e. January, February, March, etc.) when printing out the months with the highest and lowest amounts. Include a modular (no global variables or constants) approach that includes and uses (at least) a main module and the following functions:
• GetLargestRainfall  takes parameters of the array of rainfall statistics and the size of the array. Returns the index of the array element with the largest rainfall
• GetSmallestRainfall  takes parameters of the array of rainfall statistics and the size of the array. Returns the index of the array element with the smallest rainfall

1- create IPO chart for GetLargestRainfall funcation and GetSmallestRainfall function.

2- create the properly aligned textbook fromat pseudocode.

3- Create the python source code, that represent the pseudocode requirements.

In: Computer Science

Programming Challenge #10. C++ Early Objects 10ed. A talent competition has five judges, each of whom...

Programming Challenge #10. C++ Early Objects 10ed.

A talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and lowest score received, then averaging

#include <iostream>
#include <iomanip>
using namespace std;

// Function prototypes
double getJudgeData();  
double calcScore(double, double, double, double, double);                       
double findLowest(double, double, double, double, double);                      
double findHighest(double, double, double, double, double);
                
int main()
{
        double score1, score2, score3, score4, score5,   // 5 judge's scores
          finalScore;
   
        // Inform the user what the program does
        cout << "After you enter 5 judge scores for this contestant, \n"
        << "this program will drop the highest and lowest score \n"
        << "and then average the remaining three scores.\n\n";
        

        return 0;
}// end of main function


the three remaining scores. Write a program that uses these rules to calculate and display a contestant's score.

In: Computer Science

Final Project must be included HER, NER, Table diagrams and SQL statements. The final project is...

Final Project must be included HER, NER, Table diagrams and SQL statements.

The final project is about developing an auction Web site. The details are as follows:

BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items.

•       Each seller can sell items.

•       Each item has a bidding start time, an end time, and an owner. Sellers are owners of their item. The start time and end time include the date as well.

•       Each seller has a name, contact information, and credit card information. They also have a user name and a password.

•       Contact information consists of an address, an email, and a telephone.

•       An address consists of a street number and name, city, state, and zip code.

•       Credit card information consists of owner name, card number, and expiration date.

•       Each item has a name, condition, an initial price, a description, quantity, one or more pictures, and an owner.

•       The condition could be New, Refurbished, or Explained. If the condition of an item is set to Explained, the seller should explain about the item condition in the item description.

•       Each buyer has a name, contact information, and credit card information. They also have a user name and a password.

•       When buyers login to Web site, they can go to the list of all available items and then go to the item detail page. Buyers can also search for an item. The application will search through item names for the search phrase.

•       Buyers can bid on items. Once a bid is made, buyers are accountable for their bid. In other words, buyers cannot simply remove their bid. If they change their mind, all they can do is to update their bid with the price of zero. Of course, they can do that before the auction expires.

•       After an auction expires, the buyer with the highest bid is the winner.

•       BA likes to have a set of statistics about the system as follows:

•       The most active seller (the one who has offered the most number of items)

•       The most active buyer (the one who has bought the most number of items)

•       The most popular seller (the one who sold the most number of items)

•       The most expensive item sold ever

•       The most expensive item available

•       The cheapest item sold ever

The cheapest item available

In: Computer Science

Only needs DB SQL statements. Final Project must be included HER, NER, Table diagrams and SQL...

Only needs DB SQL statements. Final Project must be included HER, NER, Table diagrams and SQL statements. The final project is about developing an auction Web site. The details are as follows: BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items. • Each seller can sell items. • Each item has a bidding start time, an end time, and an owner. Sellers are owners of their item. The start time and end time include the date as well. • Each seller has a name, contact information, and credit card information. They also have a user name and a password. • Contact information consists of an address, an email, and a telephone. • An address consists of a street number and name, city, state, and zip code. • Credit card information consists of owner name, card number, and expiration date. • Each item has a name, condition, an initial price, a description, quantity, one or more pictures, and an owner. • The condition could be New, Refurbished, or Explained. If the condition of an item is set to Explained, the seller should explain about the item condition in the item description. • Each buyer has a name, contact information, and credit card information. They also have a user name and a password. • When buyers login to Web site, they can go to the list of all available items and then go to the item detail page. Buyers can also search for an item. The application will search through item names for the search phrase. • Buyers can bid on items. Once a bid is made, buyers are accountable for their bid. In other words, buyers cannot simply remove their bid. If they change their mind, all they can do is to update their bid with the price of zero. Of course, they can do that before the auction expires. • After an auction expires, the buyer with the highest bid is the winner. • BA likes to have a set of statistics about the system as follows: • The most active seller (the one who has offered the most number of items) • The most active buyer (the one who has bought the most number of items) • The most popular seller (the one who sold the most number of items) • The most expensive item sold ever • The most expensive item available • The cheapest item sold ever • The cheapest item available

In: Computer Science

G and P Manufacturing would like to minimize the labor cost of producing dishwasher motors for...

G and P Manufacturing would like to minimize the labor cost of producing dishwasher motors for major

appliance manufacturer. Two models of motors exist and the time in hours required for each model in each

production area is tabled here, along with the labor cost.

Model 1

Model 2

Area A (hrs)

12

16

Area B (hrs)

10

8

Area C (hrs)

14

12

Cost ($)

100

120

Currently, labor assignments provide for 38,000 hours in each of Area A, 25,000 hours in Area B, and 27,000 hours in area C.

2,000 hours are available to be transferred from Area B to Area C and a combined total of 4,000 hours are available to be transferred from Area A to Areas B and C.

We would like to develop the linear programming model to minimize the labor cost, whose solution would tell G&P how many of each model to produce and how to allocate the workforce.

Let                   P1 = the number of model 1 motors to produce

                        P2 = the number of model 2 motors to produce

                        TAC = the number of hours transferred from A to C

                        TAB = the number of hours transferred from A to B

                        TBC = the number of hours transferred from B to C

  1. What is the objective function?
    1. Max 14 P1 + 12 P2
    2. Min 10 P1 + 8 P2
    3. Min 100 P1 + 120 P2
    4. Max 100 P1 + 120 P2
    5. Min 12 P1 + 16 P2
  2. Which of the following represents the resource availability constraint for Area B?
    1. 10P1 +8P2 <= 25,000
    2. 10P1 +8P2 <= 25,000 -TBC + TBA
    3. 10P1 +8P2 <= 25,000 +TBC – TAB
    4. 10P1 +8P2 <= 25,000 -TBC + TAB
    5. 10P1 +8P2 <= 25,000 – 2,000 + 4,000
  3. No matter what the resource allocation is, Area A will always have the highest resource availability.
    1. True
    2. False
  4. Let Pij = the production of product I in period j. To specify that production of product 2 in period 4 and in period 5 differs by no more than 80 units, we need to add which pair of constraints?
    1. P24 – P25 >= 80; P25 – P24 >= 80
    2. P24 – P25 <= 80; P25 – P24 <= 80
    3. P24 – P25 <= 80; P25 – P24 >=80
    4. P52 – P42 <= 80; P42 - P52 <= 80
    5. None of the other above.

In: Operations Management

Which of the following statements is (are) not true? a) The power of the test decreases...

Which of the following statements is (are) not true?

a) The power of the test decreases as the level of significance decreases.

b) The probability of committing a Type I error and the level of significance are the same and the power of the test decreases as the level of significance decreases.

c) The probability of committing a Type I error and the level of significance are the same.

d) The probability of committing a Type I error increases as the probability of committing a Type II error decreases.

In: Statistics and Probability

If a variable is Normal (? = 10, ? = 1.2)

 

If a variable is Normal (? = 10, ? = 1.2)

a. Calculate the probability that X enters between 10 and 12.

b. Calculate the X corresponding to the 80% percentile

c. Calculate the probability that X is greater than 9

d. If a sample of 15 data is taken, calculate the probability that the average is between 9.2 and 10.

e. If you take a sample of 10 data, calculate the probability that the total is between 105 and 120.

 

In: Statistics and Probability

You ask a neighbor to water a sickly plant while you are on vacation. Without water...

You ask a neighbor to water a sickly plant while you are on vacation. Without water the plant will die with probability 0.9. With water it will die with probability 0.55. You are 88 % certain the neighbor will remember to water the plant.

When you are on vacation, find the probability that the plant will die.

Answer:

You come back from the vacation and the plant is dead. What is the probability the neighbor forgot to water it?

Answer:

In: Statistics and Probability

Explain what a continuous probability distribution is and how it is used. 2. Is the height...

Explain what a continuous probability distribution is and how it is used.

2. Is the height of a probability curve over a "given point" a probability? Explain.

3. List five important properties of the normal probability curve.

4. Explain why sampling with replacement is preferred over sampling without replacement.

5.  What does the Central Limit Thereom tell us about the sampling distribution of the sample mean?

In: Statistics and Probability