George John has Published 1310 Answers

Why a mentor is necessary in life to achieve success?

George John

George John

Updated on 26-Apr-2022 12:06:09

A mentor is a person who gives the right direction to the dreams. A person can weave dreams of success or achievements; however, without a positive direction, no one can reach the destination. For showing which way to go, a mentor is a must to have in one’s life.We all ... Read More

C++ Program to Implement Queue using Array

George John

George John

Updated on 05-Jan-2022 11:00:50

A queue is an abstract data structure that contains a collection of elements. Queue implements the FIFO mechanism i.e. the element that is inserted first is also deleted first. In other words, the least recently added element is removed first in a queue.A program that implements the queue using an ... Read More

Two’s Complement

George John

George John

Updated on 02-Dec-2021 12:44:21

Binary Number System is one the type of most popular Number Representation techniques that used in digital systems. In the Binary System, there are only two symbols or possible digit values, i.e., 0 (off) and 1 (on). Represented by any device that only 2 operating states or possible conditions.Generally, there ... Read More

C++ Program to Compute the Area of a Triangle Using Determinants

George John

George John

Updated on 04-Jul-2020 14:33:05

In this section we will see how to find the area of a triangle in 2D coordinate space using matrix determinants. In this case we are considering the space is 2D. So we are putting each points in the matrix. Putting x values at the first column, y into the ... Read More

Define colors using the Red-Green-Blue-Alpha model (RGBA) with CSS

George John

George John

Updated on 04-Jul-2020 06:59:05

Use the CSS rgb() function to define color using the RGB Model.Use the CSS rgba() function to set RGB colors with opacity.ExampleYou can try to run the following code to set the color with rgba() functionLive Demo<!DOCTYPE html> <html>    <head>       <style>          h1 ... Read More

Usage of CSS grid property

George John

George John

Updated on 04-Jul-2020 06:43:52

Set the following properties with the grid property: grid-template-rows, grid-template-columns, grid-template-areas, grid-auto-rows, grid-auto-columns, and grid-auto-flow property.ExampleYou can try to run the following code to implement the CSS grid propertyLive Demo<!DOCTYPE html> <html>    <head>       <style>          .container {             ... Read More

Define the height of each row in CSS Grid Container

George John

George John

Updated on 04-Jul-2020 06:35:02

Use the grid-template-rows property to define the number of rows in CSS Grid Layout.ExampleYou can try to run the following code to set a number of rows.Live Demo<!DOCTYPE html> <html>    <head>       <style>          .container {             display: grid; ... Read More

Role of CSS flex-direction property row-reverse value

George John

George John

Updated on 04-Jul-2020 06:17:28

Use the flex-direction property with row value to set the flex-items horizontally, from right to left.ExampleYou can try to run the following code to implement the row-reverse value −Live Demo<!DOCTYPE html> <html>    <head>       <style>          .mycontainer {             display: ... Read More

Role of CSS flex-direction property column-reverse value

George John

George John

Updated on 03-Jul-2020 08:02:31

Use the flex-direction property with row value to set the flex-items vertically, in reverse order.ExampleYou can try to run the following code to implement the column-reverse value −Live Demo<!DOCTYPE html> <html>    <head>       <style>          .mycontainer {             display: flex; ... Read More

How to play ringtone/alarm/notification sound in Android?

George John

George John

Updated on 03-Jul-2020 08:02:25

This example demonstrate about How to play ringtone/alarm/notification sound in Android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<? xml version= "1.0" encoding= "utf-8" ?> ... Read More

1 2 3 4 5 6 7 ... 131 Next
Advertisements