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!
Enter number of hours and find days, months and years.
echo -e "Enter Hours: \c"
read hr
echo "hour=$hr"
day=0
mon=0
yr=0
yr=`echo "$hr/365" | bc `
tmp=`echo "$hr%365" | bc`
mon=`echo "$tmp/30" |bc`
day=`echo "$tmp%30" | bc`
echo -e "$hr hours = $yr years and $mon months and $day days"
Output
sh cnthour.sh
Enter Hours: 450
hour=450
450 hours = 1 years and 2 months and 25 days
Enter Hours: 370
hour=370
370 hours = 1 years and 0 months and 5 days
Write a program that takes names of 5 students in 2D Character Array and their GPAs in 1D array. Arrange the names in alphabetical order and display on screen along with GPA.
Extend the AirRaid game, so that the planes drop a bomb on the gun as they go over it. The gun has to move out of the way otherwise it will be destroyed if hit. Provide three lives
Procedure-oriented programming (POP):- This is a top-down programming approach, where the problem is viewed as a sequence of tasks to be done such as calculating, printing etc. A n
For this assignment you will need to design and construct a basic math program which targets elementary school children. Your program must adhere to the following steps and require
Write a function named prob2.m which creates and returns an N×N identity matrix. An identity matrix is a square matrix with values of one on the main diagonal and zeros in all off-
The creation of the menu will involve writing procedural code, using decision logic, writing a loop, and using the case statement. Although it is not required for grading, it is r
1-Create ir3.py based on ir2.py 2-Repeatedly prompt the user for a query (if they enter "q", then quit) 3-Find the terms in the query, and calculate the appropriate weight fo
Redundant sequence identification: Given a set of k DNA sequences, S = { s 1, s 2, ... , s k } give an optimal algorithm to identify all sequences that are completely contained
Write a Prolog predicate remove_nth(N,L1,L2) that is true if list L2 is just list L1 with its Nth element removed. If L1 does not have an Nth element then the predicate should fail
Write a procedure named Str_concat that concatenates a source string to the end of a target string. Sufficient space must exist in the target string to accommodate the new characte
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