Professional Documents
Culture Documents
University logo
Name:
……………..
Roll No:
………………….
Department:
……………………
Course Name:
…………………..
Course Code:
………………….
Submitted By:
…………………..
Submitted To:
……………………………
University Name
1) Binary arithmetic, logical unit, in digital computer
• Computers are divided into three categories based on their usefulness, size, and purpose.
• Computers may be analogue, digital, or hybrid, depending on their functionality.
• Analog computers process continuous data while digital computers process discrete data.
On the other hand, hybrid processors can process both discrete and continuous data.
Binary arithmetic:
• There are only two digits 0 and 1 in the binary system and these two digits are capable of
representing any number.
• The operations of binary multiplication, addition, subtraction, division and binary division
are referred to as binary arithmetic.
• Binary arithmetic begins with the minimum important bit.
Addition:
0+0=0
1+0=1
1+1=0
Multiplication:
1*1=1
1*0=0
Subtraction:
1-1=0
1-0=1
1-1=0
The Internet Protocol (IP) is a way of transmitting data from one device to another over the
internet. Every device has an IP address, which uniquely identifies it and allows it to
communicate and exchange data with other internet-connected devices.
The Transmission Control Protocol (TCP) is a communications protocol that allows application
programmers and computing devices to exchange messages over a network
5. Principal of Programming.
✓ Write DRY Code.
✓ Open/Closed.
✓ Single Responsibility.
✓ Separation of Concerns.
✓ Composition Over Inheritance.
Task No#1
a) Cost of Hardware:
The following are the current computer hardware platform trends:
Every year, the regular skill suggestion spends $75,000 on hardware and software. After the
initial purchase, 80 percent of total IT costs emerge. Gartner, Inc. is a research and consulting
firm. The annual expense of an unmanaged PC is $6,000.
b) size of Memory:
Memory device is the amount of data contained in a storage device. The capability for this storage is
expressed as bytes. Computer and other storage devices depend on memory which has to sorted data
and manage it fastly process. There are main units are Bit, Nibble, Byte and word. These are main unit
of computers.
Bit (Binary Digit) It is logical 0 and 1. It represent Passive or Active state of a computer.
Byte it is pair of four bits mean 8 bits. It is smallest unit represent data item and character.
Word Its size is fixed like byte. It contains fixed group bits. Length of computer word is also called word
size or word length. It has small 8bits and large may be 96 bits.
All storage device price and quality depend on Size of memory. Any device is Known by their
storage. Large storage high speed small storage low speed with memory size and Processor. Both have
main work to speed up the storage device.
c)Speed of Hardware:
Hardware speed depends on their component high quality component will increase the speed of
hardware. There is most trending component of hardware are RAM, CPU and Mother board Also
Monitor. If they are precious and good quality product then it will work very fastly. RAM values
are basically depending of speed of hardware. Hardware is physical and tangible part/component
of a computer which we can see and touch it easily. It has main component Input devices (key
board, mouse), Output Devices (printer, Monitor), Secondary storage devices (Hard disk, DVD,
CD) and Internal Components (Motherboard, RAM, CPU) Software and hardware also both
depend on each other’s without software hardware is useless. Hardware expensive first time.
Different software can work in single hardware.
d)Number element processing:
Processing Elements. Preparing components (PEs) for the most part perform straightforward,
memoryless mappings of the information esteems to a solitary yield esteem. The number
juggling tasks generally utilized in DSP calculations are. Add/sub, add/sub-and-move. Increase,
duplicate and-aggregate.
Task No#2
a) Ease of Programming:
Simplicity of Programming: Multiprocessing framework: It requires an extremely complex
working framework to timetable, equilibrium, and arrange the info, yield, and handling
exercises of numerous processors. The plan of a particularly working framework is a complex
and time accept position. Uniprocessing framework: In single preparing framework it is not
difficult to help portion synchronization and CPU booking. Consequently, they are easier to use
and simple to program and work on when contrasted with multiprocessor frameworks
b) Need of synchronization:
The requirement for synchronization begins when cycles need to execute simultaneously. The
principle motivation behind synchronization is the sharing of assets without obstruction
utilizing common avoidance. The other intention is the coordination of the cycle associations in
a working framework.
Two cycles are supposed to be agreeable if the execution of one interaction influences the
execution of another interaction. These cycles should be synchronized so the request for
execution can be ensured.
c)Performance evaluation:
Multiprocessing framework: Multiprocessor frameworks have preferred execution remainder
over uniprocessor since on a solitary figuring unit all tasks (increases, augmentations, other
arithmetic, coherent activities, and so on) are done sequentially on the unit while they can be
combined in a multiprocessor climate. For Example: If there are two unique projects to be run,
two processors are clearly more remarkable than one on the grounds that the projects can be
at the same time run on various processors. Moreover, if a specific calculation can be divided
into various sub-calculations that can run simultaneously, in a multiprocessor framework, every
one of the sub-calculations can be at the same time run, with everyone on a distinction
processor (prevalently known as equal handling). Multiprocessing frameworks are more solid in
the event that a processor goes down as different processors can keep on working, while in
uniprocessor the whole framework will quit working. Uniprocessing framework: It can accept
position just in successive request, subsequently the general throughput of the framework will
be low when contrasted with the multiprocessing systems.
d)Run time System:
A runtime framework is basically made by the programming language in the manner it presents
the programming engineering that is local to the program. Commonly, a runtime framework
gives both low level and significant level orders, interfacing with both the essential
programming system/library and the fundamental equipment directions set engineering (ISA).
The low-level capacities given by a runtime framework incorporate processor interfacing,
memory stacking and advanced to-twofold change, among others. The more elevated level
capacities incorporate sort checking, code age, and investigating and improvement
administrations.
Task No#3
Task No#4
Yes,
concurrency, but not parallels are possible. concurrency, concurrency, means that in an
overlapped time period two different activities or threads start working together, but that doesn't
mean that they can work simultaneously. In a concurrency, at least two processing threads should
be executed.
Task N0#5
Network Protocol:
A network protocol is a set of rules, conventions, and data structures that govern how devices
communicate within networks. In other words, network protocols are languages that two devices
must learn in order to communicate information seamlessly, regardless of infrastructure or
design differences.
Why Network protocol necessary?
Network protocols are required because they include mechanisms for devices to recognize and
communicate to one another, as well as formatting rules that define how data is packed into
messages that are sent and received.
Task No#6
TASK No#7
a) Display a welcome message
#include<iostream>
#include<conio.h>
int main()
cout<<"wellcom to my program";
getch ();
return 0;
}
Part b) display average
#include<iostream>
#include<conio.h>
int main() {
int a;
int array[10];
int total_sum=0;
for(a = 0; a<10;a++) {
cout<<"Number is %d : \n"<<a+1;
cin>>array[a];
for(a = 0; a<10;a++) {
average = total_sum/10;
cout<<"Average is ="<<average;
//getch();
}
Part c) Grading marks result Card
#include<iostream>
#include<conio.h>
int main()
int number;
cin>>number;
if(number>=70)
else if(number>=50)
else if(number>=40)
else if(number<40)
{
cout<<"Sorry!!!,you haven't got a degree'";
return 0;
Coding Output: