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
QUESTION 1 (a) (i) What is linear programming problem? (ii) Define and explain the following terms: (1) objective function, (2) decision variable, (3) constraints, (4) feasi
The aims of this assignment are to: Provide experience in the use of a modern Integrated Development Environment (specifically NetBeans running on a Linux platform) for t
What is JVM-Java Virtual Machine A JVM stands for java virtual machine. This is virtual computer or an abstract computer that runs the complied java programs. In fact JVM is
Define the Syntax of FOR Loop? The universal form of this statement is for(initialization;condition;increment/decrement) { statements; }
How Can I Retrive Unicode CSV File the ADO.net VB.net
You should use the BToolkit to produce the answers to the questions below. Where applicable, please use the machine names and identifier names suggested in the question to help me
I have a linux lab class that consist of 1 lab assignment per week for 5 weeks. It is an online virtual lab and is fairly easy, I just don''t have the time.
EF308 Assignment 2 Due: 3pm, 26 April 2012 Introduction This assignment is loosely based on Cheung et al. (2005) and Molodtsova and Papell (2009) and examines the out-of- sample pr
Given a file named maze1.txt whose contents is 1 0 2 2 1 2 3 0 3 2 2 1 2 0 2 2 3 0 1 1 3 1 0 0 2 0 3 0 0 1 2 0 3 2 2 0 1 2 3 2 1 0 0 1 1 0 0 0 your program when run as a.out
Implement the "Nuclear Reactor" example using the following: An ISR triggered by a button press A task to update the temperatures A semaphore to communicate between the ISR and
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