1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ulleksa [173]
3 years ago
9

Write a script to check command arguments (3 arguments maximum). Display the argument one by one. If there is no argument provid

ed, remind users about the mistake. If there is an easy way to use a loop to get all arguments, use it?a) Display the source code in an editor b) Execute your script in the terminal, and display the command and the result
Computers and Technology
1 answer:
serious [3.7K]3 years ago
7 0

Answer:-args (

if:args=true

-cont

if:args=false

-cont investigating

if:args=irrelevance

-loop restate args

)

compile exec

Explanation:

You might be interested in
What do you believe are the advantages of a clean install over an upgrade? What additional choices do you think are important to
Allushta [10]

Answer:

Upgrade refers to upgrading to a new version from old version

Clean Install: Removing old version completely and install from scratch

Explanation:

Let you want to upgrade windows server 2008 to windows server 2016.There are 2 options

1. you can directly migrate windows server 2008 to 2016 by keeping everything as it is , so all the data and applications on the system remains as it is and only OS will upgrade.

2. uninstall everything and clean install windows server 2016.Here all previous applications and data are erased

In the above case if all applications on the system are compatible with windows server 2016 from 2008 we can go for upgrade directly otherwise it is better to go with clean install as we need different version of application which is compatible with windows server 2016

3 0
3 years ago
Martha pays $3,335 every month for her house payment. She has made 86 payments up till now. How much has Martha paid for her hou
kotegsom [21]

Answer:

286810

Explanation:

86*3335=286810

8 0
3 years ago
Which of the following tasks requires you to use the Tabs option?
LenaWriter [7]
In Microsoft Word, the TAB button shifts the text to the right. For example, starting a new paragraph, the TAB button indents the beginning.<span />
3 0
3 years ago
In addition to using the icons to adjust page margins, a user can also use _____.
Elenna [48]

The shift button, space,or the tab.

4 0
4 years ago
Read 2 more answers
Write a program with total change amount in pennies as an integer input, and output the change using the fewest coins, one coin
Serjik [45]

Answer:

Here is the Python program:

def FewestCoinVals():  # function to output change using fewest coins

 total_change = int(input('Enter change amount in pennies: '))

#prompts user to enter total change amount in pennies

 if total_change <= 0:  # if value of total_change is less or equal to 0

   print('no change')  # prints no change

 else:  # if value of total_change is greater than 0

   dollars = total_change // 100  

#calculate value of dollars by dividing total_change by 100

   total_change %= 100   #take mod of value of total_change with 100

#calculate value of quarters by dividing total_change by 100

   quarters = total_change // 25

   total_change %= 25  #take mod of value of total_change with 25

#calculate value of dimes by dividing total_change by 100

   dimes = total_change // 10  

   total_change %= 10  #take mod of value of total_change with 10

#calculate value of nickels by dividing total_change by 100

   nickels = total_change // 5

   total_change %= 5  #take mod of value of total_change with 5

   pennies = total_change  

#value of pennies is equal to value of total_change

#the if elif statement checks for the singular and plural coin names

   if dollars >1:

       print('dollars: ',dollars)

   elif dollars ==1:

       print('dollar: ',dollars)

   if quarters > 1:

       print('quarters: ',quarters)

   elif quarters ==1:

       print('quarter: ',quarters)

   if dimes >1:

       print('dimes: ',dimes)

   elif dimes ==1:

       print('dime: ',dimes)

   if nickels >1:

       print('nickels: ',nickels)

   elif nickels ==1:

       print('nickel: ',nickels)

   if pennies >1:

       print('pennies: ',pennies)

   elif pennies ==1:

       print('penny: ',pennies)

#calls the FewestCoinVals() function        

FewestCoinVals()

                     

Explanation:

The program prompts the user to enter change amount in pennies and has int() function to convert input value to integer.  If the value entered is less than or equal to 0 it displays message "no change", otherwise it converts the value using fewest coins. The formulas for converting to each type is given in the code. It uses if and elif statements to check if the final value of total_change has singular or plural coin names such as penny or pennies. The program along with output is attached as the screen shot.

3 0
3 years ago
Other questions:
  • Which person would be the best fit for a career in the information technology field?
    14·1 answer
  • Could someone tell me what this means in python? Thanks
    6·1 answer
  • The Cursor is blinking in a white area on the Screen. This area where text will appear in the ____.
    10·2 answers
  • Which device uses radio waves? ceiling fan microwave oven air conditioner x-ray machine?
    7·1 answer
  • Climax Medical Technology, a fast-growing global research firm, has accumulated so much client information that conventional dat
    15·1 answer
  • A network administrator was testing an IPS device by releasing multiple packets into the network. The administrator examined the
    13·2 answers
  • How are computers used in education and entertainment? List them.​
    10·1 answer
  • I need help with this answer, I will give brainliest as long as there is actually an answer!
    11·1 answer
  • Which of the following statements about security in the network is true?
    15·1 answer
  • In which situation is coauthoring of presentations primarily utilized?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!