Answer:
Written in Python
name = input("Name: ")
wageHours = int(input("Hours: "))
regPay = float(input("Wages: "))
if wageHours >= 60:
->total = (wageHours - 60) * 2 * regPay + 20 * 1.5 * regPay + regPay * 40
else:
->total = wageHours * regPay
print(name)
print(wageHours)
print(regPay)
print(total)
Explanation:
The program is self-explanatory.
However,
On line 4, the program checks if wageHours is greater than 60.
If yes, the corresponding wage is calculated.
On line 6, if workHours is not up to 60, the total wages is calculated by multiplying workHours by regPay, since there's no provision for how to calculate total wages for hours less than 60
The required details is printed afterwards
Note that -> represents indentation
Answer:
periodical databases
Explanation:
Among the various databases you can now access in a library, the periodical databases contains the text and other information about articles published in magazines, journal and newspapers.
This database allows you for example to easily search for all articles written about a specific event or person, and it will return you the list of articles you can then read from a single spot, no matter where or when the article was written.
Answer:
Bill Gates, Paul Allen
Explanation:
The two founders of the mega-tech giant are Bill Gates, and Paul Allen. Hope this helps!
Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
int main()//main method
{
int r=26,x,y;//defining integer variable
char c;//defining a character variable
for(x= 1; y<= r; x++)//using for loop for count value
{
for(y= 1; y<= x; y++)//using for loop to convert value in triangle
{
c=(char)(y+64);//convert value into character
cout << c;//print character value
}
cout << "\n";//use print method for line break
}
return 0;
}
Output:
Please find the attachment file.
Explanation:
In this code, three integer variable "x,y, and r", and one character variable "c" is declared, that is used in the nested for loop, in the first for loop it counts the character value and in the next for loop, it converts the value into a triangle and uses the char variable to print its character value.
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
double num;
// read discriminant
cin>>num;
// calculate square of the input
double result=num*num;
// print the square number
cout<<result<<endl;
return 0;
}
Explanation:
Declare a variable "num".Read the value of "num" from keybord.Then calculate square of the input number.Print the square of input number.
Output:
5
25