Free Essay

Pt1420 Lab 3

In: Computers and Technology

Submitted By brainsharts
Words 458
Pages 2
LAB 3.1 Variable Name | Problem (Y or N) | If Yes, what’s wrong? | Declare Real creditsTaken | No | | Declare Int creditsLeft | Yes | The variable should be declared as Real so it can indicate decimal values | Declare Real studentName | Yes | The variable should be a String to store text | Constant Real creditsNeeded = 90 | No | |

Step 2: The calculation should be “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 Owens has 70 left to take before graduation.”
Step 5:
1. //Provide documentation on line 2 of what this program does
2. //This program calculates how many credits a student still needs to graduate the NSA program 3. //Declare variables on lines 4, 5, 6, and 7
4. Declare Real creditsTaken = 0
5. Declare Real creditsLeft = 0
6. Declare String studentName = “NO VALUE”
7. Declare Constant Real creditsNeeded = 90 8. //Ask for user input of studentName and creditsTaken on line 9 - 12.
9. Display “What is the student’s name?”
10. User input = studentName
11. Display “How many credits does the student have?”
12. User input = creditsTaken 13. //Calculate remaining credits on line 14
14. creditsLeft = creditsNeeded – creditsTaken 15. //Display student name and credits left on line 16 and 17
16. Display “The student’s name is “, studentName
17. Display “They require “, creditsLeft ,” in order to graduate the NSA program.”

LAB 3.3

Module Module1

Sub Main() Const fiberCost As Double = 0.87 Dim companyName As String = "NO VALUE" Dim numFeet As Double = 0 Dim totalCost As Double = 0 Dim anotherEstimate As String = "n"

Do

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

Console.Write("Enter number of feet of fiber to be installed. ") numFeet = Console.ReadLine()

totalCost = numFeet * fiberCost

Console.WriteLine("For your company, " & companyName & ", the total price of the required fiber is $" & totalCost & ".")

Do Console.WriteLine("Would you like to get another esitmate? Type 'y' for yes, 'n' for no: ") anotherEstimate = Console.ReadLine()

Loop Until anotherEstimate = "n" Or anotherEstimate = "y"

Loop Until anotherEstimate = "n"

Console.Write("Press enter to continue...") Console.ReadLine() End Sub

End Module

LAB 3.4

Module Module1

Sub Main() Dim creditsNeeded As Double = 0 Dim creditsEarned As Double = 0 Dim studentName As String = "NO VALUE" Const creditsTotal As Double = 90

Console.WriteLine("Welcome to the Network Systems Administration credit requirement calculator!") Console.WriteLine("What is your name?") studentName = Console.ReadLine()

Console.WriteLine("How many credits have you earned already?") creditsEarned = Console.ReadLine()

creditsNeeded = creditsTotal - creditsEarned

Console.WriteLine("" & studentName & " requires " & creditsNeeded & " credit hours in order to graduate the Network Systems Administration degree program at ITT Tech.") Console.WriteLine("Thank you for using this program. Press enter to continue...") Console.ReadLine()

End Sub

End Module

Similar Documents

Premium Essay

Lab 3 Pt1420

...Lab 3.1 Step 1: Variable Name | Problem (Yes or No) | If Yes, what’s wrong? | Declare Real creditsTaken | No | | Declare Int creditsLeft | Yes | Int should be real | Declare Real studentName | Yes | Real should be string | Constant Real credits needed = 90 | Yes | Credits needed should be one word | Step 2: There is no Set keyword used prior to the equation Should be Set creditsLeft = creditsNeeded - creditsTaken Step 3: The student’s name is Nolan Owens Step 4: This program requires 90 credits and they have taken 20 credits so far. Step 5: 1. //Provide documentation on line 2 of what this program does 2. //This program calculates the credits the student has left before graduation 3. //Declare variables on lines 4, 5, 6, and 7 4. Declare Real creditsTaken 5. Declare Real creditsNeeded 6. Declare Real creditsLeft 7. Declare String studentName 8. //Ask for user input of studentName and creditsTaken on line 9 - 12. 9. Input studentName 10. Input degreeName 11. Input creditsNeeded 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 student’s name is”, studentName 17. Display “This means there are”, creditsLeft, “left until graduation.” Lab 3.2 Lab 3.3 Module Module1 Sub Main() 'local variables used in this program Const fiberCost...

Words: 275 - Pages: 2

Premium Essay

Pt1420 Unit 3 Lab Report

