Preview

PT1420 Unit 3 Labs

Satisfactory Essays
Open Document
Open Document
270 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
PT1420 Unit 3 Labs
Lab 3.1
Step 1
Variable Name
Problem (Yes or No)
If Yes, What’s wrong?
Declare Real creditsTaken
No

Declare Int creditsLeft
Yes
Declare as Double, Int can’t account for half credits
Declare Real studentName
Yes
Needs to be String, not Real.
Constant Real creditsneeded = 90
No

Step 2
The calculation is backwards. Should be Set creditsLeft = creditsNeeded – creditsTaken.
Step 3
The student’s name is Nolan Owens
Step 4
The Network Systems Administration degree is awarded after 90 credits and Nolan Owen has 70 left to take before graduation.
Step 5
1. //Provide documentation on line 2 of what this program does
2. //This program shows how many credits a student needs to graduate
3. //Declare variables on lines 4, 5, 6, and 7
4. Declare Real creditsTaken
5. Declare Double creditsLeft
6. Declare String studentname
7. Declare Constant Real creditsneeded
8. //Ask for user input of studentname and creditsTaken on line 9-12
9. Display “What is the student’s name?”
10. Input studentname
11. Display “How many credits has the student taken?”
12. Input creditsTaken
13. //Calculate remaining credits on line 14
14. Set creditsLeft = creditsNeeded – creditsTaken
15. //Display student name and credits left on line 16 and 17
16. Display “The students name is “, studentName.
17. Display “They have”, creditsLeft, “credits left until graduation”

Lab 3.2

Lab 3.3
Const fiberCost As Double = 0.87 Dim companyName As String = "NO VALUE" Dim numFeet As Double = 0 Dim totalCost As Double = 0

Console.Write("Enter company name: ") companyName = Console.ReadLine() Console.WriteLine()

Console.WriteLine("Number of feet") numFeet = Console.Read()

totalCost = numFeet * fiberCost

Console.WriteLine(companyName & "that's cost per foot") totalCost = Console.ReadLine()

Console.Write("Press enter to continue...") Console.Read()

You May Also Find These Documents Helpful

  • Powerful Essays

    Nt1330 Unit 5 Lab Report

    • 1050 Words
    • 5 Pages

    The experimental setup is shown in Figures 5 and 6. Shows the GA-PID and ACO-PID controllers for a 3-phase 60KW SRM motor which are implemented & simulated by using Matlab-Simulink software program. Motor parameters used for simulation are given in Table 1. Tables 2 and 3 shows the GA-PID and ACO-PID controller’s parameters. the response of Kp, Ki and Kd parameters are summarized on table 4 which shows that the proportional controller “Kp” will have the effect of reducing rise time and will reduce the steady state error while the integral controller “Ki” will have the effect of eliminating the steady state error but will have the worst transient response on a system while the derivative…

    • 1050 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    NT1310 Unit 9 Lab 1

    • 1254 Words
    • 4 Pages

    The new structure has been given a grant to make its network state of the art by making it a fiber optic network. The topics of discussion that will be mentioned in this paper are the hardware that will be necessary for the inside and outside of the building and how we would expand the fiber to an adjacent building if it is built. Another topic to be discussed will be describing the safety procedures that will be following during the installation.…

    • 1254 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Lab

    • 91 Words
    • 1 Page

    Transfer the uniformly weighted crushed tablets into a beaker and add 100cm3 of dilute sulfuric acid to the beaker.…

    • 91 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 4 Lab Report

    • 818 Words
    • 4 Pages

    The purpose of Lab 4 was to experiment with the vi editor commands. In the lab, the “garden” file was edited in many different ways. Many commands were explored in this lab including the ab, U, yy, dd, w, set number, set showmode, and paging commands.…

    • 818 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    select LisenceTypeName, sum(licenseTypeEnd) from LicenseType Where LicenseTypeEnd < date> Order by LicenseTypeNameselect Price from licenseType order by count…

    • 164 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 7 Lab 7.1

    • 391 Words
    • 3 Pages

    Include feedlines connecting radio transmitters and receivers with their antennas, computer network (Internet) connections, and distributing cable television signals.…

    • 391 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    unit 7 lab 10

    • 595 Words
    • 3 Pages

    Task 1: Hardware firewalls provide a strong degree of protection from most forms of attack coming from the outside to the internal network. Hardware firewalls can protect computers on a local area network and they can be implemented without much configuration difficulty.…

    • 595 Words
    • 3 Pages
    Good Essays
  • Good Essays

    unit 2 labs

    • 465 Words
    • 2 Pages

    1. A network device is usually built in to the computer. A peripheral device is a device connected to the computer…

    • 465 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    nt1310 unit 1 lab 1

    • 673 Words
    • 3 Pages

    • How much time do you spend talking on the phone, and when do you make your calls? Some providers offer free incoming calls, or free nights and weekends, but those aren’t helpful if you make lots of outbound calls during business hours.…

    • 673 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Unit 4 Lab questions

    • 818 Words
    • 3 Pages

    What do the left and rights sides of the brain do? Which side of the brain does a police sketch artist use when creating a suspect sketch?…

    • 818 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Unit 14 P1& P2

    • 3627 Words
    • 15 Pages

    Coronary heart disease (CHD) is a term used to describe what happens when the blood supply to the heart is blocked or interrupted by a build up of fatty substances in the coronary arteries. CHD is a preventable disease that can be treated.…

    • 3627 Words
    • 15 Pages
    Powerful Essays
  • Satisfactory Essays

    I. Calculate the average, median, low, and high scores for each assignment, lab, test, category average, and total score. Display individual averages with no decimal…

    • 472 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1210 Unit Lab 1

    • 421 Words
    • 18 Pages

    1.) Write out the powers starting from 20 to 26. Next place the values of the powers below. In each block below enter a one subtract that value from the number 127 until you have nothing remaining and all values equal 127.…

    • 421 Words
    • 18 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 3 lab 3 nt1210

    • 275 Words
    • 1 Page

    Exercise 3.1.1 What would happen if wireless devices were not governed by the Wi- Fi Alliance and each vendor had its own standards and protocols? What impact would this have on your personal life or business communications? If each vendor had their own standards and protocols, we would have a harder time making devices that we use every day to inter-operate. We would to have multiple routers depending on the devices we own and probably would not be able to use internet when we’re in a café, library, or airport because of incompatibility.…

    • 275 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Unit 2 Labs

    • 571 Words
    • 5 Pages

    d) I chose the Surrogate Key because it can’t be traced back to any of the patient’s personal information and it will always be unique but it offers less protection against repeating the number.…

    • 571 Words
    • 5 Pages
    Powerful Essays