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

  What is minimum kva rating of each transformer in bank

The secondary's of a step-down, three-phase transformer bank are delta connected and supply a three-phase 240v moter that draws 12A through each line. What is the current in each transformer winding If the turn ratio of the transformers

  Find real-reactive and apparent power for each phase

A residential four-wire system supplies power at 220V rms to the following single-phase appliances: On the first phase, there are ten 75-W bulbs. On the second phase, there is a 750-W vacuum cleaner with a power factor of 0.87.

  Describe a system project that might have three iterations

Discuss these possible reasons, indicating which are the most important: The field is so young; such different needs; there are so many types of systems; and people with widely different backgrounds are developing.

  Define murray loop test and locating faults

Murray Loop Test and Locating Faults, Q.1 (a) Using the Murray Loop test, determine the distance to an earth fault on one of the cores of a uniform three-core underground cable. Ra = 2 ohms, Rb = 1 ohm

  Find the magnitude of electric field at all points in space

Find the magnitude of the electric field at all points in space both inside and outside the slab, in terms of x, the distance measured from the central plane of the slab. What is the field for x = 1.00 cm What is the field for x = 8.00 cm

  Define a dsss-cdma signal

A DSSS-CDMA signal has a chip sequence that is 10,000 chips in length. The sequence repeats every millisecond. What is the chip rate?

  Sove for phasor current and phasor voltages across component

Build a series circuit consisting of a 130 V 60 Hz ac source, a 5 ohm resistor, a 53.05 mH inductor, and a 0.33156 mF capacitor. a) Draw the ac circuit diagram b) Sove for the phasor current and phasor voltages across each component.

  Develop the pseudo-code

Develop the pseudo-code below for a program that will retrieve 2 bytes (NUM1 and NUM2) from memory, determine which is closest to the numeric value 50, and indicate the result by setting a variable named "CLOSEST" to 1 (if 1st byte is closest) or ..

  Determine the total load impedance per phase

A three-phase, 60Hz, wye-connected synchronous generator has balanced line-to-line voltages of 480V at its terminals. The generator is supplying power to two balanced and delta connected, three-phase loads. the first load is made up

  Calculate the per unit resistance of this transformer

Efficiency in a power transformer is 98.6% when loaded such that its core losses equal the copper losses. Calculate the per unit resistance of this transformer.

  Describe what is the mass of licl in a unit cell

Lithium chloride crystallizes in a face-centered cubic structure. The unit cell length is 5.14 10-8 cm. The chloride ions are touching each other along the face diagonal of the unit cell. The lithium ions fit into the holes between the chloride io..

  What is the dynamic range for an 8-bit adc

1) What is the dynamic range for an 8-bit ADC 2) A device that responds to a small current or voltage change by activating a mechanical switch allowing a larger amount of current flow is a: a) transistor. b) transducer. c) solenoid. d) relay.

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