...Then we counted the number of 3x3 unit squares, we found 4. We found each of there by starting from each corner of the Figure 1. One 3x3 unit square can be found shaded in Figure 1d. Figure 1d (3 x 3) Lastly, we counted Figure 1 as one whole 4x4 unit square, shaded in Figure 1e. When figuring out how many squares were in Figure 2, we first noticed that the first four rows represent Figure 1; therefore, we did not recount since we previously figured out there were forty squares in Figure 1. We then counted the squares formed by adding two additional rows using the same process as we did for Figure 1. We counted four squares measuring ½ x ½ units, nine squares measuring 1x1 units, six squares measuring 2x2 units, four squares measuring 3x3 units, and four...

Words: 506 - Pages: 3

Free Essay

Itt Technical Institute Pt1420 Unit 2

...David Camacho PT1420 Programming Lab 2.1 Display Welcome to the Fiber Optic Calculator Program. Enter company name. Enter the number of fiber optic cable needed. Multiply .87 times the feet needed for the total cost. Display the total cost of the fiber optic cable and the company name. Purpose of Variable | Variable Name | Stores cost of fiber | fiberCost | Stores the company name | firstChoice | Stores the number of feet to be installed | 50 | Stores the calculated cost of installed fiber | .87 | Display “Welcome to the Fiber Optic Calculator Program” Set fiberCost = .87 Display “What is the company name?” Input companyName Display “How many feet of fiber will be installed” Input feetInstalled Set totalCost = fiberCost * feetInstalled Display “For the company” , companyName, “the total cost will be $” , totalCost David Camacho PT1420 Lab 2.2 Flowchart David Camacho PT1420 Programming Lab 2.3 Visual Studios Program David Camacho Unit 2 HW Assignment 1 Short Answer 1.What does a professional programmer usually do first to gain an understanding of a problem? The programmer creates a design for the program, which starts by asking the customer what they need the program to accomplish. 2.What is pseudocode? Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed. 3.Computer programs typically perform what three steps? Step 1: Input is received. Step 2: Some...

Words: 718 - Pages: 3

Premium Essay

Nt1230 Syllabus

...ITT Technical Institute NT1230 Client-Server Networking I Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 56 (34 Theory Hours, 22 Lab Hours) Prerequisite(s) and/or Corequisite(s): Prerequisite or Corerequisite: NT1210 Introduction to Networking or equivalent Course Description: This course introduces operating principles for the client-server based networking systems. Students will examine processes and procedures involving the installation, configuration, maintanence, troublshooting and routine adminstrative tasks of popular desktop operating system(s) for standalone and network client computers, and related aspects of typical network server functions. Client-Server Networking I Syllabus Where Does This Course Belong? 1st QTR GS1140 NT1110 GS1145 Problem Solving Theory Computer Structure and Logic Strategies for the Technical Professional 2nd QTR NT1210 Introduction to Networking NT1230 Client-Server Networking I MA1210 College Mathematics I 3rd QTR NT1310 NT1330 MA1310 4th QTR PT1420 NT1430 EN1320 5th QTR PT2520 NT2580 EN1420 6th QTR NT2640 NT2670 CO2520 7th QTR NT2799 SP2750 Physical Networking Client-Server Networking II College Mathematics II Introduction to Programming Linux Networking Composition I Database Concepts Introduction to Information Security Composition II IP Networking Email and Web Services Communications Network Systems Administration Capstone Project Group Theory The follow diagram indicates how this course...

Words: 1834 - Pages: 8

Premium Essay

Test

...ITT Technical Institute IS3340 Windows Security Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 60 (30 Theory Hours, 30 Lab Hours) Prerequisite(s) and/or Corequisite(s): Prerequisite: NT2580 Introduction to Information Security or equivalent Course Description: This course examines security implementations for a variety of Windows platforms and applications. Areas of study include analysis of the security architecture of Windows systems. Students will identify and examine security risks and apply tools and methods to address security issues in the Windows environment. Windows Security Syllabus Where Does This Course Belong? This course is required for the Bachelor of Science in Information Systems Security program. This program covers the following core areas:    Foundational Courses Technical Courses BSISS Project The following diagram demonstrates how this course fits in the program:    IS4799 NT2799 IS4670 ISC Capstone Project Capstone ProjectCybercrime Forensics NSA    NT2580 NT2670  Introduction to  Information Security IS4680 IS4560 NT2580 NT2670 Email and Web Services Hacking and Introduction to  Security Auditing for Compliance Countermeasures Information Security Email and Web Services      NT1230 NT1330 Client-Server Client-Server  Networking I Networking II  IS3230 IS3350 NT1230 NT1330  Issues Client-Server Client-Server  SecurityContext in Legal Access Security Networking I Networking II   NT1110...

