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!
Convert the given amount into words.
echo -e "Enter the amount: \c"
read amt
temp=`grep $amt rupees.txt | wc -l`
if test $temp -gt 0
then
grep -w $amt rupees.txt | cut -d " " -f2
else
rw=""
len=`echo "$amt" | wc -c`
i=1
while test $i -lt $len
do
temp=`echo "$amt" | cut -c$i`
if test $i -eq 1
if test $amt -gt 10
temp=`grep "^$temp" rupees.txt | cut -d " " -f2 | tail -n1`
rw=`echo "$rw $temp"`
temp=`grep "^$temp" rupees.txt | cut -d " " -f2 | head -n1`
fi
i=`expr $i + 1`
done
echo $rw
Output
Enter the amount: 66
Sixty Six
Enter the amount: 15
Fifteen
Define the If - else statement - computer programming? The If - else statement The universal form of if - else statement is if(expression)
In this portion of the lab you will analyze a problem and create a Raptor program to solve it. Make sure you use a class in Raptor and in Python to solve the problem. Read the fo
1. Write out a detailed plan for a program to find the largest value in an array that is smaller than a ceiling C. For example, suppose the array has the values {4, 14, 11, 100, 6}
You need to create a simple application for the Note Plus book Store. The interface for the application is shown below: REQUIRED: 1) Create all necessary contro
i have a=[0 1 1 2 2 3 6 7 0 4 ] i want to delent elemet but keep its position i.e a(4)=[] it gives me 0 1 1 2 3 6 7 0 4 but i need 0 1 1 [] 2 3 6 7 0 4
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
A manager at the local Walmart needs to determine how many workers to hire to cover a 24-hour period. Each worker must work 9 consecutive hours but may only start work at the begin
Write your own version of the strcmp function string_compare. Supply a main program that will test each of the 3 differing outcomes. int string_compare(char *s, char *t); retu
Linear Programming Consider the following optimization problem: min x s.t. x ≥ max{a1, a2, . . . , an} Rewrite this problem as a Linear Programming Problem. What is the
Carnivorous Carla only eats pizza if it has at least three of the following ingredients: ham, pepperoni, salami, italian sausage, bacon. You have the function contains() to check w
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: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd