Use the data points (28, 3.1) and (10, 2.2) to find an equation of the line through these points. Be
sure to use the equation editor to show all steps (slope, point-slope form and slope intercept
form). Video 35 has several practice problems if you are unsure of the steps. Reminder: It is not
OK to leave a decimal in the numerator or denominator of your fraction!
Solution
(28, 3.1) and ( 10, 2.2)
slope = (2.2- 3.1)/( 10 -28)
= 0.05
slope intercept form equation : y = mx +c
y = 0.05x +c Use ( 10, 2.2) to find c:
2.2 = 0.5 +c ---> c = 1.5
y = 0.05x + 1.5
Point slope form : y - 2.2 = 0.05(x -10).
Using the Graphical User Interface (GUI)Create a user nam.pdf
1. Using the Graphical User Interface (GUI):
Create a user named CMIT140.
Login in as CMIT140.
Add a program to start when CMIT140 logs into the system.
Verify the program starts when CMIT140 logs into the system by logging out and then logging
back in as CMIT140.
Delete the CMIT140 user.
Need to use Python if possible
Using the Graphical User Interface (GUI):
Create a user named CMIT140.
Login in as CMIT140.
Add a program to start when CMIT140 logs into the system.
Verify the program starts when CMIT140 logs into the system by logging out and then logging
back in as CMIT140.
Delete the CMIT140 user.
Need to use Python if possible
Using the Graphical User Interface (GUI):
Create a user named CMIT140.
Login in as CMIT140.
Add a program to start when CMIT140 logs into the system.
Verify the program starts when CMIT140 logs into the system by logging out and then logging
back in as CMIT140.
2. Delete the CMIT140 user.
Need to use Python if possible
Solution
Here you can use build in django login system.
1) configure the url roots:
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth import views as auth_views
urlpatterns = [ url(r'^login/$', auth_views.login, name='login'), url(r'^logout/$',
auth_views.logout, name='logout'), url(r'^admin/', admin.site.urls), ]
2) create a simple login template
{% extends 'base.html' %}
{% block title %}
Login{% endblock %}
{% block content %}
Login
{% csrf_token %} {{ form.as_p }} Login
{% endblock %}
3) you can add the simple counter application when a use logs in; trigger this when user logs in
and kill it when user logs out.