Preview

Peacefull Uses of Nuclear Energy

Powerful Essays
Open Document
Open Document
1221 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Peacefull Uses of Nuclear Energy
// Biggest of three numbers

echo "Enter three numbers " read a b c if [ $a -gt $b -a $a -gt $c ] then echo " A is big " elif [ $b -gt $c ] then echo " B is big " else echo " C is big " fi

OUTPUT

[1csea56@local host~]$ sh biggest.sh

3 4 9

C is big

[1csea56@local host~]$ sh biggest.sh

7 5 2

A is big

RESULT:

Thus a program has been written in the UNIX successfully to find the biggest of three numbers and the output is verified.

//FIBONACCI SERIES echo "enter the number" read n f=0 a=0 b=1 i=0 while [ $i -le $n ] do f=`expr $a + $f` a=`expr $b` b=`expr $f` i=`expr $i + 1` echo $f done OUTPUT

[1csea56@local host~]$ sh fib.sh

Enter the number
5
0
1
1
2
3

RESULT

Thus a program to perform Fibonacci series was written and executed successfully.

// FACTORIAL OF A NUMBER echo "Enter the value” read n i=1 f=1 while [ $i -le $n ] do f=`expr $f \* $i` i=`expr $i + 1` done echo "Factorial Of $n is:$f"

OUTPUT

[1csea56@local host~]$ sh factorial.sh

Enter the number
4

Factorial of 4 is: 24

RESULT Thus a program to find factorial of a number was written and executed successfully.

// Palindrome program

len=0 i=1 echo “enter the string” read str len=`echo $str|wc -c` len=`expr $len - 1` halflen = `expr $len/2` while [ $i –le $halflen ] do c1= `echo $str|cut -c $i` c2= `echo $str|cut -c $len` if [ $c1! = $c2 ] then echo “ string not palindrome” exit fi i=`expr $i +1` len = `expr $len -1` done echo “string is palindrome”

OUTPUT

[1csea56@local host~]$ sh palindrome.sh

Enter the