Words: 2305 - Pages: 10

Premium Essay

Its Making Put Something Here

...PT1420 Introduction to Programming Week-2 Lesson Plan TUE 6:00 PM to 10:30 PM Instructor: Tushar Patel (tspatel02@yahoo.com, tpatel@itt-tech.edu) CLASS: Topic: Unit 2: Software Program Design I Course Objectives Covered by This Unit CO2: Design programs by using flowcharts and pseudo code. CO3: Write programs that perform input, processing, and output. Unit Learning Outcomes LO8: Determine program input, processing, and output stages. LO9: Create the necessary flowcharts to describe a program’s structure. LO10: Use pseudocode to define a program’s structure. LO11: Formulate solution algorithms for calculations by properly following the order of operations. Key Concepts ▪ Determining input, process, and output ▪ Creating flowcharts and pseudocode ▪ Formulating algorithms Reading ▪ Gaddis, Chapter 2: “Introduction to Computers and Programming,” pages 29-55 Resources: • Data Projector • ITT Virtual Library • Text Books • Visual Studio • Lab Computers • Student Removable Hard Drive • VM Ware Player Methods: • Lecture • Group Discussion • Lab Work • Review exercise / Research Papers • Quiz Brief Lesson Overview: Today’s lecture we would be discussing the following topics. • Discuss how all programs basically consist of a three-step process: input, process, and output. Use the payroll calculation program...

Words: 895 - Pages: 4

Premium Essay

Nt2640

...ITT Technical Institute NT2640 IP Networking Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 56 (34 Theory Hours, 22 Lab Hours) Prerequisite(s) and/or Corequisite(s): Prerequisites: NT1210 Introduction to Networking or equivalent Course Description: This course explores network design and implementation by applying the TCP/IP protocols to provide connectivity and associated services. Planning and deployment of network addressing structures, as well as router and switch configurations, are also examined. IP Networking Syllabus Where Does This Course Belong? This course is required in the associate degree program in Network Systems Administration and associate degree in Mobile Communications Technology. The following diagrams indicate how this course relates to other courses in respective programs: Network Systems Administration NT2799 NSA Capstone Project NT2580 Introduction to Information Security NT2670 Email and Web Services NT2640 IP Networking PT2520 Database Concepts NT1330 Client-Server Networking II NT1230 Client-Server Networking I NT1430 Linux Networking PT1420 Introduction to Programming NT1110 Computer Structure and Logic NT1201 Introduction to Networking NT1310 Physical Networking CO2520 Communications SP2750 Group Theories EN1420 Composition II EN1320 Composition I GS1140 Problem Solving Theory GS1145 Strategies for the Technical Professional MA1210 College Mathematics...

Words: 2573 - Pages: 11

Premium Essay

Lab 2.4

...Steven Moynihan PT1420 LAB 6 July 21, 2014 6.1 Declare integer mobileProvider = 0 Declare integer dataOption = 0 Declare Boolean dataPackage = True Module inputOptions( Ref Integer mobileProvider, Ref Integer dataOption, Ref Boolean dataPackage) Display “Enter 1 for ATT, 2 for SPRINT, 3 for VERIZON” Input mobileProvider Display “ Enter 1 if you want a data package, OR 2 if you do not” Input dataOption If dataOption = 1 then dataPackage = True else dataPackage = FALSE end module Module displayProvider (Ref integer mobileProvider) Case = mobileProvider Case1 Display “ You Selected ATT “ Case2 Display “ You Selected SPRINT” Case3 Display “ You Selected VERIZON” Case Else Display “ You Didn’t Select A Valid Option“ End module Module userDisplay (byVal mobileProvider, byVal Boolean dataPackage) If mobileProvider = 1 and dataPackage = True then Display “ You Have Selected ATT With A Data Package” If mobileProvider = 2 and dataPackage = True Then Display “ You Have Selected SPRINT With A Data Package” Else if mobileProvider =3 and dataPackage = false then Display “ You Have Selected VERIZON And No dataPackage” End module 6.3 Module Module1 Sub Main() Dim mobileProvider As Integer = 0 Dim dataOption As Integer = 0 Dim dataPackage As Boolean = True inputOptions(mobileProvider, dataOption, dataPackage) displayProvider(mobileProvider) userDisplay(mobileProvider, dataPackage) Console.ReadLine() End Sub Sub...

