Answer:
m = int(input("Rows: "))
n = int(input("Columns:= "))
mult_table = []
for i in range(0,m):
mult_table += [0]
for i in range (0,m):
mult_table[i] = [0]*n
for i in range (0,m):
for j in range (0,n):
print ('Row:',i+1,'Column:',j+1,': ',end='')
mult_table[i][j] = int(input())
for i in range(0,m):
for j in range(0,n):
if not j == n-1:
print(str(mult_table[i][j])+" | ", end='')
else:
print(str(mult_table[i][j]), end='')
print(" ")
Explanation:
The next two lines prompt for rows and columns
m = int(input("Rows: "))
n = int(input("Columns:= "))
This line declares an empty list
mult_table = []
The following two iterations initializes the list
for i in range(0,m):
mult_table += [0]
for i in range (0,m):
mult_table[i] = [0]*n
The next iteration prompts and gets user inputs for rows and columns
for i in range (0,m):
for j in range (0,n):
print ('Row:',i+1,'Column:',j+1,': ',end='')
mult_table[i][j] = int(input())
The following iteration prints the list row by row
for i in range(0,m):
for j in range(0,n):
if not j == n-1:
print(str(mult_table[i][j])+" | ", end='')
else:
print(str(mult_table[i][j]), end='')
print(" ")
In this exercise we have to use the knowledge of computational language in python to describe a code, like this:
The code can be found in the attached image.
To make it easier the code can be found below as:
m = int(input("Rows: "))
n = int(input("Columns:= "))
mult_table = []
for i in range(0,m):
mult_table += [0]
for i in range (0,m):
mult_table[i] = [0]*n
for i in range (0,m):
for j in range (0,n):
print ('Row:',i+1,'Column:',j+1,': ',end='')
mult_table[i][j] = int(input())
for i in range(0,m):
for j in range(0,n):
if not j == n-1:
print(str(mult_table[i][j])+" | ", end='')
else:
print(str(mult_table[i][j]), end='')
print(" ")
See more about python at brainly.com/question/26104476
You are going to send a document to a client, and you want to be absolutely sure that none of the formatting is lost. Which of these document formats would be best?
A Permissions
B Orientation
C Margins
D Location
Answer:
Explanation:
A because they would not ruin your work and they have to ask your permission if they want to edit it.
An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours, plus any overtime pay.
Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage.
Write a program that takes as inputs the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.
Below is an example of the program inputs and output:
Enter the wage: $15.50
Enter the regular hours: 40
Enter the overtime hours: 12
The total weekly pay is $899.0
wage = float(input("Enter the wage: $"))
regular_hours = float(input("Enter the regular hours: "))
overtime_hours = float(input("Enter the overtime hours: "))
print(f"The total weekly pay is ${(regular_hours * wage) + ((wage*1.5) *overtime_hours)}")
I hope this helps!
Can some one help me plz
Answer:
ONE
Explanation:
The output is one if x is equal to 9 % 2
In Word, blue underlining indicates which of these problems?
A grammatical error
B file error
C spelling error
D style mismatch
Answer:
The blue indicates a grammatical error, including misused words.
Hence, the answer is A
Why do you think there is activity even when you are not actively using network services?
Answer:
Every social media platform has an algorithm, and just because you aren't using it, doesn't mean others are not engaged!
Explanation:
give the imporntance of having standard funiture in the laboratory
Answer:
I guess if there is experiment going on in absence one of those furniture then the experiment isn't successful
Computer networks allow computers to send information to each other. What is the term used to describe the basic unit of data passed from one computer to another?
packet
message
transmission
package
Answer:
Packet
Explanation:
I just did the Quiz on EDGE2022 and it's 200% correct!
Also, heart and rate if you found this answer helpful!! :) (P.S It makes me feel good to know I helped someone today!!)
The term that is used to describe the basic unit of data passed from one computer to another is the packet. The correct option is a.
What are computer networks?Computer networking is the term for a network of connected computers that may communicate and share resources. These networked devices transmit data through wireless or physical technologies using a set of guidelines known as communications protocols.
The network layer supplies the means of shifting variable-length web packets from a source to a destination host via one or more networks.
A packet is a brief section of a message in networking. Packets are used to transport data via computer networks, including the Internet. The computer or device that receives these packets then reassembles them.
Therefore, the correct option is a. packet.
To learn more about computer networks, refer to the link:
https://brainly.com/question/13992507
#SPJ2
Im being timed please help!!
Where might you find help if material becomes truly difficult?
a.
A teacher
c.
A study group
b.
A tutor
d.
All of these
Please select the best answer from the choices provided
A
B
C
D
Answer:
ALL
Explanation:
Because if it was a test you can ask a teacher, if it was group projects you can ask the study group, if it was homework or 1 on 1 you can ask a tutor
Answer:
b
Explanation:
because a tutor deals with materials
What does the measurement tell you?
Estimate at completion
Answer:
forecasted cost of the project, as the project progresses/"The expected total cost of completing all work expressed as the sum of the actual cost to date and the estimate to complete." - PMBOK Guide
Explanation:
Choose the best technology device for the
scenario below.
A business professional works in an office
designing graphics for a company's
advertisements.
O Tablet PC
o Smartphone
Desktop computer with 2 screens
Laptop computer
Answer:
Desktop computer with 2 screens
Explanation:
All graphices designers need the most screen space possible
Answer:
Desktop computer with 2 screens
Explanation:
Work made for hire. If an employer asks an independent designer to create an illustration, the copyright to that artwork is owned by the employer. true or false?
Answer:
False
Explanation:
On the basis of the designer being "independent", the artworks copyright remains with the designer. Being independent requires contractual transfer of copyright in the event that its created for another person.
write a dialogue between two friends who are debating on popularity or property
Answer:
example:
James said, " popularity isn't the important. "
David said, " It is ."
Helppp!!! Will give brainliest! Which of these operating system use the organize file?
Hypervisor
Firmware or wetware
Folders or directories
Output devices
Answer:hyperviser
Explanation:
Which of the following occupations is least likely to involve use of a computing device on a day-to-day basis?
Janitorial duties
Cashier in a bank
Journalist
Records clerk in a hospital
Answer:
Janitorial duties
Explanation:
Write a program containing a loop that you execute 16 times. In the loop, generate two random numbers between 1 and 50. Divide the first random number by the second random number and print the result using 4 decimal places of accuracy.Lab Exercise #1 Put your name, the compiler used, and Lab Exercise #1 in a comment at the top of your program. Email your source code. This lab exercise is due at the beginning of the next lecture. You may email your lab solution prior to that. Remember to use "Ex1" as the subject of your email submission. Write a program containing a loop that you execute 16 times. In the loop, generate two random numbers between 1 and 50. Divide the first random number by the second random number and print the result using 4 decimal places of accuracy. Your output should look like this - except for different random values: 2.3333 35.0000 0.8000 3.2222 0.8667 0.1304 1.1429 0.2857 1.0698 0.7568 8.4000 0.7500 1.3030 1.2941 0.4130 1.7778 Hint: you should get a floating-point answer (a cast is suggested).
Answer:
Follows are the code to this question:
#include <stdio.h>// header file
int main()//main method
{
int i,x, y;//declaring integer variable
float result;//declaring flat variable
for(i=0; i<16; i++) //defining foe loop for calculate value
{
x = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value
y = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value
result=(float)x/y;//use result variable for calculate value
printf("%.4f\n",result);//print value
}
return 0;
}
Output:
0.2200
0.2857
0.8684
0.7755
2.3000
0.1875
1.0500
1.3043
1.4839
1.2812
4.0000
0.9250
2.5000
1.8000
1.1034
1.1250
Explanation:
In the given code, three integer variable "i,x, and y" one float variable "result" is defined, in which integer variable "x and y" is used in the for loop, that uses the random function input value and in the float variable "result" it divides the value from x to y. This variable uses the typecasting to convert an integer to float and print its value.
1. The trucks hauling asphalt have a maximum capacity of 5 US tons (10,000 lbs) 2. The standard road lane is 12 feet wide. 3. Asphalt weighs 150 lbs per cubic foot 4. Asphalt costs $200 per ton 5. Power and water utilities are run in a conduit pipe under the road as part of all road projects 6. Conduit pipe is available only in 24 ft. lengths - each length costs $500 7. There is one intersection for every mile of road a. a 1 mile road has 1 intersection b. a 2 mile road has 2 intersections c. a 2.99 mile road has 2 intersections 8. Stoplights cost $25,000 per light 9. Each intersection has two stoplights, plus one additional stoplight for each lane a. a 1 lane road has three stop lights at each intersection b. a 2 lane road has four stop lights at each intersection c. a 3 lane road has five stop lights at each intersection 10. Work days are 8-hour days 11. All workers are paid $25 per hour12. Crew members can complete an amount of work in a specified time according to the equation below: crewMember = 50 . miles . lanes/days Test Data Test #1 Given Inputs Length of road project (miles) : 2.75 Number of lanes 3Depth of asphalt (inches) 12 Days to complete project 30Expected Output - Amount of materials needed === Truckloads of Asphalt : 7841 Stoplights : le Conduit pipes : 605 Crew members needed : 14 = Cost of Materials ============ Cost of Asphalt : $7841000.ee Cost of Stoplights : $250000.00 Cost of Conduit pipes : $302500.ee Cost of Labor : $84882.ee - Total Cost of Project - Total cost of project : $8477500.ee
Answer:
please write in a better way, and make it easy for us to read.
Why was the newspaper readership the highest in 1995?
Computing devices translate digital to analog information in order to process the information
Answer:
True?
Explanation: is IT RIGHT?????????????????
which role belongs to the operating systems
A.
identifying new viruses
OB.
helping the user operate without any hardware devices
O C.
assigning memory to a particular process
OD
preventing two processes from running simultaneously
Answer: D
Explanation:
write a program that first defines three string objects called firstName, middleName, and lastName which contains your own first, middle and last name separately. If you do not have middle name, then make up one. Then try to generate a new user name for you by using your first letter of your first name(captilized), first letter of you middle name (Captilized), plus all letters in your last name, add a random number between (1 to 100) to the your new user name. Here is an exampl: Name: John blake adams then the user name generated by your program coulde be: JBadams23
Answer:
Written in Python
import random
firstName = "Charles"
lastName = "Dawson"
middleName = "Rutherford"
pwd = firstName[0] + lastName[0]+middleName+str(random.randint(1,101))
print(pwd)
Explanation:
This line imports random library into the program
import random
The next three lines initializes the name of the user
firstName = "Charles"
lastName = "Dawson"
middleName = "Rutherford"
This line generates the password
pwd = firstName[0] + lastName[0]+middleName+str(random.randint(1,101))
This line prints the generated password
print(pwd)
TCP is a more dependable protocol than UDP because TCP is_____ latent/connectionless/connection-oriented/encapsulated
Answer:
connection-oriented
Explanation:
Answer:
TCP is a more dependable protocol than UDP because TCP is
connection-oriented
Explanation:
Because I took a guess and that was the
What is a copyright?
the exclusive legal right, given to an originator or an assignee to print, publish, perform, film, or record literary, artistic, or musical material, and to authorize others to do the same.
What’s command do we use to update a file on MySQL?
Answer:
The MySQL update command/query is used to update existing records in a table in a MySQL database.
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:
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")
what is an operating system
Answer:
Explanation:
Online Dictionary defines 'Operating System' as "the software that supports a computer's basic functions, such as scheduling tasks, executing applications, and controlling peripherals.''
Hope this helps!
What is the hexadecimal equivalent for the decimal number 27? Working must be shown
The answer is .9726
Explanation:
Class description: A MyString class should behave much like the c++ string class. The class should use a dynamically allocated char array to hold a character string. If the amount of memory allocated to the array is too small to complete some necessary task (e.g., assigning a new character string to the object) the object should automatically double its capacity until it is large enough to complete the task. If it's discovered that the object is using less than 25% of its capacity the object should shrink to half its capacity until it is using more that 25% of its capacity.
Assignment: Implement the MyString class using a header and implementation file named MyString.h and MyString.cpp respectively. Even though MyString.h will be provided on the upload site, create own version for testing code locally. Make sure to properly test code on by creating a test driver that fully tests every function created in the MyString class
Memory Requirements: MyString should start with 10 bytes of allocated memory and should grow in size by doubling. So, we should be able to predict the capacity of MyString as acquiring a patten of 10, 20, 40, 80, ⦠bytes of memory depending of the number of characters stored.
Attributes:
int size â the number of characters currently stored in the string object. Do NOT count the NULL character.
int capacity â the number of bytes currently allocated. This should always be at least size + 1. The extra byte is needed to store the NULL character.
char *data â character pointer that points to an array of characters.
Member Functions:
MyString( ) Constructor
MyString(const char *) Constructor with an initialization character string
~MyString( ) Destructor
MyString(const MyString &) Copy constructor
MyString& operator = (const MyString&) Overloaded assignment operator, make a copy of MyString object
bool operator == (const MyString&) const overloaded equivalence relational operator
char& operator [ ] (int) overloaded [ ] should return a char by reference
void operator += (const MyString&) overloaded += operator, use to concatenate two MyStrings
MyString operator + (const MyString&) const Create a new MyString object that is the concatenation of two MyString objects
void getline(istream&, char delimit = â\nâ); reads an entire line from a istream. Lines are terminated with delimit which is newline â\nâ by default
int length( ) const; return the length of the string
friend ostream& operator<< (ostream&, MyString&); overloaded insertion operator
Java Homework:(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student andEmployee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number, and email address. A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has an office, salary, and date-hired. Define a class named MyDate that contains the fields year, month, and day. A faculty member has office hours and a rank. A staff member has a title. Override the toString method in each class to display the class name and the person's name.
class Person{
//A person has a name, address, phone number, and email address.
String name;
String address;
String phone;
String email;
}
class Student extends Person{
//A student has a class status
//(freshman,sophomore, junior, or senior).
//Define the status as a constant.
final int freshman =1;
final int sophomore =2;
final int junior=3;
final int senior=4;
int status=freshman;
}
class Employee extends Person{
//An employee has an office, salary, and date hired.
String office;
double salary;
java.util.Date dateHired;
}
class Faculty extends Employee{
//A faculty member has office hours and a rank.
String officeHours;
String rank;
}
class Staff extends Employee{
//A staff member has a title
String title;
}
public class ex112{
}
The outline is given above. Fill in between brackets to finish! Thank you :)
Answer: Wait, so what is the question exactly..?
Cyberbullying someone by threatening to hurt them is ethically wrong, but does NOT violate any laws. True False