You May Also Find These Documents Helpful

  • Satisfactory Essays

    CS305 Final Exam Questions

    • 1044 Words
    • 6 Pages

    7. (B) Suppose EAX, EBX, and ECX contained three unsigned integers. Which of the following code excerpts would display the largest of the three integers?…

    • 1044 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Nuclear power is produced through the use of nuclear reactions to produce nuclear energy that can then be harnessed to generate heat and create superheated steam to drive turbines. The most common nuclear reaction is that of nuclear fission, which is the splitting of an atom’s nucleus into smaller nuclei. Nuclear reactions are incredibly energy dense and thus allow nuclear reactors to make a tremendous amount of electricity. There are only 61 nuclear power plants in the United States, but they account for 19 percent of the entire country’s electricity production. [8][14] There are 7,304 total power plants in the United States, so nuclear plants on average produce over twenty-eight times as much energy as another plant in the U.S.…

    • 730 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Nuclear power refers to the generation of electrical energy by controlled nuclear reactions. These reactions produce heat, which in turn creates steam that runs the generators to produce electricity. Approx. 1/8 of the electricity worldwide generated comes from nuclear energy. In this task, you will analyze the use of nuclear energy as a resource energy.…

    • 1935 Words
    • 8 Pages
    Better Essays
  • Powerful Essays

    Nuclear Energy Policy

    • 16160 Words
    • 65 Pages

    Nuclear energy issues facing Congress include federal incentives for new commercial reactors, radioactive waste management policy, research and development priorities, power plant safety and regulation, nuclear weapons proliferation, and security against terrorist attacks. Significant incentives for new commercial reactors were included in the Energy Policy Act of 2005 (EPACT05, P.L. 109-58). These include production tax credits, loan guarantees, insurance against regulatory delays, and extension of the Price-Anderson Act nuclear liability system. Together with higher fossil fuel prices and the possibility of greenhouse gas controls, the federal incentives for nuclear power have helped spur renewed interest by utilities and other potential reactor developers. Plans for as many as 31 reactor license applications have been announced, although it is unclear how many of those projects will move forward. In his January 2010 State of the Union Address, President Obama called for “building a new generation of safe, clean nuclear power plants” as a key component of his “clean energy” program. Financing for new reactors is widely considered to depend on the loan guarantees authorized by EPACT05 Title XVII, administered by the Department of Energy (DOE). The total amount of loan guarantees to be provided to nuclear power projects has been a continuing congressional issue. Nuclear power plants are currently allocated $18.5 billion in loan guarantees, enough for three or four reactors. President Obama’s FY2011 budget request would nearly triple the loan guarantee ceiling for nuclear power plants, to $54.5 billion. However, opponents of nuclear power contend that the Administration’s proposed increases in nuclear loan guarantees…

    • 16160 Words
    • 65 Pages
    Powerful Essays
  • Better Essays

    December 2, 1942. A depiction of the scene when scientists observed the world's first man made nuclear reactor, the Chicago Pile-1, as it became self-sustaining/critical at the University of Chicago.…

    • 1341 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    A nuclear weapon is a weapon that gets it’s destructive power by turning matter into energy. All nuclear weapons are explosives(usually missiles).They can be transported by missiles, bombs,tank shells,mines, or torpedoes. The most destructive nuclear weapons are far more poweful than any conventional(non nuclear) weapon. A nuclear weapon used in a large city could kill millions of people. A large nuclear war could devastate the Earth’s climate and ability to support life(a.k.a nuclear winter).…

    • 74 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    As the severity of the global warming threat attains universal recognition, the United States must look for ways to decrease its reliance on fossil fuels for electricity production. The combustion of fossil fuels such as oil and coal to generate electricity produces carbon dioxide and other greenhouse gases that lead to a variety of environmental problems. Nuclear power, on the other hand, is a comparatively clean source of energy. Though still widely employed, concerns over security of stored waste and a public distrust of reactor safety—fueled by the incidents at Three Mile Island in 1979 and Chernobyl in 1986, and the paranoia behind the sensational but popular film The China Syndrome—have led to calls for the decommissioning of older plants in current operation. However, it makes little sense, economically and in terms of energy capacity, to decommission plants currently in operation. Conversely, the environmental superiority of renewable sources of energy, the problem of storage of nuclear-waste, nuclear energy’s risks and dangers, and the high expense of nuclear power due to high construction costs and enormous funding for incremental research make the construction of new nuclear power plants an impractical means of decreasing the United States’ reliance on fossil fuels for electricity.…

    • 2071 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Specific Purpose: To persuade the audience that the use of Nuclear Weapons or WMD (weapons of mass destruction), should be eradicated for the safety and preservation of humanity and the world…

    • 756 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nuclear weapons have been around for over 70 years now, still many people around the world are oblivious of the effects that they still have on our world today. The first nuclear weapon, known as the Atomic Bomb, was first detonated in 1945 in Alamogordo, NM. Since then, Nuclear weapons have only had a negative impact on the world, specifically they have affected the environment, economies worldwide, world security, and all life on Earth. The extreme amount of power that these devices possess is unnecessary and illogical which is why they should be outlawed. Although the world's stockpile has decreased, the amount of countries now in possession of these weapons has increased. The 44th president of the United States, Barack Obama has built a…

    • 556 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Sas If Then Else

    • 1347 Words
    • 6 Pages

    Using IF THEN ELSE statements, LENGTH is to be use so that the new coloum create (Patient) will have defined length that is $12.…

    • 1347 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Nuclear Power is reliable yet controversial source of energy in the U.S. Many people have different viewpoints on Nuclear energy. Although nuclear energy can cause many problems such as nuclear accidents, it saves money, produces less pollution, and it can be made in any environment. The benefits of nuclear energy outweigh the risks. Without nuclear energy we would be relying on the weather for energy.…

    • 347 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Throughout the world, countries are leaning towards nuclear energy due to the amount of energy it can produce with very little resources. This topic is worth investigating since energy is basically a must, now in the 21st century. It is now considered an essential to have energy in our lives to maintain our standards of living. We have gone to many different sources of energy other than nuclear energy such as coal, solar, wind, oil and more, but many of those energy source have flaws too. Some sources of energy will reach the peak of their production due to resources and will eventually fall, others pollute the environment just like nuclear energy and some just don’t produce enough energy for us to fully rely on them. Many countries needed a new source of energy since…

    • 791 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nuclear Energy

    • 809 Words
    • 4 Pages

    Most countries today are becoming more and more dependent on nuclear power as a source of energy because of its high energy output and the availability of uranium used for fuelling nuclear reactors that generate power to provide electricity in households. Although using nuclear power as a source of energy has benefits like this, the danger posed by using nuclear power is very eminent. This was demonstrated in the recent Fukushima daiichi nuclear reactor crisis wherein the reactors as of March 24, 2011 at Fukushima emitted 30,000 to 110,000 TBq of Iodine 131 much higher compared to Chernobyl’s 760 PBq or 400 kg of I-131, 85 PBq Cs-137 (Shimbun, 2011). Another widely known nuclear reactor accident was the Chernobyl disaster that occurred on April 26, 1986 (Black, 2011).…

    • 809 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    bvjnmk,l

    • 2025 Words
    • 9 Pages

    academic year and field of study, the name of your school on screen and your mobile…

    • 2025 Words
    • 9 Pages
    Satisfactory Essays
  • Better Essays

    Nuclear Weapons

    • 1103 Words
    • 5 Pages

    Functional programming Ex. C++. #include <iostream> // Fibonacci numbers, imperative style int fibonacci(int iterations) { int first = 0, second = 1; // seed values for (int i = 0; i < iterations; ++i) { int sum = first + second; first = second; second = sum; } return first; } int main() { std::cout << fibonacci(10) << "\n"; return 0; } A functional version (in Haskell) has a different feel to it: -- Fibonacci numbers, functional style -- describe an infinite list based on the recurrence relation for Fibonacci numbers…

    • 1103 Words
    • 5 Pages
    Better Essays