Answer:
Pseudo code:
1. declare a variable "hour_worked".
1.1 read the hours worked in a day by user and assign it to "hour_worked".
2.Calculate total work in a five-day week as "Week_work=5*hour_worked".
3.Calculate total work in a 252-day year as "year_work=252*hour_worked".
4. print the value of "Week_work" and "year_work".
5.End the program.
// here is implementation in c++.
#include <bits/stdc++.h>
using namespace std;
int main()
{
float hour_worked;
cout<<"enter hours worked in a day: ";
cin>>hour_worked;
cout<<"5-day week work is: "<<5*hour_worked<<endl;
cout<<"252-day year work is: "<<252*hour_worked<<endl;
return 0;
}
Output:
enter hours worked in a day: 5.5
5-day week work is: 27.5
252-day year work is: 1386
Flowchart:
Answer:
1. When calculating the division of each number in some range of floating type number.
2. One cannot use real numbers for exact comparison. Two real numbers are rarely equal. Real numbers are have representational errors.
Explanation:
1. In structured programming, we make use of a floating-point number with a fractional part for a loop control variable. a given scenario is when we just want to calculate the division of each number in some range of floating type number. However, the downsides to using a floating-point number with a fractional part for a loop control variable are:
- They can cause 'off-by-one' failure
- A floating point number cannot represent all simple fractions exactly
2. The pitfalls of using real numbers for the index variable in a for loop:
- Two real numbers are hardly equal
- One cannot use real numbers for exact comparison
- The existence of representational errors
<span> Rise of Robots from 1994 was the first video game to use motion capture I think</span>
Answer:
Electromechanical devices are ones which have both electrical and mechanical processes. Strictly speaking, a manually operated switch is an electromechanical component due to the mechanical movement causing an electrical output.
Answer: Network layer
Explanation: Network layer is the OSI model's layer which is at the third level. The layer supports the functioning of the transferring of the data packet by establishing the particular route for them known as the logical paths.
The network layer also protects the router which examines every header files in the packet that includes the address of the destination and sources ports.