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
vodka [1.7K]
2 years ago
14

What is a shell programming? Write a shell program to get the following details from the student: NAME, AGE, USN and GENDER. Out

put all the details to the terminal and also display message whether the student is eligible to vote or not
Computers and Technology
1 answer:
Leya [2.2K]2 years ago
3 0

Shell programs are computer programs designed to run on the Unix/Linux shell

The shell program where comments are used to explain each line is as follows:

#This gets input for NAME

read NAME  

#This gets input for AGE

read AGE  

#This gets input for USN

read USN

#This gets input for GENDER

read GENDER

#This prints the name

echo "Name: $NAME"

#This prints the age

echo "Age: AGE"

#This prints the usn

echo "USN: USN"

#This prints the gender

echo "GENDER: $GENDER"

#The following if condition determines, if the user is eligible to vote or not

if [ $USN -gt 50 ] then

echo "You are not eligible"

else

echo "You are eligible"

Read more about computer programs at:

brainly.com/question/13795586

You might be interested in
1.Electromagnetic waves can carry more data at higher frequencies. Why would a scientist opt to transmit data at a lower frequen
skad [1K]
1)The reason as to why scientists opt to transmit data at lower frequency  instead of electromagnetic even if it can carry more data at a higher frequencies is because using higher frequencies of electromagnetic spectrum travel shorter distances but have higher data carrying capacity.So this physical characteristic of electromagnetic waves limits the range and availability of frequencies for sending information.
2) Limitations of using electromagnetic waves in sending communication
communication is a process of transmitting and receiving information in the form of signals.high technology communication use electromagnetic waves,there are various types of electromagnetic waves which are used in communication which include radio-waves,microwaves,infrared  e.t.c some of their limitations are
i)Because there is limited number of broadcast frequencies the use of transmitters must be restricted  in some way or they will seriously interfere with each other.
ii)Through the air signals can be distorted by atmospheric conditions and signals from space are sometimes distorted by solar activity
iii)physical activities such as mountains and buildings can prevent or interfere with some transmissions
iv)Through the air signals are not private,so any tuned receiver within the range can pick up them.
3)Differences between digital and analogue signals
Analogue and digital signal are used to transmit information usually through electric signals.
An analogue signal is continuous wave denoted by sine wave and may varry in signal strength (amplitude) or frequency(time) an example is sound from human voice is analogue because waves are continuous..
A digital signal is a signal in which the original information is converted into a string of bits before being transmitted .example a must for computer processing where is described as using (0s and 1s)and therefore can not take any fractional value.
4)Advantages of using digital signals over analogue signals
one advantage of digital signals are inherently less susceptible than analog signals to interference caused by noise because with digital signal it is not necessary to evaluate precise amplitude,frequency or phase.
Another advantage based in capacity is that digital signals carry more information per second than analogue signals.
Digital signals maintain their quality over long distances better than analogue signals.
5)How we use digital and analogue signals in our everyday live
digital signal processing is the way of life of current generation 
example is mobile phones do alot of digital signal processing .they process our our speech digitally to remove background noise,echo  e.t.c
Television also do a lot of digital processing of video,audio signal to present them in a better way.
How radio telescopes are used to explore space
A radio telescope is a specialized antenna and radio receiver used to receive radio waves from astronomical radio sources in the sky in radio astronomy.It has several main parts, a dish and antenna,a receiver,a detector and an analyzer.The dish collects the radio signals from space ad focuses them on the antenna.
6)How radio waves are used on earth
Radio waves are used to transmit television and radio programs They have longer wave lengths and are reflected by the ionosphere
7) Reasons why telescopes convert radio waves (analog) to electrical(digital) signals for analysis
This is because signals can be easily stored and transmitted in digital form.The analog is continuous in time and it is necessary to convert this to a flow of digital values.
7 0
4 years ago
Which one did I buy the iPhone 13 or the Samsung S22 Ultra?
SVETLANKA909090 [29]

Answer:

iphone 13

Explanation:

6 0
2 years ago
Read 2 more answers
Discussion Topic
frozen [14]

The advantages of using spreadsheets for managing personal finances is that:

  • Spreadsheets are known to be tools that are very quick and easy and helps one to add into a workflow.
  • Spreadsheets are regarded as an efficient tools for financial documents. A person can have access to a lot of spreadsheet templates and they can be able to visualize data along with caveats.

<h3>What is the advantage of using a spreadsheet?</h3>

The Advantage is that it is one that help[s a person to be able to organizing a lot of data.

Note that The advantages of using spreadsheets for managing personal finances is that:

  • Spreadsheets are known to be tools that are very quick and easy and helps one to add into a workflow.
  • Spreadsheets are regarded as an efficient tools for financial documents. A person can have access to a lot of spreadsheet templates and they can be able to visualize data along with caveats.

Learn more about spreadsheets  from

brainly.com/question/26919847

#SPJ1

6 0
1 year ago
Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards
konstantin123 [22]

Answer:

for(i = 0 ; i < NUM_VALS; ++i)

{

   cout << courseGrades[i] << " ";

}

cout << endl;

for(i = NUM_VALS-1 ; i >=0 ; --i)

{

   cout << courseGrades[i] << " ";

}

cout << endl;

Explanation:

The first loop initializes i with 0, because we have to print the elements in order in which the appear in the array. We print each element, adding a space (" ") character at its end. After the loop ends, we add a new line using endl.

The second loop will print the values in a reverse order, so we initialize it from NUM_VALS-1, (since NUM_VALS = 4, and array indices are 0,1,2,3). We execute the loop till i >= 0, and we print the space character and new line in a similar way we executed in loop1.

4 0
3 years ago
The mac group does not replace the primary functions of eocs or other dispatch organizations. True or False
Oxana [17]

Answer:

TRUE

Explanation:

MAC - multi-agency coordination is a group of executives or administrators that have the authority to control agency funds or resources while EOCs -  Emergency operation centers are in charge of carrying out of emergency tasks that requires preparedness or disasters, they ensure that work continues even in case of emergency and disasters.

7 0
3 years ago
Other questions:
  • c++ design a class named myinteger which models integers. interesting properties of the value can be determined. include these m
    14·1 answer
  • Compare a switch to a router.
    8·2 answers
  • A restaurant has a case type that allows customer to book the dining room for events. Customers provide basic information includ
    7·1 answer
  • Renee is creating a multimedia presentation for a website that requires user interaction. Which multimedia type is Renee using?
    5·2 answers
  • What does snap do need the answer now
    10·2 answers
  • The _________ unit, within the CPU, interprets software instructions and literally tells the other hardware devices what to do,
    5·1 answer
  • Which method is used for resolving data dependency conflict by the compiler itself?
    6·1 answer
  • Pride Group of Companies is making tremendous profits in different categories of electronic goods. The group of managers have to
    12·1 answer
  • Mention the generation we have in computer​
    7·1 answer
  • What is net pay?<br> What is net pay?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!