The program below reads in the number of minutes entered by a user. The program that converts the number of minutes to hours and minutes. Run the program, then modify the code to work in reverse: The user enters two numbers for hours and minutes and the program outputs total minutes.
Answer:
Written in Python:
hours = int(input("Hours: "))
mins = int(input("Minutes: "))
result = hours * 60 + mins
print("Result: "+str(result)+" minutes")
Explanation:
This line prompts user for hours
hours = int(input("Hours: "))
This line prompts user for minutes
mins = int(input("Minutes: "))
This line calculates the required output
result = hours * 60 + mins
This line prints the required output in minutes
print("Result: "+str(result)+" minutes")
Which of the following documents has a template available in the online templates for your use?
letters
resumés
reports
all of the above
Answer:
The answer is all of the above.
Explanation:
Which online text source would include a review of a new TV show?
an academic journal
a blog
an e-book
an encyclopedia
Answer:
Blog
Explanation:
Online text sources include blogs, e-books, encyclopaedias, and e-zines. As a result, options A, B, C, and D are correct.
What is a text source?A source is a book or other material that contains the data that has been used, whereas a citation is the actual statement of the starting point. They were researchers who also worked as professors, writers, and other professionals, and they published books and articles.
Online text sources are those that can be accessed from anywhere and are available on the internet. The online text shows that anyone can see or exceed including blogs, e-books, encyclopaedias, and e-zines.
These are available for further studies and research. Also to give information this can be a source. Therefore, options A, B, C, and E is the correct option.
Learn more about text sources, here:
brainly.com/question/19131568
#SPJ6
What common feature of well-made web apps helps them stand out from static email
advertisements?
O They help advertise product.
O You can add a chat window for support.
You can integrate images and text related to your brand.
You can reach more people.
Answer: You can add a chat window for support.
Explanation:
The answer above is a well known feature in well-made web apps and the only difference between apps and static email advertisements in the options.
Both the apps and the email advertisement work to advertise a product so option A is incorrect.
You can also integrate images and text related to your brand in both the app and email.
Both of them enable you to reach more people as well.
Option B is therefore correct.
Answer:
C) You can integrate images and text related to your brand.
Explanation:
Assume a random number generator object named randGen exists. What are the possible values for randGen.nextInt(6)?
a. 0...5
b. 0...7
c. 1...6
d. 0...6
Answer:
a. 0...5
Explanation:
Given
randGen.nextInt(6)
Required
Determine the range of values
Using randGen object,
The syntax to generate a random integer is randGen.nextInt(n)
Where the range is 0 to [tex]n - 1[/tex]
In this case;
n = 6
So, range is 0 to 6 - 1
Range: 0 to 5
Hence;
Option A answers the question
Assignment 3 chatbot edhesive
Answer:
name1=input("What is your first name? ")
name2=input("What is your last name? ")
print("Hi there, "+ name1+" "+name2 +" ,nice to meet you!")
print("How old are you?")
age = int(input(" "))
print(str(age) + " is a good age.")
if(age >= 16):
print("You are old enough to drive. \n")
else:
print("Still taking the bus, I see. \n")
print("So, " + name1 + ", how are you today?")
feel=input("")
print("You are " + feel),
if(feel== "Happy"):
print("That is good to hear.")
elif(feel == "Sad"):
print("I'm sorry to hear that. ")
else:
print("Oh my!")
print("Tell me more. \n")
next=input("")
import random
r = random.randint(1, 3)
if(r==1):
print("Sounds interesting. \n")
elif(r==2):
print("That's good to hear. \n")
else:
print("How unusual. \n")
print("Well, " + name1 + ", it has been nice chatting with you.")
Explanation:
Define a function named word_count that counts the number of times words occur in a given string. The function must accept a string as a parameter and return a dictionary in which the key is every unique word and its value is the number of times that word occurs in the string. For example, passing in the string "Rock ties with rock" should return {'rock': 2, 'ties': 1, 'with': 1 }. Categorization should not be case-sensitive. A string with no words should return an empty dictionary.
In python 3:
def word_count(txt):
lst = txt.lower().split()
dict = {}
new_txt = ""
for i in lst:
if i not in new_txt:
new_txt += i
dict[i] = txt.lower().count(i)
return dict
print(word_count("Rock ties with rock"))
I hope this helps!
Answer:
def count_words(txt):
lst = txt.split(",")
var = {}
for i in lst:
if i in var:
var[i]+= 1
else:
var[i] = 1
return var
print(word_count("Rock ties with Rock"))
Explanation:
This one worked for me, hopefully it's what you were asking.
Complete the following sentences using the drop-down menus.
is considered by some to be the most important program because of its popularity and wide use.
applications are used to display slide show-style presentations.
programs have revolutionized the accounting industry.
Answer:
is considered by some to be the most important program because of its popularity and wide use.
✔ Presentation
applications are used to display slide show-style presentations.
✔ Spreadsheet
programs have revolutionized the accounting industry.
Explanation:
just did it on edg this is all correct trust
the answers are:
- presentation
- spreadsheet
List the languages in order from highest level to lowest.
O Python, binary, bytecode
O binary, Python, bytecode
O Python, bytecode, binary
O binary, bytecode, Python
Answer:
Python, bytecode, binary
Explanation:
Python is a high-level multi-purpose programming language. it is very popular and is easy to learn. Its syntax is more English-like compared to other programming languages.
Binary is a form representing data in digital form. It only uses numbers 1 and 0. Binary can be in the form of a machine code or a bytecode.
bytecode is a form of binary for virtual microprocessors which can only be interpreted to machine code for direct processing.
What is a malicious actor essentially looking for when attempting a network attack?
Answer:
information of personnel
Explanation:
The malicious actor that is essentially looked for when attempting a network attack is information of personnel.
Who are malicious actors?
An entity that is partially or completely accountable for an occurrence. It has an impact on or the potential to have an impact on the security of an organization and is referred to as a threat actor, also known as a malicious actor or bad actor.
Actors are typically divided into three categories in threat intelligence: partner, internal, and external. Any individual or group that wreaking havoc online is referred to as a threat actor, also known as a malevolent actor.
They carry out disruptive assaults on people or organizations by taking advantage of holes in computers, networks, and other systems.
Therefore, when attempting a network attack, personnel information is the main harmful actor that is sought after.
To learn more about malicious factors, refer to the link:
https://brainly.com/question/29848232
#SPJ2
how do i set it up? can u guys like give examples its for computer science its suppose to be a program
public class Lab02_Favorite{
public static void main(String []args){
System.out.println("I miss going bowling with my friends");
}
}
Windows 1.0 was not considered to be a "true" operating system but rather an operating environment because _____.
it provided a shell for MS-DOS
it could only run one application at a time
it didn't use a pointing device
it crashed a lot
In ____________, a large address block could be divided into several contiguous groups and each group be assigned to smaller networks.
Write the answers so we can answer your question
what is a cell selector
Answer:
it's files contain each buttons configuration information and the size and number of buttons in the configuration.
Answer:
Cell selector files contain each button's configuration information and the size and number of buttons in the configuration. If mr_cellcelector is not defined, the cells in the attached cell library are loaded. If neither condition is met, a dialog is opened for selecting a cell library.
Explanation:
what is mean by modulation
Answer: process of converting data into radio waves by adding information to an electronic or optical carrier signal
Explanation: Have a great day!
"How do you split your time between traditional television and streaming video? Has it changed? If so, how?"
Match the letters to the items they represent. Put the number in the box that matches your answer choice.
A
B
C
D
Quick launch
taskbar
system tray
Start menu
Answer:
Quick launch-C
Task bar-A
start menu-B
system tray-D
Explanation:
Answer:
A: taskbar
B: Start menu
C: Quick Launch
D: system tray
Explanation:
Write a method printOdds1To11 that prints the odd numbers between 1 and 11 inclusive, one on each line. The program should calculate the odd numbers in a loop. The program text should not include the digits 3, 5, 7, or 9, but it will print these numbers out using System.out.println along with 1 and 11, in numerical order. It should only contain a single println statement. The program should take no arguments and return no value, just print things out.
Answer:
The method goes thus
static void printOdds1To11(){
for(int i = 1; i<=11;i++){
System.out.println(i);
}
}
Explanation:
This line defines the method
static void printOdds1To11(){
This line iterates from 1 to 11 with an increment of 2
for(int i = 1; i<=11;i+=2){
This line prints the odd number in this range
System.out.println(i);
}
}
Arranging How to Change Line Spacing
Page 1
Page 2
Maia is typing her report on meerkats for her
biology class
Read her first two paragraphs on the next page.
The rubric given to them by their teacher requires that
the lines be double spaced.
Arrange the steps below to outline what Maia needs to
do to accomplish this task.
Click the space required.
Click the line and Paragraph Spacing option.
Navigate to the Paragraph command group.
Intro.
Answer:
Click the space required.
✔ 3
Click the Line and Paragraph Spacing option.
✔ 2
Navigate to the Paragraph command group.
✔ 1
Explanation:
Maria is designing a website. What might Maria use to avoid writing every part of the code from scratch?
a
HTML
b
JQuery
c
Python
d
CSS
Answer:
CSS (d)
Explanation:
Write a recursive function that takes a start index, array of integers, and a target sum. Your goal is to find whether a subset of the array of integers adds up to the target sum. The start index is initially 0. A target sum of 0 is true for any array.
Answer:
Here is the recursive function:
public static boolean subsetSum(int start, int[] nums, int target) { //method definition
if (start >= nums.length) //base case
return (target == 0);
if(subsetSum(start + 1, nums, target - nums[start]) || subsetSum(start + 1, nums, target)) //recursive case
return true;
return false; }
Explanation:
Here is the complete program to test the working of the above method:
public class Main { //class name
public static void main(String[] args) { //start of main method
int[] nums = {2, 4, 8}; //creates and initializes array
System.out.println(subsetSum(0,nums,10)); } //calls method by passing start index i.e. 0, nums array and 10 is target sum
public static boolean subsetSum(int start, int[] nums, int target) { //method that takes start index, integer array and target sum as parameters
if (start >= nums.length) //if start index is greater than or equals to length of the array (base case)
return (target == 0); //returns target == 0
if(subsetSum(start + 1, nums, target - nums[start]) || subsetSum(start + 1, nums, target)) //recursive case to find whether a subset of the array of integers adds up to the target sum
return true; //returns true if the above condition is true
return false; } } //returns false if above condition is false
I will explain the program with the help of an example:
Lets say the num array has elements: 2,4 and 8. The method subsetSum works as follows:
Here start = 0
nums[] = {2,4,8}
target = 10
if (start >= nums.length) becomes:
if (0>= 3) this statement is false so the program moves to the recursive part:
if(subsetSum(start + 1, nums, target - nums[start]) || subsetSum(start + 1, nums, target)) this becomes:
if(subsetSum(0+ 1, {2,4,8}, 10 - nums[0]) || subsetSum(0+ 1, {2,4,8}, 10))
if(subsetSum(1, {2,4,8}, 10 - 2) || subsetSum(1, {2,4,8}, 10))
if(subsetSum(1, {2,4,8}, 8) || subsetSum(1, {2,4,8}, 10))
Now this method calls itself recursively to find whether a subset of the array nums adds up to 10.
The above recursive condition evaluates to true so the function returns true. The screenshot of program and its output is attached.
ANSWER ASAP PLSSS
ALSO GIVE ME RIGHT ANSWER NOT A RANDOM ONE
———-——-————————
Question 1 (1 point)
What function would you use to find the total number of views of all the videos?
Average
ОMax
Count
Min
Sum
Answer:
ethier you can do sum and average
Use the drop-down menus to explain how to personalize a letter.
1. Place the cursor where the name and address should appear.
2. Select
v in the mail merge wizard.
3. Select the name and address format and
if needed to link the correct data to the field.
4. Place the cursor below the address block, and select
from the mail merge wizard.
5. Select the greeting line format and click
Explanation:
Address block
Match Fields
Greeting Line
Ok
Place the cursor where the name and address should appear: This step is important as it identifies the exact location where the personalized information should be placed in the letter.
What is personalization?Personalization refers to the process of customizing a communication, such as a letter or email, to make it more individualized and relevant to the recipient.
To explain how to personalize a letter:
Place the cursor where you want the name and address to appear: This step is critical because it determines where the personalised information should be placed in the letter.
In the mail merge wizard, enter v: This step involves selecting the mail merge feature in the word processor software. The mail merge feature is typically represented by the "v" symbol.
Choose the name and address format, and then [link] to link the correct data to the field: This step entails selecting the appropriate name and address format, such as "First Name," "Last Name," and "Address Line 1." It also entails connecting the data source (for example, a spreadsheet or database) to the relevant fields in the letter.
Place the cursor below the address block and use the mail merge wizard to select [Insert Greeting Line]: This step involves deciding where to place the greeting line in the letter, which is usually below the address block. The mail merge wizard offers formatting options for the greeting line based on the data source.
Choose the greeting line format and press [OK]: This step entails deciding on a greeting line format, such as "Dear [First Name]" or "Hello [Full Name]." Once the format is chosen, the user can finish personalising the letter by clicking "OK."
Thus, this can be concluded regarding the given scenario.
For more details regarding personalization, visit:
https://brainly.com/question/14514150
#SPJ2
there are no more than 60 people in a certain class to participate in the final .the exam subjects are programming, English, and mathematics .the following functions are realized by two dimensional array programming.calculate the average score of each student
Answer:
If there are many people in the class and if most of these people have never done such an intensive proof-based class, then I'd say this is not so surprising that the class average would be 56%-34%
Explanation:
hopes this help this question threw me off a lot
What are the functions of four registers?
Answer:
The four general purpose registers are the AX, BX, CX, and DX registers. AX - accumulator, and preferred for most operations. BX - base register, typically used to hold the address of a procedure or variable.
Explanation:
What is a file manger ? The file manger is user A . Medium B.platform C. Interface .
Answer: C. Interface.
Explanation:
File manager is an interface between the hardware part of a computer and the software. the main function of a file manager is to help the user manage all files which they have stored up on their computers. for example the file managers allows the users to view, copy, delete and edit the files which they have stored up on their computer storage devices.
TCP/IP-based protocols called ________ established a _____ between two computers through which they can send data.
Answer:
1. Communications Protocol
2. Network
Explanation:
TCP/IP is an acronym in computer science or engineering, that stands for Transmission Control Protocol or Internet Protocol. It is often referred to as COMMUNICATIONS PROTOCOL. It is technically utilized for the interconnection of NETWORK for machines or gadgets on the internet. In some other cases, it can also be used as either intranet or extranet; a form of a private computer network.
Hence, in this case, the correct answer is TCP/IP-based protocols called COMMUNICATIONS PROTOCOL established a NETWORK between two computers through which they can send data.
Write a function that takes a string and return the back half of the string. If the string has an odd number of characters, include the extra character. Your solution should also work if given and empty string. Examples: back_half('abba') should return 'ba' back_half('abcba') should return 'cba'
Answer:
Written in Python
def back_half(inputstring):
outputstring = ""
lent = len(inputstring)
if lent == 0:
outputstring ="Empty String"
elif lent%2 == 0:
begin = lent/2
for i in range(int(begin),lent):
outputstring = outputstring + inputstring[i]
else:
begin = (lent+1)/2
for i in range(int(begin-1),lent):
outputstring = outputstring + inputstring[i]
return outputstring
Explanation:
This line defines the function
def back_half(inputstring):
This line initializes outputstring to an empty string
outputstring = ""
This calculates the length of the input string
lent = len(inputstring)
This checks if the length of inputstring is 0. If yes, the function returns empty string
if lent == 0:
outputstring ="Empty String"
This checks if the length of inputstring is even.
elif lent%2 == 0:
begin = lent/2 This line gets the beginning of the half string
for i in range(int(begin),lent):
outputstring = outputstring + inputstring[i] This generates the half string
else: This checks for odd length
begin = (lent+1)/2 This line gets the beginning of the half string
for i in range(int(begin-1),lent):
outputstring = outputstring + inputstring[i] This generates the half string
return outputstring This returns the outputstring
True or False: Wire service provide tabloid news reports to media outlets.
Answer:
True
Explanation:
this is true and here is an explanation on how they operate.
New is readily available through various sources, newspapers, magazine, radio, tv,and the internet. Each of these sources in competition.
A given story most times had same content often times due to much dependence on wired services.
wire services would collect stories from reporters, edit them to standard format and then distribute to broadcast stations and print media.
List three hardware computer components? Describe each component, and what its function is.
Answer:
moniter: a screen and is used to see what the computer is running
webcam: the camera on the computer. can be already built in or added
power supply: an electrical device that supplies power to an electrical load
Explanation:
Answer:
Input device
output device
C.P.U