Find the Number of Triangles After N Moves Using C++

Prateek Jangid
Updated on 25-Nov-2021 12:06:21

218 Views

n the article, first, we have to draw a colored triangle. We need to take an uncolored triangle and divide the triangle into four small equilaterals. Triangles with the same area and keep doing it till the nth step and find the number of equilateral triangles present in the figure.Approach to find The SolutionThere are Two Approaches for this Solution and they are −Brute Force ApproachWe can observe that the number of triangles keeps increasing by some number (increasing by 3*previous_number + 2) after every step. So we can run a loop till n and calculate the number of triangles.Example#include ... Read More

What is a Batch Operating System

Bhanu Priya
Updated on 25-Nov-2021 12:01:54

3K+ Views

To avoid the drawbacks of early systems the batch processing systems were introduced. The early systems required more setup time.To overcome this drawback, batch processing is used where the more set up time was reduced by processing the jobs in batches in this approach similar jobs were sent to the CPU for processing and were run together.The important task of the batch processing system is to automatically keep executing the job in batches to reduce the setup time.In the early job processing systems, the jobs were placed in a job queue and the memory allocated or managed by the primary ... Read More

Characteristics of Batch, Embedded, Real-Time, and Mainframe Operating Systems

Bhanu Priya
Updated on 25-Nov-2021 11:58:50

2K+ Views

Let us understand the characteristics of mainframe operating systems.Characteristics of Mainframe operating systemsThe characteristics of Mainframe operating systems are explained below −These systems have a large number of CPUs each having great processing power. All the CPUs with great processing power are combined into the Mainframe which as a result has the greatest processing power.The memory of the mainframe operating system is very large. It can even be about more than 8GB.Increased Performance/throughput as task load is shared: Mainframes systems share the task load among different processors and input/output devices. Thus, the processing power and efficiency increases multifold.Supports Time Sharing ... Read More

History of the Windows Operating System and MS-DOS

Bhanu Priya
Updated on 25-Nov-2021 11:54:19

731 Views

In the year 1985, the operating system Windows was released by Microsoft. In the beginning, Windows was just a Graphical User Interface in its first version. Windows 1 is the name of the first version of Windows which was released in the year 1985.The purpose of Windows was to let people interact with the machine with a Graphical User Interface without using codes even for all purposes, even for starting a system.The three latest versions of windows are Windows 10 Home, Windows 10 Pro and Windows Enterprise.Process ManagementThe Windows operating system manages the process with the help of a function ... Read More

Levels of Memory in the Operating System

Bhanu Priya
Updated on 25-Nov-2021 11:52:43

821 Views

Inside the computer system the memory hierarchy is arranged from fastest to the slowest as given below −RegistersCaches memoryMain or Primary MemorySecondary MemoryThe memory hierarchy is depicted in the diagram given below −Let us discuss about each memory in detail.RegisterRegisters are very high speed memory, which is present inside the CPU. It is a temporary storage device that means it stores the data temporarily. Generally, they create a general purpose register file to store data. The register file capacity is 32 data words, and each register can be read or written from within a single clock cycle.Cache MemoryThe cache memory ... Read More

Levels of Computer System Organization

Bhanu Priya
Updated on 25-Nov-2021 11:50:44

9K+ Views

The level hierarchy of a computer system consists of different levels that connect the computer with the user which makes the use of the computer. It also explains how the computational activities are performed on the computer.The different levels of computer system level hierarchy are as follows −Level 0 − Digital Logic.Level 1 − Micro architectural level.Level 2 − Instruction set architecture.Level 3 − Operating system.Level 4 − Assembly language.Level 5 − High level language.Level 6 − User oriented.The figure given below depicts these levels −Computer System Level HierarchyLet us discuss about each level hierarchy in detail −Level 0 − ... Read More

Resources Required to Modify Core Level of Operating System

Bhanu Priya
Updated on 25-Nov-2021 11:47:21

187 Views

The Windows Operating System is one of the most used Operating Systems in the world. It is known for its user-friendliness, interactive and simple user interface. There are certain issues with the windows operating system that need to be resolved in order to improve its performance even further.Some of these factors and the areas of improvement are discussed in brief down below −As the system gets older, it gets slower and the rebooting takes a lot of time.Most of the time the system is running out of space to install an update, so in order to deal with it. We ... Read More

Find Trailing Zeroes in Base B Representation of N using C++

Prateek Jangid
Updated on 25-Nov-2021 11:45:49

344 Views

In this article, we will understand the problem of finding trailing zeros of a given number N in the base B representation of its factorial. For examplesInput : N = 7 Base = 2 Output : 4 Explanation : fact(7) = 5040 in base10 and 1001110110000 in base16 having 4 trailing zero. Input : N = 11 Base = 5 Output : 2 Explanation : fact(11) = 39916800 in base10 and 40204314200 in base16 having 2 trailing zeroes.Let's first recap the process of converting any decimal number from one base to another. Let's take an example of converting (5040)10 ... Read More

Operating System Functionality from a System Point of View

Bhanu Priya
Updated on 25-Nov-2021 11:45:36

470 Views

Operating systems allow user application applications to interact with the system hardware. The operating system itself does not provide any functionality but provides a situation where various programs and systems can perform useful functions.It is software which handles the computer's functionality like scheduling, input/output operation resource allocation, files system manipulation, etc and also acts as an interface between the User and hardware.System views can be improved using a new GUI and adding new features to the OS which will result in a better user experience.The operating system is observed from the user point of view or system point of view.Let ... Read More

Operating System Functionality from the User's Perspective

Bhanu Priya
Updated on 25-Nov-2021 11:43:12

2K+ Views

An operating system allows the user application programs to interact with the system hardware. Operating systems provide an atmosphere where different applications and programs can do useful work, but it does not provide any function by itself.The operating system is observed from the user point of view or system point of view.Let us discuss how an operating system is observed from a user point of view.User ViewThe user view depends on the system interface. The different types of user view experiences are explained as follows −Suppose if the user is using a personal computer, the operating system is designed to ... Read More

Advertisements