Words: 370 - Pages: 2

Premium Essay

Week 5 Sd1340

...EXPLORE Activity 3: Designing Objects with Visio In-Class Activity Ungraded Course Support Tools/Resources required for this activity: Visio Description: Demonstrate creating an object in Visio. Create a UML diagram and show how to define attributes (properties) and operations (methods). Create the UML for the Card object used in the example. The result should look like this: [pic] Estimated Time: 10 minutes PRACTICE Activity 1: Designing Objects In-Class Activity Ungraded Course Support Tools/Resources required for this activity: None Description: Divide the class into groups of three or four students. Assign each group one of the following objects: Product MusicDownload User TakeoutItem ElectronicBook Video Ask each group to identify at least three properties and one method for each object and write the JavaScript code they would use to define the object. Have a member of each group write their code on the whiteboard. Built-In Objects EXPLORE ACTIVITY 4: BUILT-IN OBJECTS In-Class Activity Ungraded Course Support Tools/Resources required for this activity: Unit 5 PowerPoint Presentation (SD1340.U5.PP1) Unit5Sample2.html (SD1340.U5.AF2) Description: Use Slides 22 through 32 to discuss built-in objects. Students have already been introduced to the Array, String, and Math built-in objects. Use Slides 22 and 23 to show how a built-in object can be extended. Use Slides 24-26 to explore the Math object. Unit5Sample2.html (SD1340.U5.AF2)...

Words: 1297 - Pages: 6

Free Essay

Research Assignment 1

...Unit 1 Louis Billings Research Assignment 1 PT1420 1. C# This general-purpose programming language developed by Microsoft evolved from C and C++ as a part of the software company’s .NET initiative. the C++ programming language standard was ratified in 1998 as ISO/IEC 14882: 1998. The standard was amended by the 2003 This language is an essential part of the .NET framework, so developers who use Microsoft heavily will find it critical, according to Duqaine. 2. Java  An object-oriented programming language developed in the late 1990s by James Gosling and colleagues at Sun Microsystems. This “beautiful” programming language is central for any non-Microsoft developer, i.e. any developer who focuses on the non-.NET experience. It is mostly derived from C and C++ but has a more basic object model. It ranked first on TIOBE’s list of most popular programming languages. 3. Objective-C This object-oriented programming language created first by Brad Cox and Tom Love at their company Stepstone in the early 1980s, adds Smalltalk-like messaging to the C programming language. This language is most used on the Apple iOS and Mac OS X. Objective-C is the principal language used for Apple's Cocoa API as well. 4. C++ is a general purpose multi-paradigm spanning compiled language that has...

Words: 404 - Pages: 2

Premium Essay

Pt1420 Week 1 Research Paper

...Larry Smith March 28, 2015 PT1420 Week 1 assignment COBOL, is a compiled English-like computer programming language designed for business use. It is imperative, procedural and, since 2002, object-oriented. COBOL is primarily used in business, finance, and administrative systems for companies and governments. In 1997, Gartner Group estimated that there were a total of 200 billion lines of COBOL in existence, which ran 80% of all business programs. COBOL is still widely used in legacy applications deployed on mainframe computers, such as large-scale batch and transaction processing jobs. But due to its declining popularity and the retirement of experienced COBOL programmers, programs are being migrated to new platforms, rewritten in modern languages or replaced with software packages. Most programming in COBOL is now purely to maintain existing applications. COBOL was designed in 1959 by the Conference on Data Systems Languages (CODASYL) and was largely based on previous programming language design work by Grace Hopper, commonly referred to as "the (grand)mother of COBOL". It was created as part of a US Department of Defense effort to create a portable programming language for data processing. Intended as a temporary stopgap, the Department of Defense promptly forced computer manufacturers to provide it, resulting in its widespread adoption. It was standardized in 1968 and has since been revised four times. Expansions include support for structured and object-oriented programming...

Words: 1060 - Pages: 5

Premium Essay

Pt1420 Unit 1

