write a python program

TASK 1:  Animated Sine Curve

Write a Python program one.py with PyOpenGL to display an animation of sine function y=Asin(x+B), satifying the following requirements:

  • The window application’s size is (600, 600), and its upper-left corner is at (250, 250) on the screen;
  • The window application’s title is Animated Sine Curve.
  • The ranges of x and y are [-4, 4] (x is in radians);
  • The amplitude A is a random float in [1, 2], and it is updated each time the window application restarts;
  • The phase shift B is a float; it is initialized as 0, and incremented by 0.01 each time the screen refreshes;
  • The two axes are drawn in white, with an arrow towards the positive direction at the end of each axis;
  • The sine curve is drawn in yellow.
  • Orthogonal projection is used in this task.

The following figure illustrates the expected window application.

TASK 2:  Clamped B-Spline

 Write a Python program two.py with PyOpenGL to display a clamped B-spline, satifying the following requirements:

  • The window application’s size is (550, 550), and its upper-left corner is at (150, 150) on the screen;
  • The window application’s title is Special B-Splines.
  • The program reads a text file named control-points.txt, including an x,y coordinate pair in each line as a control point, in the same folder;
  • Control points are drawn with size 4 in green.
  • Based on the control points, a clamped B-spline is drawn.
  • P(t)’s color, mixed by red and blue, depends on its curvature (R = curvature / 5, G = 0.0, B = 1 – curvature / 5);
  • Curvature is clipped by [0, 5].
  • Orthogonal projection is used in this task.

The following figure illustrates the expected window application, reading the sample control-points.txt provided.

TASK 3:  Hexagonal Pyramid

 Write a Python program three.py with PyOpenGL to display a 3D hexagonal pyramid, satifying the following requirements:

  • The window application’s size is (400, 400), and its upper-left corner is at (100, 100) on the screen;
  • The window application’s title is Hexagonal Pyramid.
  • The program reads a text file named pyramid-params.txt, including one line as x,y,z,H,R, in the same folder, where x, y and z are the coordinates of the top vertex v, H is the height, and R is the radius; we assume the top vertex v and the base centroid c are on the same vertical axis, and c is always under v; the distance between c and any base vertex vi is always R.
  • Based on the above information, a hexagonal pyramid is drawn.
  • All faces are randomly and differently colored, except for the base in white.
  • When the key R is pressed, the radis increases by 0.01 and the hexagonal pyramid is redrawn.
  • When the key H is pressed, the height decreases by 0.01 and the hexagonal pyramid is redrawn.
  • The hexagonal pyramid is static by default; When the key X, Y or Z is pressed, the hexagonal pyramid toggles between being static and rotating 1 degree/refresh along the corresponding axis (i.e., the key X corresponds to the x axis), taking c as the origin.
  • Perspective projection is used in this task (FoV is 90 degrees towards the y-axis; Camera looks at the origin and uses the y-axis direction as the up-vector).

The following figure illustrates the expected window application, reading the sample pyramid-params.txt provided.

Critical thinking (Assignment 2 – Problem Solving )

 

Choose one (1) of the problem scenarios as a topic choice for your paper (Note: Your professor must approve your topic choice before you begin work on the assignment.)

Scenario 1: You have worked at your company for eleven (11) years. You have returned to college to earn a Bachelor’s degree in order to increase your chances for a promotion. You are nearly finished with your degree, when a supervisor’s position in a competing company becomes available in another state. The start date is in two (2) weeks, during your final exam period for your courses. The position offers a $15,000 per year salary increase, a car allowance, and relocation expenses. Your former supervisor works for the company and is recommending you for the position based on your outstanding job performance; if you want the job, it’s yours. All of the other supervisors at this level in the company have Master’s degrees, so you know that you would be expected to earn your Bachelor’s degree and continue on to a Master’s degree. Your present company offers tuition reimbursement, but the new company does not.

Scenario 2: Your child comes home from school with an assignment sheet for a school project. He / she is very excited about the project and begins work immediately, doing research on the Internet and gathering materials. You read over the assignment sheet and notice that your child is not including all of the required items in the project, and you have some ideas for how to improve the quality of the presentation. You recently read an article in a parenting magazine about the importance of a child developing responsibility for his/ her own learning. You recall the many ways in which your parents took over your school projects. You, on the other hand, want to encourage your child’s confidence in his / her ability to complete a project independently. The next day, you are at the grocery store when you see a parent of a student in your child’s class. That parent has spent over $30 in supplies for the science project and is taking a day off of work to put the pieces of the project together.

Scenario 3: You have two jobs, one during the week from 9:00 am to 6:00 pm, and one on Saturday from 3:00 pm to 11:00 pm. You are taking two classes, one that meets from 6:00 to 10:00 pm, and one class online. You have two kids, one who plays soccer, and one who is in band. You have two elderly parents who no longer drive. You have two siblings, one who lives two (2) miles away, and one who lives in another state. You have two (2) papers due in your classes the same week that one (1) of your children has a soccer tournament, and the other child has a band concert. You are coaching the soccer team, and you are in charge of fundraising for the band. You have a goal to complete your degree in two (2) years. Your doctor tells you that your blood pressure, your cholesterol, and your weight are too high and recommends several medications that cost you nearly $200 per month after your insurance co-pay.

Scenario 4: You are a sales representative for a company that encourages staff to log time in the field and away from the office. You are expected to begin and end your day at the office. You notice that each day when you arrive and return another co-worker is already there, and you wonder whether this person spends most of his / her time at the office. At your weekly sales meeting, you are informed of your co-workers’ outstanding sales performance. You suspect that this co-worker is spending more time flattering the boss instead of working leads in the field, and as a result is getting the best client referrals. Your own sales numbers have steadily decreased since this other sales representative was hired.

 

Write a four to five (4-5) page paper in which you:

  1. Define the problem in the scenario that you have chosen.
  2. Analyze the problem in the scenario.
  3. Generate options for solving the problem in the scenario.
  4. Evaluate the options for solving the problem.
  5. Decide on the best option for solving the problem.
  6. Explain how you will implement the decision made and reflect on whether this option was the most effective.

Chapter 7 – study questions 1-10, Exercise 2 ( from Information Systems for Business and Beyond textbook) Chapter 8- study questions 1-10, Exercise 2 ( from Information Systems for Business and Beyond textbook)

 

Chapter 7 – study questions 1-10, Exercise 2 ( from Information Systems for Business and Beyond textbook)

Chapter 8- study questions 1-10, Exercise 2 ( from Information Systems for Business and Beyond textbook)

The above assignments should be submitted in a single word document.

info tech import plan

 

The vast majority of the population associates Blockchain with cryptocurrency Bitcoin; however, there are many other uses of blockchain; such as Litecoin, Ether, and other currencies. In this discussion, please describe at least two cryptocurrencies with applicable examples. Discuss some similarities and differences. Lastly, discuss if you have any experience using any cryptocurrencies.

Please make your initial post and two response posts substantive. A substantive post will do at least two of the following:

  • Ask an interesting, thoughtful question pertaining to the topic
  • Answer a question (in detail) posted by another student or the instructor
  • Provide extensive additional information on the topic
  • Explain, define, or analyze the topic in detail
  • Share an applicable personal experience
  • Provide an outside source (for example, an article from the UC Library) that applies to the topic, along with additional information about the topic or the source (please cite properly in APA)
  • Make an argument concerning the topic.

Discussion

  

1. Watch the following two videos:  https://www. youtube.com/watch?v=GHc63Xgc0-8 and  https://www.youtube.com/watch?v=ggN8wCWSIx4 for a  different view on impact of AI on future jobs. What are your takeaways from these videos? What is the more  likely scenario in your view? How can you prepare for the day when humans indeed may not need to apply  for many jobs?

2. Conduct research to identify the most recent develop-ments in self-driving cars.

deadlock paper

 

Projects
  1.  Compile a list of algorithms employed in today’s operating systems to avoid deadlocks.

2. Conduct research to determine which algorithms check network states for a deadlock. Submit your findings in a report.

mad research paper

 

What are baseline security requirements that should be applied to the design and implementation of applications, databases, systems, network infrastructure, and information processing when considering cloud computing within an enterprise risk management framework?

Your paper should meet the following requirements:

  • Be approximately four to six pages in length, not including the required cover page and reference page.
  • Follow APA7 guidelines. Your paper should include an introduction, a body with fully developed content, and a conclusion.
  • Support your answers with the readings from the course and at least two scholarly journal articles to support your positions, claims, and observations, in addition to your textbook. The UC Library is a great place to find resources.
  • Be clearly and well-written, concise, and logical, using excellent grammar and style techniques. You are being graded in part on the quality of your writing.

BSWA Week 6

 

Do a bit of research on JSON and AJAX.

How do they relate to the the Same-Origin policy?

Using WORD, write several short paragraphs on each. A  total of 300 words.