Thursday, 27 June 2019

Program to print half pyramid using *

Program to print half pyramid using *
*
* *
* * *
* * * *
* * * * *

#include <stdio.h>
int main()
{
    int i, j, rows;
    printf("Enter number of rows: ");
    scanf("%d",&rows);
    for(i=1; i<=rows; ++i)
    {
        for(j=1; j<=i; ++j)
        {
            printf("* ");
        }
        printf("\n");
    }
    return 0;
}

News on 27 June 2019

The Indian rupee Wednesday advanced by 21 paise to close at 69.15 against the US currency in line with uptrend in domestic equities.At the interbank foreign exchange market, the rupee opened at 69.40 a dollar and advanced to a high of 69.07 during the day. It finally settled at 69.15, up 21 paise against its previous close of 69.36.

Forex dealers said a positive sentiment built up ahead of a scheduled meeting at G20 between US President Donald Trump and his Chinese counterpart Xi Jinping, later this week.Meanwhile, US Treasury Secretary Steven Mnuchin's comments eased concern over the trade impasse with China to some extent.

Besides, traders said, gains in domestic equities, foreign fund inflows and latest news on monsoon progress also helped in reviving domestic currency market sentiment. However, rising crude oil prices and strengthening of the US dollar vis-a-vis other major currencies overseas capped the gains for the rupee.Brent crude futures, the global oil benchmark, rose 1.38 per cent to USD 65.95 per barrel.

The dollar index, which gauges the greenback's strength against a basket of six currencies, rose 0.11 per cent to 96.24.Meanwhile, Financial Benchmark India Private Ltd (FBIL) set the reference rate for the rupee/dollar at 69.3398 and for rupee/euro at 79.0525. The reference rate for rupee/British pound was fixed at 88.4161 and for rupee/100 Japanese yen at 64.81.

V K Sharma, Head-PCG & Capital Market Strategy, HDFC securities, said, "For last two days, overseas investors have been pouring money in domestic equity and debt markets also helped rupee to remain strong during Wednesday's trade."

"Statement released by US Treasury Secretary Steven Mnuchin saying that 'US-China trade deal is 90 per cent complete', has improved the sentiment in emerging market currencies," he said.Meanwhile, the 10-year government bond yield was at 6.93 per cent on Wednesday.Foreign institutional investors (FIIs) remained net buyers in the capital markets, putting in Rs 1,157.87 crore Tuesday, provisional data showed.

On domestic bourses, the BSE benchmark Sensex settled 157.14 points, or 0.40 per cent, higher at 39,592.08. The broader NSE Nifty too rose 51.10 points, or 0.43 per cent, to finish at 1

Application of Java


3 billion devices run Java.
There are many devices where Java is currently used. Some of them are as follows:


  1. Desktop Applications such as acrobat reader, media player, antivirus, etc.
  2. Web Applications such as irctc.co.in, javatpoint.com, etc.
  3. Enterprise Applications such as banking applications.
  4. Mobile
  5. Embedded System
  6. Smart Card
  7. Robotics
  8. Games, etc.

Types of Java Applications
There are mainly 4 types of applications that can be created using Java programming:

1) Standalone Application
Standalone applications are also known as desktop applications or window-based applications. These are traditional software that we need to install on every machine. Examples of standalone application are Media player, antivirus, etc. AWT and Swing are used in Java for creating standalone applications.

2) Web Application
An application that runs on the server side and creates a dynamic page is called a web application. Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used for creating web applications in Java.

3) Enterprise Application
An application that is distributed in nature, such as banking applications, etc. is called enterprise application. It has advantages of the high-level security, load balancing, and clustering. In Java, EJB is used for creating enterprise applications.

4) Mobile Application
An application which is created for mobile devices is called a mobile application. Currently, Android and Java ME are used for creating mobile applications.

Java Platforms / Editions
There are 4 platforms or editions of Java:

1) Java SE (Java Standard Edition)
It is a Java programming platform. It includes Java programming APIs such as java.lang, java.io, java.net, java.util, java.sql, java.math etc. It includes core topics like OOPs, String, Regex, Exception, Inner classes, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection, etc.

2) Java EE (Java Enterprise Edition)
It is an enterprise platform which is mainly used to develop web and enterprise applications. It is built on the top of the Java SE platform. It includes topics like Servlet, JSP, Web Services, EJB, JPA, etc.

3) Java ME (Java Micro Edition)
It is a micro platform which is mainly used to develop mobile applications.

4) JavaFX
It is used to develop rich internet applications. It uses a light-weight user interface API.