...“Unit 1 Assignment 1” ITT Technical Institute Intro to Programming – PT1420 Unit 1 Assignment 1 Short Answer Questions 1. Why is the CPU the most important component in a computer? The reason the CPU is the most important component in a computer is because without the CPU you can’t run any software. 2. What number does a bit that is turned on represent? What number does a bit that is turned off represent? The number in a bit that represents a turned on position is 1. The number in a bit that represents a turned off position is 0. 3. What would call a device that works with binary data? A digital device is a device that works with binary data. 4. What are the words that make up a high-level programming language called? Keywords or Reserved Words are words that make up a high-level programming language. 5. What are short words that are used in assembly language called? Mnemonics are short words that are used in assembly language. 6. What is the difference between a compiler and an interpreter? The difference between a compiler and an interpreter is that a compiler translates high-level language into separate machine language program while an interpreter translates AND executes the instructions in a high-level language program. 7. What type of software controls the internal operations of the computer’s hardware? An operating system controls the internal operations of the computer’s hardware. Unit 1 Research Assignment 1 * What were...

Words: 1534 - Pages: 7

Premium Essay

Nt1210 Introduction to Networking Onsite Course

...Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 56 (34 Theory Hours, 22 Lab Hours) Prerequisite(s) and/or Corequisite(s): Prerequisites: NT1110 Computer Structure and Logic or equivalent Course Description: This course serves as a foundation for the study of computer networking technologies. Concepts in data communications, such as signaling, coding and decoding, multiplexing, circuit switching and packet switching, OSI and TCP/IP models, LAN/WAN protocols, network devices and their functions, topologies and capabilities are discussed. Industry standards and the development of networking technologies are surveyed in conjunction with a basic awareness of software and hardware components used in typical networking and internetworking environments Introduction to Networking Syllabus Where Does This Course Belong? This course is required for the associate program in Network System Administration and the associate program in Electrical Engineering Technology. The following diagrams demonstrate how this course fits in each program. Associate Program in Network Systems Administration NT2799 NSA Capstone Project NT2580 Introduction to Information Security NT2670 Email and Web Services NT2640 IP Networking PT2520 Database Concepts NT1330 Client-Server Networking II NT1230 Client-Server Networking I NT1430 Linux Networking PT1420 Introduction to Programming NT1110 Computer Structure and Logic NT1210 Introduction to Networking ...

Words: 4400 - Pages: 18

Premium Essay

Nt 1210

...Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 56 (34 Theory Hours, 22 Lab Hours) Prerequisite(s) and/or Corequisite(s): Prerequisites: NT1110 Computer Structure and Logic or equivalent Course Description: This course serves as a foundation for the study of computer networking technologies. Concepts in data communications, such as signaling, coding and decoding, multiplexing, circuit switching and packet switching, OSI and TCP/IP models, LAN/WAN protocols, network devices and their functions, topologies and capabilities are discussed. Industry standards and the development of networking technologies are surveyed in conjunction with a basic awareness of software and hardware components used in typical networking and internetworking environments Introduction to Networking Syllabus Where Does This Course Belong? This course is required for the associate program in Network System Administration and the associate program in Electrical Engineering Technology. The following diagrams demonstrate how this course fits in each program. Associate Program in Network Systems Administration NT2799 NSA Capstone Project NT2580 Introduction to Information Security NT2670 Email and Web Services NT2640 IP Networking PT2520 Database Concepts NT1330 Client-Server Networking II NT1230 Client-Server Networking I NT1430 Linux Networking PT1420 Introduction to Programming NT1110 Computer Structure and Logic NT1210 Introduction to Networking ...

Words: 4400 - Pages: 18

Premium Essay

Nothing

...ITT Technical Institute NT1310 Physical Networking Student Course Package Bring this document with you each week Students are required to complete each assignment and lab in this course package on time whether or not they are in class. Late penalties will be assessed for any assignments or labs handed in past the due date. The student is responsible for replacement of the package if lost. Table of Contents Syllabus 2 Student Professional Experience 19 Graded Assignments and Exercises 23 Labs 47 Documenting your Student Professional Experience 57 ITT Technical Institute NT1310 Physical Networking Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 56 (34 Theory Hours, 22 Lab Hours) Prerequisite(s) and/or Corequisite(s): Prerequisites: NT1210 Introduction to Networking or equivalent Course Description: This course examines industry standards and practices involving the physical components of networking technologies (such as wiring standards and practices, various media and interconnection components), networking devices and their specifications and functions. Students will practice designing physical network solutions based on appropriate capacity planning and implementing various installation, testing and troubleshooting techniques for a computer network. Where Does This Course Belong? | | | NT2799 | | | | | | | | NSA Capstone | | | | | | | Project | | | | | NT2580...

Words: 10839 - Pages: 44