Questions
Forms often allow a user to enter an integer. Write a program that takes in a...

Forms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outputs yes if every character is a digit 0-9.

Ex: If the input is: 1995 the output is: yes

Ex: If the input is: 42,000 or any string with a non-integer character, the output is: no

PYTHON 3

In: Computer Science

JAVA StudentId: Consist of the first two characters of the student's first name, student's birth year,...

JAVA

StudentId: Consist of the first two characters of the student's first name, student's birth year, and the last two characters of the last name. For instance, if the student full name is John Doe and birthyear is 1995, then the id will be Jo1995oe. Birthday is using GregorianCalendar.

String firstname

String lastname

GregorianCalendar birthday

In: Computer Science

In 1995 the Mars Company replaced tan M&Ms with blue M&Ms. A sample of 100 plain...

In 1995 the Mars Company replaced tan M&Ms with blue M&Ms. A sample of 100 plain M&Ms before the introduction of blue M&Ms had a mean weight 0.9160g with a standard deviation of 0.0433g. A sample of 100 plain M&Ms taken after 1995 had a mean weight of 0.9147g and a standard deviation of 0.0369g. (a) Construct the 98% confidence interval for the difference in the mean weight of plain M&Ms before and after the introduction of blue M&Ms. List: Parameters: u1 and u2 Null and Alt. Hypothesis p-value Initial conclusion Final conclusion (b) Is there a significant difference between mean weight of plain M&Ms before and after the introduction of blue? How do you know? List: t* ME Interval Interpret Interval (c) Does the confidence interval support the results of the hypothesis test? Why or why not?

In: Statistics and Probability

Permutations.

A debate club consists of 6 girls and 4 boys. A team of 4 members is said to be selected from this club including the selection of a captain (from among these 4 members) for the team. If the team has to be included at most one boy, then the number of ways of selecting the team is

In: Math

The accompanying 2 files (boynames.txt and girlnames.txt) contain the results of a recent census of boy...

The accompanying 2 files (boynames.txt and girlnames.txt) contain the results of a recent census of boy and girl births in the last year. Each record of the files contain a given name and the number of new born children receiving that name. E.g.,

          Matthew 23567          or            Alison 17658

Each name is separated from the number by a blank space.

There are also some common names given to both boys and girls, e.g., Riley. They will appear in both the boy file and the girl file.

Write a PHP script that finds answers to the following questions.

  1. How many names are common to both boys and girls?
  2. List the common names with how many boys and how many girls have that name. Use an HTML table to display this data.
  3. How many total boys and how many total girls were born last year according to the census?

In: Computer Science

In human beings, the gene for red green colorblindness (r) is sex linked and recessive to...

In human beings, the gene for red green colorblindness (r) is sex linked and recessive to its allele for normal vision (R), while the gene for freckles (F) is autosomal and dominant over its allele for nonfreckled (f). A nonfreckled, normal visioned woman whose father was freckled and colorblind, marries a freckled, colorblind man whose mother was nonfreckled.

a. What is the genotype of the woman's father? b. What is the probability that the couple's first child will be a non-freckled, normal visioned girl c. What is the probability that the first two children born to the couple will be freckled and colorblind girls? d. What is the probability that the first child born to the couple will either be a freckled, colorblind boy or a non freckled, normal visioned girl or a non-freckled, normal visioned boy e. What is the probability that the first four children born to the couple will be freckled and normal visioned girls?

In: Biology

On December 31 of last year, Lauren burst into the family living room and announced that...

On December 31 of last year, Lauren burst into the family living room and announced that she and Connor (her college boyfriend) were going to be married. After recovering

from the shock, her mother hugged her and asked, “When?” The following conversation resulted:

Lauren: January 21.

Mom: What?

Dad: The Now Wedding will be the social hit of the year. Wait a minute. Why so soon?

Lauren: Because on January 30 Connor, who is in the National Guard, will be shipping out overseas. We want a week for a honeymoon.

Mom: But Honey, we can't possibly finish all the things that need to be done by then. Remember all the details that were involved in your sister's wedding?

Even if we start tomorrow, it takes a day to reserve the church and reception hall, and they need at least 14 days' notice. That has to be done before we can start decorating, which takes 3 days. An extra $200 on Sunday would probably cut that 14 day notice to 7 days, though.

Dad: Oh, boy!

Lauren: I want Jane Summers to be my maid of honor.

Dad: But she's in the Peace Corps in Guatemala, isn't she? It would take her 10

days to get ready and drive up here.

Lauren: But we could fly her up in 2 days and it would only cost $1,000.

Dad: Oh, boy!

Mom: And catering! It takes 2 days to choose the cake and decorations, and Jack's Catering wants at least 5 days' notice. Besides, we'd have to have those things before we could start decorating.

Lauren: Can I wear your wedding dress, Mom?

Mom: Well, we'd have to replace some lace, but you could wear it, yes. We could order the lace from New York when we order the material for the bridesmaids' dresses. It takes 8 days to order and receive the material. The pattern needs to be chosen first, and that would take 3 days.

Dad: We could get the material here in 5 days if we paid an extra $20 to airfreight it. Oh, boy!

Lauren: I want Mrs. Jacks to work on the dresses.

Mom: But she charges $48 a day.

Dad: Oh, boy!

Mom: If we did all the sewing we could finish the dresses in 11 days. If Mrs. Jacks helped we could cut that down to 6 days at a cost of $48 for each day less than 11 days. She is very good too.

Lauren: I don't want anyone but her.

Mom: It would take another 2 days to do the final fitting and 2 more days to clean and press the dresses. They would have to be ready by rehearsal night. We must have rehearsal the night before the wedding.

Dad: Everything should be ready rehearsal night.

Mom: We've forgotten something. The invitations!

Dad: We should order the invitations from Bob's Printing Shop, and that usually takes 7 days. I'll bet he would do it in 6 days if we slipped him an extra $20!

Mom: It would take us 2 days to choose the invitation style before we could order them and we want the envelopes printed with our return address.

Lauren: Oh! That will be elegant.

Mom: The invitations should go out at least 10 days before the wedding. If we let them go any later, some of the relatives would get theirs too late to come and that would make them mad. I'll bet that if we didn't get them out until 8 days before the wedding, Aunt Ethel couldn't make it and she would reduce her wedding gift by $200.

Dad: Oh, boy!!

Mom: We'll have to take them to the Post Office to mail them and that takes a day. Addressing would take 3 days unless we hired some part-time girls and we can't start until the printer is finished. If we hired the girls we could probably save 2 days by spending $40 for each day saved.

Lauren: We need to get gifts for the bridesmaids. I could spend a day and do that.

Mom: Before we can even start to write out those invitations we need a guest list. Heavens, that will take 4 days to get in order and only I can understand our address file.

Lauren: Oh, Mom, I'm so excited. We can start each of the relatives on a different job.

Mom: Honey, I don't see how we can do it. Why, I've got to choose the invitations and patterns and reserve the church and . . .

Dad: Why don't you just take $3,000 and elope. Your sister's wedding cost me $2,400 and she didn't have to fly people up from Guatemala, hire extra girls and Mrs. Jacks, use airfreight, or anything like that.

  • Using the time estimates offered in the case create a simple timeline/schedule. This need not be detailed, just the basics are sufficient.

In: Operations Management

What is a social contract? Briefly describe the “social contract approach to journalism ethics” in terms...

What is a social contract? Briefly describe the “social contract approach to journalism ethics” in terms of the privileges and obligations of the press.

In: Finance

At the command prompt, type cd etc and press Enter. What error message did you receive...

At the command prompt, type cd etc and press Enter. What error message did you receive and why?

In: Computer Science

A power press makes steel pressings. The energy required for each pressing is 5000J with each...

A power press makes steel pressings. The energy required for each pressing is 5000J with each pressing taking 1s. The time taken to remove the pressing and get the material ready for the next pressing is 4s.If the press is operated by an electric motor which runs continuously with a flywheel used to supply the extra torque required for the pressing. Determine the power of the motor that is required, the energy that has to be supplied by the flywheel and the moment of inertia of the flywheel if it’s speed is not to drop by more than 30 RPM from a speed of 600 RPM.

In: Mechanical Engineering