Answer:
Written in Python
import math
#1. Temperature Conversion
degreeF = float(input("Degree Fahrenheit: "))
degreeC = (degreeF - 32) * 5/9
print("Degree Celsius: "+str(round(degreeC,2)))
#2. Area of Trapezoid
Base1 = float(input("Base 1: "))
Base2 = float(input("Base 2: "))
Height = float(input("Height: "))
Area = 0.5 * (Base1 + Base2) * Height
print("Area: "+str(round(Area,2)))
#3. Addition of Two Numbers
Num1 = float(input("Number 1: "))
Num2 = float(input("Number 2: "))
print("Result: "+str(Num1 + Num2))
Explanation:
This line imports the math library
import math
Program 1 starts here
#1. Temperature Conversion
This line prompts users for input in degree Fahrenheit
degreeF = float(input("Degree Fahrenheit: "))
This line converts to degrees Celsius
degreeC = (degreeF - 32) * 5/9
This line prints the converted degree
print("Degree Celsius: "+str(round(degreeC,2)))
Program 2 starts here
#2. Area of Trapezoid
The next three lines prompts user for necessary inputs
Base1 = float(input("Base 1: "))
Base2 = float(input("Base 2: "))
Height = float(input("Height: "))
This line calculates the area
Area = 0.5 * (Base1 + Base2) * Height
This line prints the area
print("Area: "+str(round(Area,2)))
The third program begins here. I've decided to write a program that sums two numbers
#3. Addition of Two Numbers
The next two lines prompt user for inputs
Num1 = float(input("Number 1: "))
Num2 = float(input("Number 2: "))
This line calculates and prints the sum
print("Result: "+str(Num1 + Num2))
Mrs Jones had p hens then she decided to buy p more hens. how many hens does she have in all?
Answer:
2p
Explanation:
if she had p, then she got p again, she got two p amounts. p+p = p*2 = 2p
Xcode, Swift, and Appy Pie are all tools for doing what?
writing code in C#
creating smartphone apps
creating apps to run on a desktop or laptop
writing code in Java
Answer:
creating smartphone apps
Explanation:
Xcode, Swift, and Appy Pie are all tools for creating iOS applications.
These tools are used for app development in the iOS platform which is a rival to the Android platform.
They are used to build the apps from scratch, develop and test them,
Answer:
smart phone apps
Explanation:
Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). Display the triangle by writing lines of asterisks. The first line will have one asterisk, the next two, and so on, with each line having one more asterisk than the previous line, up to the number entered by the user. On the next line write one fewer asterisk and continue by decreasing the number of asterisks by 1 for each successive line until only one asterisk is displayed. (Hint: Use nested for loops; the outside loop controls the number of lines to write, and the inside loop controls the number of asterisks to display on a line.) For example, if the user enters 3, the output would be:_______.a. *b. **c. ***d. **e. *
Answer:
Implemented using Python
n = int(input("Sides: "))
if(n>=1 and n <=50):
for i in range(1,n+1):
for j in range(1,i+1):
print('*',end='')
print("")
for i in range(n,0,-1):
for j in range(i,1,-1):
print('*',end='')
print("")
else:
print("Range must be within 1 and 50")
Explanation:
This line prompts user for number of sides
n = int(input("Sides: "))
The line validates user input for 1 to 50
if(n>=1 and n <=50):
The following iteration uses nested loop to print * in ascending order
for i in range(1,n+1):
for j in range(1,i+1):
print('*',end='')
print("")
The following iteration uses nested loop to print * in descending order
for i in range(n,0,-1):
for j in range(i,1,-1):
print('*',end='')
print("")
The following is executed if user input is outside 1 and 50
else:
print("Range must be within 1 and 50")
1) An employer has decided to award a weekly pay raise to all employees by taking the square root of the difference between his weight and the employee’s weight. For instance, an employee who weighs 16 pounds less than the employer will get a $4 per week raise. The raise should be in whole dollars (an int). Write a class file that prompts the user for the employee and the employer weight. Please output the correct raise amount making sure that all inputs are included in the output statement.
Answer:
Written in C++
#include <iostream>
#include<cmath>
using namespace std;
int main(){
int weight1, weight2, diff;
cout<<"Employees Weight: ";
cin>>weight1;
cout<<"Employers Weight: ";
cin>>weight2;
diff = abs(weight1 - weight2);
float pay = round(sqrt(diff));
cout<<pay;
return 0;
}
Explanation:
I've added the source file as an attachment where I used comments as explanation
1. Discuss data processing concepts and the representation of data in the computer
2. Explain how they work together to process data
Answer:
gkvjbdsvjnmfbhui jgbfdshjcxvabgsuciusgBFIULWGSfuRyt vqwyrgfgweVGYGTV7BWUIEGDWYUGDCYg
Explanation:
THIS IS PYTHON QUESTION
d = math.sqrt(math.pow(player.xcor() - goal.xcor(), 2) + math.pow(player.ycor()-goal.ycor(), 2))
here is the error message that I am getting when I run this using the math module in python: TypeError: type object argument after * must be an iterable, not int
Answer:
ok
Explanation:yes
When viewing the Mail Merge Recipients dialog box, what kinds of actions can you perform? Check all that apply. find recipient filter recipients print recipients sort column headings select/deselect recipients
Answer:
a,b,d,e on edg 2020
Explanation:
Answer:
Everything is correct except option 3/letter C.
Explanation:
A, B, D, and E
Explain the following terms as used in word processin
(a)
Drop cap
(b) A superscript
An indent
Answer:
A drop cap (dropped capital) is a large capital letter used as a decorative element at the beginning of a paragraph or section. The size of a drop cap is usually two or more lines.
a superscript is a character(s) half the height of a standard character and printed higher than the rest of the text.
In word processing, the word indent is used to describe the distance, or number of blank spaces used to separate a paragraph from the left or right margins.