Determine the value of the two items multiplied

Assignment Help Electrical Engineering
Reference no: EM13252706

1. Write a simple shell script called mathmagic that takes two arguments in at call time and returns to the stdout the value of the two items entered, the value of the two items added together, the value of the two items subtracted (first - second), the value of the two items multiplied.

2. Augment the first shell script of problem 1, so that it checks if the 1st number is smaller than the second number, do not do the subtract, but instead output a message indicating the values will result in a negative value.

3. Augment the simple shell script of problem 1 so that tests the number of values inputted and returns a message if the number of arguments is more than 2, but still performs the operations (i.e. add all, subtract all, multiply all).

4. Write a c shell script program called TodaysDate that takes three arguments - a month string such as OCT, a day number such as 07, and a year number such as 2000 - and returns the number of days from JAN 1 1900 to the date.

> TodaysDate oct 20 1901

The program would display the following since the arguments are oct 20 1901

> The programs name is TodaysDate

> The number of days since JAN 1 1900 to OCT 20 1901 is: 660

Reference no: EM13252706

Questions Cloud

Find the temperature of the gases at the nozzle exit plane : A liquid fueled rocket is red on a test stand. The rocket nozzle has an exit diameter of 30 cm, find the temperature of the gases at the nozzle exit plane
Determine the power delivered to the motor : Two batteries with 1.8 voltage and 10.5 Ohm internal resistance each are connected in series. This battery pack is used to boot a small electric motor with 275 Ohm resistance. Find the power delivered to the motor.
Kinesiologists can make a difference pertaining to the issue : After identifying the issue, discuss possible ways that kinesiologists can make a difference pertaining to the issue.
Compute the mass percent composition of strontium : A 2.45-g sample of strontium completely reacts with oxygen to form 2.89 g of strontium oxide. Use this data to calculate the mass percent composition of strontium in strontium oxide.
Determine the value of the two items multiplied : Write a simple shell script called mathmagic that takes two arguments in at call time and returns to the stdout the value of the two items entered, the value of the two items added together, the value of the two items subtracted
Discuss three advantages of cooperating across networks : Describe the ways in which successful entrepreneurs make use of networks to help them move their ideas forward. Discuss the risks associated with sharing their ideas and how they can protect them.
Find the linear velocity and tangential acceleration : A 45.3-cm diameter disk rotates with a constant angular acceleration of 2.20 rad/s2. It starts from rest at t = 0, Find the linear velocity and tangential acceleration of P at t = 2.30 s
Wireless device such as smart phone : Have you ever used a mobile, wireless device such as smart phone? If so, what do you like or dislike about it? In what ways could your use of that device be made better?
Find what would be the terminal voltage of the battery : When disconnected and fully charged, the voltage across the battery terminals is measured to be 13.8 V. When connected to a load that dissipates 18 W of power, the terminal voltage of the battery decreases to 12 V.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

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!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd