I need help by programming a small math game with javascript. I already have the structure on my file that I want, but the program is not working yet.

IDEA OF PROJECT
1. question for an addition between 1 and 100 (random numbers)
2. if correct go to subtraction between 1 and 100, if not repeat and stay on this level
3. continuing the structure with multiplication between 1 and 20
4. followed by division between 1 and 20
5. I want 10 questions and then showing a prompt at the end the shows how many points somebody got
6. time restriction of 4 minutes for the 10 questions

using the following structure, but it needs to be continued

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML>
<HEAD>
<TITLE> Project</TITLE>

<SCRIPT LANGUAGE=”JavaScript”>

let Name = prompt(“Hello, What’s your name?”);
console.log(Name);

let a = Math.floor( Math.random() * 100 + 1 );
let b = Math.floor( Math.random() * 100 + 1 );
let a1 = a+b;

let c = Math.floor( Math.random() * 100 + 1 );
let d = Math.floor( Math.random() * 100 + 1 );
let c1 = c-d;

function begin1 (){
  message3.innerHTML = “”;
  a = Math.floor( Math.random() * 100 + 1 );
  b = Math.floor( Math.random() * 100 + 1 );
  a1 = a+b;
  disappear1.innerHTML = “”;
  message1.innerHTML = a + “<br/>” + “+” +”<br/>” + b + “<br/>” + “____________”;
  message2.innerHTML = “<input type = text id= ‘input001’> <button onclick = ‘submit1()’>Submit</Button>”;
  }

function submit1(){
    let answer1 = input001.value;
    show001.innerHTML = answer1;
    if (answer1 == a1) {
      message3.innerHTML = “correct”;
      message2.innerHTML = “”;
      message4.innerHTML = “<button onclick = ‘question2()’>next</button>”;
    }
    else{
      message3.innerHTML = “incorrect”;
      message2.innerHTML = “”;
      message4.innerHTML = “<button onclick = ‘begin1()’>next</button>”;
    }
}

function question2(){
  a = Math.floor( Math.random() * 100 + 1 );
  b = Math.floor( Math.random() * 100 + 1 );
  a1 = a-b;
  message1.innerHTML = c + “<br/>” + “-” +”<br/>” + d + “<br/>” + “____________”;
  message2.innerHTML = “<input type = text id= ‘input002’> <button onclick = ‘submit2()’>Submit</Button>”;
  message3.innerHTML = “”;
  show001.innerHTML = “”;
  }

function submit2(){
    let answer1 = input002.value;
    show001.innerHTML = answer1;
    if (answer1 == a1) {
      message3.innerHTML = “correct”;
      message2.innerHTML = “”;
      message4.innerHTML = “<button onclick = ‘question3()’>next</button>”;
    }
    else{
      message3.innerHTML = “incorrect”;
      message2.innerHTML = “”;
      message4.innerHTML = “<button onclick = ‘begin2()’>next</button>”;
    }
}

</script>

</head>

<BODY>

  <style>
        background-color: lightgrey;
        text-align:center   
  </style>
 
 
  <div id =”frame001″>
    <H1>Mental Arithmetic</H1>
    <p id = “message1”> </p>
    <p id = “message2”> </p>
    <p id = “show001”> </p>
    <p id = “message3”> </p>
    <p id = “message4”> </p>

    <div id = “disappear1”>
        <button onclick = “begin1()” >Begin</button>
    </div>

</body>
</html>

***Outline format Essay***
Standardized procedures are the legal document to guide nurse practitioners to perform functions within their scope of practice. Standardized procedures must be developed in collaboration with all parties involve in the care of the patients, including nurse practitioners, physicians, and administrators. This assignment requires students to create a standardized procedure document that can be used in their future practice setting.
Instructions:

1. Review California state regulations for policies and procedures related to Standardized Procedure (Attached as a additional material- npr-i-19)

2. Review these guidelines and develop an original, research based, Disease Specific Standardized Procedure (protocol). The BRN has provided sample Standardized Procedures (also attached – npr-b-20).

Topic will be about upper respiratory tract infection.

3. The paper must include, but not limited to the following:
  a.) Specify which standardized procedure functions the FNP may perform and under what circumstances.
  b.) State any specific requirements which are to be followed by the FNP in performing particular standardized procedure functions.
  c.) Establish a method for initial and continuing evaluation of the competence of thoseFNPs authorized to perform standardized procedure functions.
  d.) Diagnosis criteria
  e.) Treatment guidelines

Reference list of at least four recent, appropriate, research-based journal references and one clinical guideline. References must be from current practice literature.

This is not merely an opinion paper. It is a persuasive essay. In this context, that means that the appropriate way to persuade reader is by 1) carefully laying out, in explicit logic, the line of reasoning behind the position that you are trying to convince reader to adopt and 2) citing evidence supporting your position.

How Does the News Relate to Sociology?

Sociological topics can be found in current events daily.  Find a recent news article of interest to you. This NEEDS to be from any recognized newspaper or magazine that covers current events, such as The New York Times, The Washington Post, or The Wall Street Journal but it should have been published within the last 3 months.  The source must have editorial  board review and and fact checking mechanisms.

The Ivy Tech Virtual Library is an excellent resource in which to find an appropriate article through newspapers and magazines.  It can be accessed at http://www.ivytech.edu/library/Links to an external site.  There is also a link in the Resources area to various English versions of International newspapers.

Read the article considering how it relates to concepts and perspectives in this course. The goal of this paper is to get you to apply class lectures, readings, and the sociological imagination to whats happening in the World.  Specifically, look for ways in which the article utilizes sociological terms, research, or ways in which the topic relates to one of the social institutions (economics, politics, families, education, health, religion).

To complete this assignment, youll need to:

  Write a brief summary of the article.

relate the articles to core concepts in the textbook.
display your knowledge of covered course material, drawing from any of the lessons that fit the topic of the assignment.
        Provide a reference citation of the article youve read, including the title, author, and other publication information.

        Writing Instructions:

        Write in APA/MLA style and cite your sources.

        Proofread for spelling, syntax, and grammar errors.

        Font size 10 or 12.

        Margins 1 inch all around paper.

        Length expected 3-4 pages.

In this assignment, you are tasked with creating an event timeline to examine and analyze your life span development via the stages and theories discussed in this course. You will incorporate concepts in each of the following domains:
a.    Physical/motor
b.    Cognitive
c.    Socioemotional/Psychosocial
d.    Moral
e.    Family/Cultural

2.    Create a list of 5 specific events from your life2 events from your past, 2 from your present, and 1 from at least 20 years into your ideal future 
3.    Event requirements:
a.    A title (make it fun!) 
b.    Age at which the event occurred 
c.    Domain of development and lifestage addressed
d.    Event description in 3-5 sentences
e.    Representative picture of the event (can be clip art, personal photos, illustrations, etc.)   
f.    Explain HOW and WHY the event represents the developmental domain and stage chosen. Be sure to relate the details of the event to both stage and domain. Use appropriate developmental terminology/vocabulary in your explanation. 
4.    You can choose to display your events in one of the following formats:
a.    Word document
b.    Powerpoint slides
c.    Booklet or brochure form
5.    Presentation:
a.    Organization of information
b.    Visual appearance
c.    Formatting
d.    Spelling, grammar, punctuation

Please review the topic in this lesson for an example of how your timeline events will be presented.
 

Please text me if you have any questions or need information regarding this assignment. Thank you

Aging Interview. The purpose of this assignment is to examine the physical, cognitive, socioemotional, and cultural factors that have influence late adulthood. You will also apply concepts of growth and development to health and wellness in this life stage based on information gained in the interview.

1.    For this assignment, you will interview an adult who is at least 70 years of age.
2.    Include in your interview the following questions. (You may ask additional questions to guide the gathering of relevant information).

a.    What does successful aging mean to you? Do you feel you have aged successfully and why or why not?
b.    How did your younger years prepare you for aging? What factors in your early adult years most influenced the person you are now?
c.    Describe what aging has been like for you in the following areas:
i.    Physical
ii.    Emotional
iii.    Cognitive
iv.    Social
d.    What lifestyle issues are most important to you? How has this changed from your young or middle adult years?
e.    Describe your perspective of well-being? What are the health/wellness issues that concern you and how are you addressing them now?
f.    Describe one thing that has been the most difficult for you to adjust to in your later years. What have you done to help make the adjustment?
g.    If you could give one piece of advice to young people, what would it be?

3.    Provide a written or recorded record of the responses to your questions.
4.    Analyze your interview in a summary of approximately 2 pages:
a.    Identify and apply 2 different theories from the readings in this aging lesson that were evident in the information you gathered. (Describe how the interviewees responses reflected these theories.)
b.    Analyze whether or not your interviewees responses were different from what you anticipated.
c.    Evaluate how this interview has affected your own attitudes, beliefs, or perspectives on late adulthood.

Please submit a thoughtful response to two of your classmates.

Response 1:
This video had good ideas but I think that they could be tweaked for the modern day teen. The first tip is smart, creating boundaries for their child. Just like video games, having screen time limits and designated charging stations outside of the bedroom of the child will help with late night scrolling. Most smart phone are customizable and you can take off the option for a passcode. If the parent feels like the child is too glued to their phone, asking them to do a positive activity with them while will be beneficial for both parent and child. I dont think someone should intimidate their child though causing unnecessary anxiety. Be clear about the expectations your are trusting they will follow and if they arent, then discipline as needed. Consistency is key in parenting. Even young children see when there parents are not consistent in their discipline and actions. I do think that if parents show that they dont go back on their word, teens will be careful about their choices on their phones. The last 2 tips were the best overall. Every single action a parent does has an effect on their child. If a parent is on their phone all the time and doesnt engage with their child, that effects the childs self esteem. Also, parents who are glued to their phone are unable to provide a good example for healthy phone habits for their children. I didnt learn about coping skills until college. They helped me tremendously and I think that they can come in all forms. However, phone usage isnt a healthy coping skills because often times in teens it will lead to more bad than good. Helping your child finds hobbies, encouraging their creativity, and helping them find ways to express their emotions away from the screen are all great ways to stop overusing cellphones. If I had been taught these things, I think that I would have been better emotionally at a young age and not spent so much time on Instagram and Snapchat.

Response 2:
Modeling Healthy Behavior

I do believe that it is extremely important for parents to act the role they want their children to play because children will do as they see parents do, rather than what parents say not to do.

No Phone with Homework

This is a reasonable rule. However, if there is no computer at home the child may have to use the phone to complete a homework assignment. Therefore, the parent may have to monitor the use of the cell phone.

Phones at the Dinner Table

Growing up we did not have cell phones. We had landlines, better known as house phones. That was a time when families ate together at the dinner table and would not get up during a meal to answer the house phone. Instead families spent quality time interacting with one another at the dinner table. Nowadays everyone has a cell phone at the table, either googling, texting, searching, or posting. Therefore, I agree cell phones at the table, during a meal, is off limits. Keeping in mind that interactions are vital to the wellbeing and development of the family structure.

Consistency

I must be very honest; this is an area I could have done better at with my son. I would give punishments by taking away video games for a week. That may have lasted for 2 to 3 days before I gave in, returning the video game back and saying I mean it, if you do it again I am taking the game back and will keep it for the entire week. This was not great parenting on my part at all. I eventually had to take car keys, cell phones etc. and keep them the duration of the punishment. I believe the inconsistencies on my part made this more difficult than it would have been had I been consistent all along.