Answer:
The program in Python is as follows:
#1
for i in range(10):
print("MrRoyal",end=" ")
print()
#2
for i in range(1,50,2):
print(i,end=" ")
print()
#3
for i in range(0,101,5):
print(i,end=" ")
print()
#4
i = 1
while i <=10:
print(i,end =" ")
i+=1
#5
myfile = open("People.txt", "r")
eachLine = myfile.readline()
while eachLine:
print(eachLine)
eachLine = myfile.readline()
myfile.close()
Explanation:
The program in Python is as follows:
Program #1
This iterates from 1 to 10
for i in range(10):
This prints the name for each iteration [modify to your name]
print("MrRoyal",end=" ")
This prints a new line
print()
Program #2
This iterates from 1 to 49 with an increment of 2
for i in range(1,50,2):
This prints the odd numbers in the above range
print(i,end=" ")
This prints a new line
print()
Program #3
This iterates from 0 to 100 with a step of 5
for i in range(0,101,5):
This prints every 5th number
print(i,end=" ")
Print a new line
print()
Program #4
This initializes the number to 1
i = 1
This opens the file in an append mode
f = open("myfile.txt", "a")
This loop is repeated from 1 to 10
while i <=10:
This writes each number to the file
f.write(str(i))
Increment the number by 1
i+=1
Close the file
f.close()
Program #5
This opens the file in a read mode
myfile = open("People.txt", "r")
This reads each line
eachLine = myfile.readline()
This loop is repeated for every line
while eachLine:
Print the content on the line
print(eachLine)
Read another line
eachLine = myfile.readline()
Close the file
myfile.close()
State two pieces of information that need to be labeled on the idea development sketch. 1 .________________________________________________. 2 .___________________________________________.
Answer:
Design drawings should show details on layout, measurements, plan, cross-sectional and vertical profiles. This information is prepared as scale drawings of the works to be constructed. they are legible they include all information from previous revisions and updates.
Explanation:
Your company resides in an area with rapid growth in both the corporate and residential areas surrounding your office. As such, your company has been experiencing several brownouts due to power grid problems (too much demand and not enough electricity). Fearing that your computers (especially the servers) could be damaged by these brownouts, your manager has asked you to find a solution to this problem.
Which of the following would be the BEST device to recommend to your manager for computer protection?
A. Surge suppressor
B. Power strips
C. UPS
D. Wall Outlet
Answer:
The correct answer is option C (UPS).
Explanation:
Since brownouts are reduced voltages that might not be good enough for the required electricity capacity for your company, fearing that your computers (especially the servers) could be damaged, it is best to use UPS for your computer protection.
A UPS also called (Uninterruptable Power Supply) can function as a Surge suppressor when the voltages entering your company might be higher than normal, it can also function too in protecting your computers (especially the servers) in the case of a brownout when voltage required by your computers dropped below the required level. In the case of a brownout, the UPS supplies energy stored in its batteries to make the computers keep working without going off from lack of electricity.
Can someone please type a code that makes a house in python and turtle graphics i need help
Answer:
import turtle
turtle.speed(2)
#shape
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(45)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(45)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
#door
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(25)
turtle.left(90)
turtle.forward(50)
#windows
turtle.penup()
turtle.right(90)
turtle.forward(20)
turtle.right(90)
turtle.forward(20)
turtle.pendown()
turtle.forward(25)
turtle.left(90)
turtle.forward(40)
turtle.left(90)
turtle.forward(25)
turtle.left(90)
turtle.forward(40)
Explanation:
here :)
A car manufacturer uses'simulation software during the design process for a new car. Which of the
following are reasons to use simulation software in this context?
1. Using simulation software can save the company money by helping to compare designs early in
the process, before prototype cars are built.
II. Using simulation software can help to identify safety issues by providing data about how different
mechanical components will interact in a wide variety of situations.
III. The manufacturer can present simulation software to customers to demonstrate different design
possibilities
А
I and II only
B
I and III only
С
II and III only
D
I, II, and III
D I,II and III is the answer i think
The reasons to use simulation software in this context are I, II, and III. The correct option is D.
What is simulation software?The process of simulating a genuine phenomenon with a set of mathematical formulas is the foundation of simulation software. It is essentially a program that allows the user to simulate an operation and view it without really conducting it.
Simulation is a decision-making and decision-support tool. You can use simulation software to assess, compare, and optimize different designs, programs, and policies. As such, it can be used to explain and defend decisions to multiple stakeholders.
By allowing the corporation to evaluate concepts early in the process before prototype automobiles are constructed, simulation software can save the company money.
Therefore, the correct option is D, I, II, and III.
To learn more about simulation software, refer to the link:
https://brainly.com/question/16192324
#SPJ2
Write a pseudocode to calculate the factorial of a number
Answer:
Answer CODE from C# Sharp Language
Explanation:
using System;
namespace test
{
class Program
{
public void silnia()
{
decimal liczba;
decimal silnia = 1;
Console.WriteLine("Obliczanie Silni ");
Console.WriteLine("Podaj liczbę: ");
liczba = Convert.ToInt32(System.Console.ReadLine());
//liczba = int.Parse(Console.ReadLine());
for (int i = 1; i <= liczba; i++)
silnia *= i;
Console.WriteLine("Wynik Silni Wynosi : " +silnia +" \n ");
}
static Program ćwiczeniaA;
static void Main(string[] args)
{
ćwiczeniaA = new Program();
ćwiczeniaA.silnia();
Console.WriteLine("Koniec Programu");
System.Console.ReadLine();
}
}
}
complete the sentence: hexadecimal numbers use base ____
Hexadecimal numbers use base-16