Write a script that reads in three arguments on the command line and finds their average to two decimal places. Name it

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a script that reads in three arguments on the command line and finds their average to two decimal places. Name it

Post by answerhappygod »

Write A Script That Reads In Three Arguments On The Command Line And Finds Their Average To Two Decimal Places Name It 1
Write A Script That Reads In Three Arguments On The Command Line And Finds Their Average To Two Decimal Places Name It 1 (63.38 KiB) Viewed 21 times
Write a script that reads in three arguments on the command line and finds their average to two decimal places. Name it avg3. I will run it like: avg3 359 and it will print out: Average of 3, 5, and 9 is 5.67 If I enter something like: * avg3 35 * avg3 3 4 5 6 * avg3 3 one 5 it needs to print an error telling me how to use it.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply