0% found this document useful (0 votes)
17 views4 pages

PR 10 Program

Uploaded by

Sahil Mhaske
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views4 pages

PR 10 Program

Uploaded by

Sahil Mhaske
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Activities ~ Terminal

ubuntu@ubuntu-HP-EltteDesk-B00-G 3-SFF : -$ touch si.ngle. sn. ·


ubuntu@ubuntu-HP-EltteDesk-800-G 3-SFF : ~$ bash single. ~ii'
,(e
[
·· 1' .. I

I
.i'
.
Enter percentage here:
96
.., ,, .,

Grade A
ubuntu@ubuntu-HP-EliteDesk-B00-G 3-SFF : ~$ touch double.sh1

·ii ubuntu@ubuntu-HP - EliteDesk-B0 0-G3-SFF : ~$ bash double.sh


Enter percentage of student:
45
double.sh: llne 3: [: -gt: unary operator · expected
Fall
Activities · · r'0 .rex~Edi .
, ..
Open _v _
~ . •'J';', .\..

I~
.

:
·""'1.a
.
-

\ ~. ·:t
.

l
1 // sing le dect slon
2 echo
.):) r·ea d
II
Ente r .per~~_
d
gra e
h tag~
·_···,~,
;'""h•~.-J:o:r
4 i. f [ $gra de -ge 90 jl·~-:~k'8r. ·J'./:'$g t ac:le - ii!
5 then -·· · ,.,,
6 ech-o "Gra de A"
7 ft
8 lf [ $gra de -ge 70 ] ,t~d~
9 th•en
1(:) ,ech,o "Gra de B"
11 f t
12 t f [ $gra de -ge 50
13 the n
14 ech,o "Gra de C"
1 5 ft
16 lf [
i 17 then
18 ec h,o "G rade D0
I
I 19 f t
.I
20 t f ' [ $gra d"'
21 t hen it, 1

22 echo
23 "f'f:J'

0
Activities -· f Jj{ ;Edlfo_r,
@
Open
~-
:v. r+1
,_
··t.1, . .; i;:,; :"l.;. .

··:c::\ . _ ~.,::·~· ,_.~"-·_11 .... :;\ .


:· osy.sl ';:·t.,,

:·ii; ' .
, : ., .,.-:;,I,. ,4'.';; '.~, -.. '

1 //Mul ti.p le deci.si.on , : ._,


II
~t f.~(:::h:i:::ii Enter percen tag1.,
3 JI"" u;:•,rn ,di g rad e
4 "l.·11:: I[ $-g radl,e -ge 90 ]
1::;-_
-.J
'ii!1"'... H,1,1:::11
11..
.I ""' I
11"1\

nu ii'""
1'1',..) 11::u ul11
nm 11"11I·11"'
11
Grad e A11
7 ,1:::il.·l..·11:: I[ $-grade -ge ae ]I

iI -
' ,a
~ '
•I)
i:...1

9
..u
1
'ilI,,,1"' 11"1,I1·11:::i,""' l\"1,I1
,11:::
Uuw

Ullt
11 11'""11"11•11"'11
11111

10• -11::,, '"I ... , 'II"'"' [ $grade -ge 70 '


111
[

·1·111
111
"Grade 8 11

l 11 t h -11:: !!!1'111 ,,1:::i, II'"" 1"11 ·il"'II II Grade Cn 11111 lm1 IJ ] ul

I
1.
! 12 '"I 'IL' ''u1"' I[ $grade -ge 60
"' .,;:~~ Ill '11
11
,u

i
i 13 t :h, ,11:: !!rm ,,1:::!111:::: ju11, , 1::1 "Gr ad.~ D_I'
l
!
14 •il;ill!l,"t "II : :· [ $gr ad~~:i :i f g~,: 4
i 1.5 t hili:!! !!'.'Ill 1

16 •l~-1:::h , 11::11
I Activities· : · .~ -~ TexfEdit r.
. :\.,.?·'
Ope_n _v
.\..

"> \.,

1 //double decisi on ,p-;iir,~- •

2 e·cho "Ente r perce ntag _


. . 3 :r e1~1d grade

i · i· i·• .
l.·i
: .!
4 t'f [ $grade -gt 40
5 then
6 •e ch,01 "Pass"
7 ·Wlj 1 :SJ,,e
8 en:::h,ic:11 11 Fa1." l 11
,1 ~ 9 ·f t


:,a
i
l


0 1 1
1/ 1111 11 II

/II :ii/Ii 'I./

You might also like