Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TASK - 0 1 : BASH Scripting - 1 1 0 Write a program using While Loop that will accept 7 integers from user within

TASK-01: BASH Scripting -110
Write a program using While Loop that will accept 7 integers from user
within the range of 7 to 70 and will calculate Sum of all the inputted
numbers. If the user enters any other value within 100(inclusive) that
doesnt fall into the range of 7-70(inclusive), an appropriate error
message should be shown and the program should ask for an input
again. However, if the inputted value exceeds 100, the program should
terminate without asking for any other input from the user.
Attach the clear screenshots showing the complete code for each
of the programs. Also, summary of each the key steps are also required.
TASK-02: BASH Scripting -210
Write a program to create a dataset of information containing name and
state of the applicants of Raffle Draw program. The records will all be
saved in a file that will have a name in line with your student ID. For
example S298900.txt. A maximum number of 20 applicant's information
can be recorded and minimum is 1. If the entered number crosses either
side of the limit, an error message should be displayed asking to re-enter
the name. Once a valid name is given in the input, the State information
should be collected. Here all states are accepted excluding Canberra. If
Canberra is given, again a message has to be displayed asking for a re-
entry. So once both name and state are given as per the rule, the
information should be recorded in the text file and the program should
move on to the next applicant. The next applicant's information should
be recorded in the same file after the previous applicant.
Check the Screenshot below to understand the flow:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2. What is the business value of security and control?

Answered: 1 week ago