Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
W.A.S.S to check whether a given number is Armstrong number or not.
Program
# W.A.S.S to check that whether a given number is prime or not.
echo "Enter the Number:"
read num
tnum=$num
temp=0
sum=0
while test $num -gt 0 #while loop
do
temp=`expr $num % 10` #extract the digit by digit
temp=`echo $temp^3 | bc` #make the cube of digit using bc - An arbitrary
#precision calculator
sum=`expr $sum + $temp` #calculate sum of cube of all the digit
num=`expr $num / 10`
done
if test $sum -eq $tnum #if the sum of cube of all the digit of given no is same as no
then
echo "Entered no $tnum is Armstrong number"
else
echo "Entered no $tnum is Not an armstrong number"
fi
Output
Enter the Number:
151
Entered no 151 is Not an armstrong number
153
Entered no 153 is Armstrong number
Write a detailed description on how you would go about planning information system for an organisation
i have a database having field name title and comm. I want to search by name and get the all data remaining title and comm(comm is integer)
Design an application that opens and analyses word files. Requirements: Create an application that analyses text documents. It should open a text file, read each word into an ap
VARIATION OF PARAMETERS - HIGHER ORDER DIFFERENTIAL EQUATIONS We now require taking a look at the second method of finding a particular solution to a differential equation
An apartment complex has several apartments to rent. The apartments are all similar, and all rent for $750 per month. Currently, all units are occupied. The management, being in bu
Input to be in the form of a string of less than 256 characters. Assume that this character string (record) can only be of the form: Last Name, First Name, Box number, City, St
Design and implement a stringed musical instrument class using the following guidelines: a. Data fields for your instrument should include number of strings, an array of stri
Flatten the tree Consider the following XML input, which groups people into two categories-salaried and hourly: Warren Rosenbaum 37 5.75
can you do a matla assiengment
Determine the solution to the following differential equation. x 2 y′′ + 3xy′ + 4 y = 0 Solution Find the roots to (3) first as generally. r(r -1) + 3r + 4 = 0 r
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd