21
2121212121222 erhfjefbvervjgretg
Answer:
The algorithm is as follows;
1. Start
2. Input TeddyBears
3. Input Hours
4. WagebyTeddy = 2 * TeddyBears
5. WagebyHour = 5 * Hours
6. If WagebyHour > WagebyTeddy then
6.1 Print WagebyHour
7. Else
7.1. Print WagebyTeddy
8. Stop
Explanation:
The following variables are used;
TeddyBears -> Number of teddy bears made
Hours -> Number of Hours worked
WagebyTeddy -> Wages for the number of teddy bears made
WagebyHour -> Wages for the number of hours worked
The algorithm starts by accepting input for the number of teddy bears and hours worked from the user on line 2 and line 3
The wages for the number of teddy bears made is calculated on line 4
The wages for the number of hours worked is calculated on line 5
Line 6 checks if wages for the number of hours is greated than wages for the number of bears made;
If yes, the calculated wages by hour is displayed
Otherwise
the calculated wages by teddy bears made is displayed
Answer:
isum = 0
for i in range(99,0,-1):
isum = isum + i
print(isum)
Explanation:
This line initializes isum to 0
isum = 0
The following iteration starts from 99 and ends at 1
for i in range(99,0,-1):
This line adds the series
isum = isum + i
This line prints the sum of the series
print(isum)
Answer:
<em>Written in C++</em>
#include<iostream>
using namespace std;
int firstLast2(int arr[], int n);
int main()
{
int n;
cout<<"Number of Elements: ";
cin>>n;
int myarray[n];
for(int i = 0; i<n;i++)
{
cin>>myarray[i];
}
firstLast2(myarray, n);
return 0;
}
int firstLast2(int arr[], int n){
if(arr[0] == 2 || arr[n - 1] == 2)
{
cout<<"True";
}
else
{
cout<<"False";
}
}
Explanation:
<em>I've added the full source code as an attachment where I used comments to explain difficult lines</em>
Answer:
Systems analysis phase.
Explanation:
In a systems development life cycle (SDLC) model, the purpose of the systems analysis phase is to build a logical model of the new system.
In the systems analysis phase, the system developer examines or analyzes the information or data about the requirements of an end-user, which are then implemented to achieve the organizational set goals and objectives.
Hence, systems analysis refers to the process of gathering data or factual informations, understanding processes, problem identification and suggestions of probable solutions for an effective and efficient functioning of the system.