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

  Give the impulse responses of lti systems

Impulse Responses of LTI systems can be physically found by inputting \(x[n] = \delta[n]\)to the system and measuring the output. Assume that during the process, we inadvertently input\(x[n] = \delta[n] + \delta[n-1]\)

  What if the receiver is listening to a dsb or ssb signal

A linear CW product detector local oscillator has a 500 Hz error while detecting an AM signal. What will the receiver's output sound like What if the receiver is listening to a DSB or SSB signal

  What is initial value if the overhead values were considered

write an 8051 program that would generate a 200khz, 50% duty cycle, square wave at P1.0.Use Timer 0 for the delay. Ignore the overheads cycles due to the instructions in the loop. Assume 12 MHz clock. All data must be hex.

  Vital information about system analysis and design

Important information about System Analysis and Design, Elmwood College Situation: The school is considering a new system that will speed up the registration process.

  Determine v21-v13-v34 and v24

Several of the voltages associated with certain circuit are given by V12 = 9 phase angle 30 degrees V, V32 = 3 angle 130 degrees V, and V14 - 2 angle 10 degrees V. Determine V21, V13,, V34 and V24

  Calculate the inverse fourier transform

Compute the inverse Fourier transform for X(ω) = cos 4ω. 5. A signal with the highest frequency component at 10 kHz is to be sampled. To reconstruct the signal, the sampling must be done at a minimum frequency of?

  Find steady-state error to the unit ramp input

Find steady-state error to the unit ramp input. If it is greater than 0.1, design a lag compensator that helps to achieve the steady-state error (to the unit ramp input) no more than 0.1. (Hint: Use Matlab to nd the dominant closed-loop poles.)

  What should be the value of the firing angle

A 220 V, 1500 rpm, 11.6 A (armature current) separately excited motor is controlled by a single phase, full wave SCR converter. The armature resistance of the motor is 2 ohm. The ac source voltage is 230 V (rms) 60 Hz.

  What are the 2nd- and 3rd-order harmonics

A recording trace r(t) is definedas r(t) = s(t) + n(t), where s(t) =10sin(20?t) (i.e., a 10 Hz sine wave, given f= 2f) is the signal and n(t) = sin(120t) (i.e., the 60 Hz electromagnetic noise) the noise.

  Calculate the wavelength of the emitted photon

In a scanning electron microscope, an electron is accelerated by a static electrode biased with a 12 kV voltage relative to the electron source. Upon bombarding the sample the electron “kick out†photons with specific wavelength.

  Define what is transmission velocity and how it is different

what is transmission velocity and how it is different from drit velocity. Drift velocity the actual (physical) velocity of electrons along the wire.

  What is the temperature inside the room

during winter you use an electric heater rated 1000W . heat transfer occurs through four walls each width of 5m and hight 3m layers of walls are concrete , paint, gypsum. temperature outside is 5 degrees celsius what is the temperature inside the ..

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