Sum of Digits in a String

 

 

Write a program that asks the user to enter a series of single-digit numbers with nothing separating them. The program should display the sum of all the single digit numbers in the string. For example, if the user enters 2514, the method should return 12, which is the sum of 2, 5, 1, and 4.

 

Sample Solution

 

 

 

The South China Sea is both the support of world exchange and a pot of contention. There were fights in 1974 and 1988 and there have been many less fierce encounters since. The US has been included since the start and India has started to take intrigue. The ocean isn’t especially wealthy in oil and gas assets, the army installations on the contested Islands are not especially ‘key’ since practically all could be annihilated by a solitary rocket strike, the regional debate includes not six nations, not five, since Indonesia is influenced in spite of the fact that it imagines it isn’t and the ‘notable cases’ of the question are present day.

Europeans came in the East Asian area as shippers and soldiers of fortune. While the British and Dutch had their East India organizations, the French and German royal activities were state driven tasks from the beginning. The American supreme undertaking started with the praiseworthy showcase of the gunboat tact Tokyo harbor in 1853. This domain taking by the pioneer powers gave the establishments to the ebb and flow limits in the South China Sea.

In the wake of asserting select rights more than a few South China Sea archipelagos, Japan involved the Pratas Islands on September 3, 1937. The Japanese Imperial Navy arrived on the Spratlys in December 1938 and attacked Hainan Island the next February. Japan’s military invasion into the South China Sea occurred during 10 years in which France’s Indochina powers had additionally been available in the region, reviewing the islands in the mid 1930s and involving the Paracels in 1938.

With the Japanese attack of Korea and Taiwan, and its seizure from Qing China pursued by the Japanese thrashing by the global intrusion to stifle the ‘Fighter Rebellion’ the Qing line was in emergency and intensely touchy to allegations that it couldn’t protect the nation’s region. Gatherings like Society to Recover the Nation’s Rights, the Society to Commemorate the National Humiliation and so forth boycotted British, American, Japanese and other outside products. So in 1909, a Chinese government chose to turn the power of the Islands of the South China Sea into a matter of national pride just because. This very posing would bring about the drawing of the line that has become the ¬¬basis for China’s cases in the Sea (for example the U – molded line) ¬

For the motivations behind the investigation of its history it very well may be partitioned into two wide periods as talked about underneath. In the pre present day period it was critical to China from the most punctual days as a crucial course of exchange with India, the Gulf district, Middle East lastly Europe. It has been respected by various researchers as a ‘convergence of history,’ an indispensable ocean line of correspondence. The idea of ‘sway’ in those occasions would have looked bad as its absolutely chronologically erroneous Western idea. Besides, in the fifteenth century as it turned out to be certain that the ocean spoke to a defiling set of thoughts and impacts and a unimportant interruption from the dire needs of shielding the land fringes, the sea mission was minimized.

The advanced time includes the European time frame, the post European period, the Cold War time frame lastly the post Cold War period. The period started with the appearance of frontier controls in the district like the Portuguese, Spaniards, Dutch, British and French. Various elements like questions between them, the reception of Western military practices and the lingering obstruction of nearby military pioneers deferred the full Europeanization of Asia Pacific as a rule and South China Sea specifically. France, Britain and Netherlands were the primary contenders in this very locale yet the degree of rivalry was low when contrasted with different areas for example Africa.

The neighborhood protégés once in a while produced cases of their own on either the Spratly or the Paracel Islands. These were emblematic endeavors to a great extent focused on representative signaling instead of continued nearness. Besides both the gatherings of Islands were viewed as navigational dangers instead of objects of business esteem. So the French didn’t challenge Chinese case on the Hainan Islands in 1922. This likewise denotes the beginning of business and military decay which denoted a couple of years after the fact of the second time of the cutting edge period. In short the European time frame denotes the coming and going of the control of different significant forces of the time like Japan, France and Britain on the locale.

With the Japanese crushed, there was something of a short, flickering European resurgence in the zone as some endeavor was made, inside seriously limited assets, to recuperate what had been lost. The topic of the power of the islands was not high in anybody’s key needs, yet before the finish of 1946 both the Chinese and the French had started low-level battles to re-state their cases to the Paracels and the Spratlys.

The beginning of the Cold War brought about the ending up of the French vital nearness in the district and the composing was on the divider for British and Dutch also. With the beginning of Korean War and the contention among South and North Vietnam, the South China Sea started to be viewed as a potential fight ground for battle between the socialists and Western alliance. During the Vietnam War and additionally the weights of the war changed over the Sea into a potential US lake, as the PRC couldn’t propel its inclinations. After the Sino Soviet split and the rot of USSR the PRC was in a superior situation to propel its inclinations in Taiwan and the South China Sea, because of its neighborly relations with the US.

In the repercussions of the Cold War, the contest returned from being a worldwide to “only” a local issue. The present state driven nature of the question was exemplified by various episodes like China’s discharge of the Vietnamese from Johnson Reef in 1988, the ascent of strain among China and Vietnam during July and August 1994, China’s control of Mischief Reef in February 1995, and nearby responses to it.

China, Taiwan and Vietnam make a case for all intents and purposes all the topographical highlights making up the South China Sea islands bunches on the grounds of disclosure, history and occupation. The Philippines and Malaysia guarantee portions of the gathering based on vicinity and that specific highlights lie on their asserted mainland racks. Brunei asserts just one component, additionally on the premise that it lies on Brunei’s mainland rack. A thorough investigation of these cases isn’t important now. In any case, the significant point to note is that none of these sway claims is particularly convincing.

SECTION#2: CONFLICT MANAGEMENT IN THE SOUTH CHINA SEA

The South China Sea issue isn’t just about contending claims; it’s about harmony and soundness in the locale. (ASEAN Secretary General Le Luong Minh)

Why Conflict Transformation?

The contention change approach is utilized in strife and harmony studies and expands on the procedure of refereeing and compromise. In a plenty of peace making approaches the contention change approach is by all accounts increasingly reasonable for catching the elements and improvements in the SCS strife, regardless of its restrictions. This is a direct result of its comprehensive methodology (for example covers every one of the cycles of a contention) as contrasted and others like clash aversion, refereeing compromise and harmony building. In the SCS various pressures exist and struggle of various stages are happening all the while, consequently ideas concentrating on explicit phases of contention cycles miss the mark to get the entire picture. The methodology of contention change developed in the 1990’s and a great deal of endeavors were made to detail exhaustive systems, however because of the quickly changing situation like the 9/11 and the resulting center around fear mongering and a reestablished consideration towards inner wars, no far reaching hypothesis or brought together structure has ever risen.

What is strife change?

Struggle change is basically those ‘activities and procedures which try to adjust the different qualities and indications of contention by tending to the main drivers of a specific conflict over the long haul. It expects to change negative damaging clash into positive productive clash and manages auxiliary, social and attitudinal parts of contention. The term alludes to both the procedure and the finish of the procedure.’

There are four kinds of contention change;

1. Setting Transformations which can deliver major changes in the gathering’ s understanding of the contention situation

2. Auxiliary Transformation include the adjustments in the essential structure of the contention for example to the arrangement of on-screen characters, their issues, opposite objectives and connections or the whole structure (the general public, economy or the state) in which the structure is established.

This question has been answered.

Get Answer