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

  Provide the complete code-word including the checksum

The 24-bit data field of a packet is given by 0xBC603F. The packet contains a CRC with the generator polynomial given by X 3+X+1 a) Find the CRC checksum. Provide the complete code-word including the checksum in hex.

  Find the magnitude and the phase response of the filter

A linear-phase FIR filter should be designed with the ideal magnitude response shown in Figure 1 which represents an narrow band-pass filter. The lower cutoff frequency, fL , is 2,000 Hz, and higher cutoff frequency, fH , is 3,600 Hz.

  Step-down transformer

Step-down transformer

  Determine the following by sloving laplace equations

determine the following by sloving laplace equations: a) the potential and electric field distribution in the dilectric slab. b) the potential and electric feild distrivution in the air space between the dilectric slab and the upper plate and c) t..

  Determine the transfer function for a first order filter

Determine the transfer function for a first order low pass filter with a cutoff frequency of 1000 radians per second and passband gain of 1 using Chebyshev type with 1-dB ripples on the passband.

  Which is setting subconductors a and c as a bundle

Each subconductor's radius is 10 cm. There are two configurations, the first one is setting subconductors A and B as a bundle, and C and D as another bundle; the second is setting subconductors A and C as a bundle, and B and D as another bundle.

  How much pressure in atmosphere must submersible be designed

Assuming that the maximum depth of Kraken Mare is less than 400 meters, how much pressure in atmospheres must the submersible be designed to withstand Assumer the surface pressure on Titan is 17 kilopascals, the surface temperature is 94 kelvin

  Determine the minimum required sampling rate

(a) Determine the minimum required sampling rate fsamp(min). Hence, use twice this value. (b) Draw a block diagram of the system indicating the requirements of each block. (c) Design and write the difference equations of the digital filters needed.

  The gauss-seidel method

Problem Statement: Solve the load flow problem below in Matlab, or similar program, using the Gauss-Seidel Method.

  What are the two components of the frequency response

find an s-domain transfer function that has a specified frequency response and answer and discuss the following questions: 1. What determines the "order" of a transfer function 2. Given a transfer function, how is its frequency response calculated

  Find the magnitude of the net displaced charge

HCI is a polar molecule, with a dipole moment of 3.44 X 10^-30 [C.m] per molecule. If it is known that the molecular bond distance is 0.136[nm], find the magnitude of the net displaced charge in each molecule.

  Find the min permissible sag for a span of 225 m

find the MIN permissible SAG for a span of 225 m using a copper conductor with 1.2 cm diameter and allowing a MAX conductor tension of 2200 kg/cm^2 . The horizontal wind pressure is 6 g/cm^2 and specific gravity of copper is 8.9

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