Premium Essay

Nt1310 Unit 3 Assignment 2 Paper

Submitted By
Words 598
Pages 3
/*----------------------*
| Nikeshnee Padiachey |
| 2014 960 33 |
| Modelling 2A11 |
| Assignment 2 |
|(version 1.0) |
| 27/02/2015 |
*----------------------*/

#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
#include <math.h>

int main()
{
Beep (523,1000); printf ("..(\.(\.\n" ".(='.').\n" ".((^)(^).\n" "\n\nGOOD DAY\n\n"); printf("This is Assignment 2 for Modelling 2A...\n\n");

system ("pause");

// emitts sound at 523 hertz for 1 000 milliseconds

/* Question 1 that is for 6 Marks * *Write the code to ask the user for a starting integer and then *calculate and display the Collatz sequence for …show more content…
* Finally print out the number and the number of sequence terms it produced. * */

printf("\a\t\t\t\t_____________________________Q2\n\n");

unsigned long iStart; int iVar, iLargest_number, iLongest_seq, iSeq; iLongest_seq = 0;

for(iStart = 2; iStart <= 1000000; iStart++) { iVar = iStart; iSeq = 1;

while(iStart != 1) { if(iStart % 2 == 0) {

iStart /= 2; ++iSeq;

}

else { iStart = 3*iStart + 1; ++iSeq; } }

if(iSeq > iLongest_seq) …show more content…
* Then that number is printed to the screen in an appropriate message. * */ int iTri_sum=0; int iCount=1; while(1) { iTri_sum= iTri_sum+iCount; iCount++;

int num=0; int i=1; while(i*i<=iTri_sum) { if(iTri_sum%i==0) { num+=2; } i++; } if(num>=60)

Similar Documents

Premium Essay

Telecommunications

...Exercise One Nt1310 Week 1 In: Computers and Technology Exercise One Nt1310 Week 1 NT1310:Week 1 Telecommunications By: Kenneth Martin You are an IT Network Specialist and are required to develop the design of the company’s telephone system for its new building which will begin construction in a few months. In order to get a background which will help when developing the new system, your supervisor asked you to research the current Plain Old Telephone Service (POTS) currently used by the company. You must research the system components and report back to your supervisor , the Telecommunications Manager, within a week. 1. Describe a local land line phone system based on the following Landline Telephone Components: a. Local Loop a local loop is the wired connection from a telephone company's central office in a locality to its customers' telephones at homes and businesses. This connection is usually on a pair of copper wires called twisted pair. The system was originally designed for voice transmission only using analog transmission technology on a single voice channel. Today, your computer's modem makes the conversion between analog signals and digital signals. With Integrated Services Digital Network (ISDN) or Digital Subscriber Line (DSL), the local loop can carry digital signals directly and at a much higher bandwidth than they do for voice only. b. Central Office In telephone communication in the United States, a central office (CO) is an office in a locality...

Words: 496 - Pages: 2

Premium Essay

Network Topologies

...Network Topology Paper Unit 3 Assignment 1 ITT TECHNICAL INSTITUTE NT1310 Physical Networking Peter Mahlan 20168804 04/08/2016 Table of Contents Scope or Introduction 3 Unit 3. Assignment 1. Network Topology 3 Section 1 3 Conclusion 5 Reference 5 Network Topology Scope or Introduction Unit 3. Assignment 1. Network Topology Course Objectives and Learning Outcomes In this assignment, you will describe the hierarchical star, bus, and ring network topologies. Assignment Requirements Chapter3 covered 3 main network topologies – hierarchical star, bus, and ring. Write a paragraph describing each topology. Discuss the reasons for using each, and any strengths/weaknesses each has. Submission Requirements Submit a 1-2 page Word document; double-spaced; Times New Roman 12 pt font. Cite all sources used. Section 1 In computer networking, topology refers to the layout of connected devices. Think of a topology as a network’s virtual shape or structure. This shape does not necessarily correspond to the actual physical layout of the devices on the network. For example, the computers on a home network may be arranged in a circle in a family room, but it would highly unlikely to find a ring topology there. Hierarchical Star Hierarchical star is also known as an extended star topology. Hierarchical or extended star topology is a star network with an additional networking device connected to the main networking device. Typically, a network...

Words: 691 - Pages: 3

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

Premium Essay

Unit

...ITT TECHNICAL INSTITUTE NT1310 Physical Networking GRADED ASSIGNMENTS ------------------------------------------------- Student Professional Experience Project NSA SPE Project 1 (to be completed by the end of NT1310): Install, Configure, Test, Maintain and/or Document the Worksite Local Area Network and Its Components Purpose The purpose of the Student Professional Experience (SPE) project is to provide you an opportunity for work experience in your field or in a related field to add to your résumé. You may have an opportunity to serve your community or work for a local employer for a project that will take between 20 and 30 hours. Project Logistics Career Services will identify an employer with needs in the following areas: Network related tasks (mostly confined to the LAN and Microsoft Windows Server 2008 environments) Students are expected to practice various skills discussed in all the technical courses in Quarters 1 through 3 of the NSA program at an employer’s site on network related tasks (more confined to the LAN and Microsoft Windows Networking with Server 2008 environments) that would involve installation, configuration, testing, maintenance and documentation of the worksite network and its components, and to properly document the technical information in all involved activities. Such documentation will be used as the source material for Items 2 and 3 defined in the Deliverables section of this document. Possible example projects could...

Words: 6762 - Pages: 28

Premium Essay

Fsmo Role Ayer Nate Method

...important to be aware of what servers are Global Catalog servers, especially if you have more than one domain and even if only one domain, they will be prefered by applications like Exchange server. It is recommended to place the forest roles on one Domain Controller (DC) and the domain roles on another server. If not all Domain Controllers are Global Catalog servers, it is also important to place the infrastructure master on a server that is NOT a Global Catalog server. Recommended Best Practice setup of FSMO roles. Domain Controller #1 Place the two forest roles on this server. * Schema Master * Domain Master Domain Controller #2 Place the domain roles on this server. * RID Master * Infrastructure Master * PDC Emulator If more domains exist in the forest, place the domain roles on a server in theese domains like Domain Controller #2 Global Catalog configuration. In Windows 2008 Active Directory all Domain Controllers are by default Global Catalog servers, personally...

Words: 10360 - Pages: 42