Answer:
hours = 50
full_days = int(hours / 24)
print("The number of full days in " + str(hours) + " hours is " + str(full_days))
Explanation:
Initialize the hours
Since there are 24 hours in a full day, divide the hours by 24. Note that you need to typecast it to the int, because the result is a decimal value by default
Print the values as requested
When following maintenance procedures, it is important to carefully read the procedures and to complete
each step before moving to the next step.
True or
False
Match each task with the features necessary to complete the task
why is makyra a loser??
Answer:
She dumbbbbbbbbbbbbbbbbbbbbbb
Explanation: Her mom watched too much spongebob while pregnant
Create a Boolean function odd_number_digits(n) that returns True when a positive integer has an odd number of digits. (You may assume that I will not use a number greater than 1,000,000.) Then, use it to make a
function sum_odd_digits(n) that sums all the numbers from 0 to n that have an odd number of digits.
Answer:
Following are the code to this question:
import java.util.*;//import package for user input
public class Main//defining class main
{
public static boolean odd_number_digits(int n)//defining boolean method odd_number_digits
{
if(n>0 && n%2!=0)//defining if block that check value is positive and odd number
{
return true;//return value true
}
else//defining else block
{
return false;//return false value
}
}
public static void sum_odd_digits(int n)//defining a method sum_odd_digits
{
int sum=0,i;//defining integer variable
for(i=0;i<=n;i++)//defining for loop
{
if(i%2!=0)//defining if block for odd number
{
sum=sum+i;//add odd number
}
}
System.out.print(sum);//use print method to print sum value
}
public static void main(String[] args) //defining main method
{
Scanner ox=new Scanner(System.in);//creating Scanner object
int n= ox.nextInt();//defining integer variable for input value
System.out.print(odd_number_digits(n)+ "\n");//use print method to call method
System.out.println("Sum of odd numbers: ");//print message
sum_odd_digits(n);//calling method
}
}
Output:
please find the attachment.
Explanation:
In the above code, two methods "odd_number_digits and sum_odd_digits" are defined in which the first method return type is boolean because it will true or false value, and the second method returns the sum of odd numbers.
In the "odd_number_digits" method, an integer variable passes as an argument and inside the method, if block is used that check value is a positive and odd number then it will return a true value.
In the "sum_odd_digits" method, it accepts an integer parameter "n", and define integer variable "sum" inside the method, which uses the for loop, inside the loop if block is used that counts odd numbers and adds its in sum and print its value.
A DBMS commonly receives data update requests from application programs.A. TrueB. False
Answer:
A. True
Explanation:
DBMS is an acronym for database management system and it can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.
Some examples of a database management system (DBMS) are RDBMS, Oracle, SQL server, PostgreSQL, dBASE, Clipper, MySQL, Microsoft Access, etc.
A DBMS commonly receives data update requests from application programs through the Open Database Connectivity ( ODBC ) driver in case of communication with other database management softwares.
Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.
Choose all of the items that represent functions of the operating system kernel.
memory management
process management
user interface
system input and output (I/O) management
file creation and management
Answer:
A. memory management
B. process management
D. system input and output (I/O) management
E. file creation and management
Answer:
1,2,4,5
Explanation:
E2020 - Intro to Information Technology
The binary string 00100100 is a member of which of the following problems? Remember, a "problem" is a language whose strings represent the cases of a problem that have the answer "yes." In this question, you should assume that all languages are sets of binary strings interpreted as base-2 integers. The exception is the problem of finding palindromes, which are strings that are identical when reversed, like 00100100, regardless of their numerical value.
This question is incomplete, the complete question is;
The binary string 00100100 is a member of which of the following problems? Remember, a "problem" is a language whose strings represent the cases of a problem that have the answer "yes." In this question, you should assume that all languages are sets of binary strings interpreted as base-2 integers. The exception is the problem of finding palindromes, which are strings that are identical when reversed, like 00100100, regardless of their numerical value.
a) Is the given string a palindromes ?
b) Is the given string a perfect cube?
c) Is the given string greater than 50?
d) Is the given string even?
e) is the given string a perfect square?
Answer:
a) the given binary string is a palindromes
b) the given string is NOT a perfect cube
c) the given string is NOT greater than 50?
d) the given string is an even
e) the given string a perfect square
Explanation:
Given that;
binary string : 00100100
a)
Is the given string a palindromes ?
the given binary string = 00100100
now when you reverse the string, its still going to be : 00100100
so the given binary string is a palindromes
b)
Is the given string a perfect cube
the given string : 00100100 = 36
now 2^3 = 8,
3^3 = 27,
4^3 = 64
so 36 is not a perfect cubic
hence the given string is NOT a perfect cube
c)
Is the given string greater than 50?
the given string : 00100100 = 36
and 36 < 50
so the given string is NOT greater than 50?
d)
Is the given string even?
the given string : 00100100 = 36
and 36 can be divided exactly by 2
so the given string is an even
e)
is the given string a perfect square?
the given string : 00100100 = 36
now 6^2 = 36 i.e 6 multiply by 6 = 36
therefore the given string a perfect square
10010010 + 01100010 =
The problem above is called an _________. It means that there are more ________ than can be stored in a byte, or eight bit number.
Answer:
1. binary number or 8 bit
2. bits
Explanation:
Write a Java program that prompts the user for an int n. You can assume that 1 ≤ n ≤ 9. Your program should use embedded for loops that produce the following output: 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 . . . n . . . 5 4 3 2 1 Your prompt to the user should be: Please enter a number 1...9 : Please note that your class should be named PatternTwo.
Answer:
Here is the JAVA program:
import java.util.Scanner; // to take input from user
public class PatternTwo{ //class name
public static void main(String args[]){ //start of main function
Scanner scan = new Scanner(System.in); // creates Scanner class object
System.out.print("Please enter a number: "); //prompts user to enter an int n for the number of rows
int n = scan.nextInt(); //reads and scans the value of n from user
int i, j; //declares two variables to iterate through i rows and j columns
for (i=1; i<=n; i++){ //outer loop for rows
for (j=2*(n-i); j>=1; j--){ //inner loop for space between numbers in pattern
System.out.print(" "); } //displays an empty space in the pattern
for (j = i; j >= 1; j--) { //inner loop for columns
System.out.print(j+" "); } //prints the value of j (prints numbers in reverse)
System.out.println(); } } } //prints a new line after printing each row
Explanation:
The program is explained with an example in the attached document.
Help me for this question
Answer:
Answer C
Explanation:
You are welcome
The next four octal numbers after 36 is:________.
a. 36, 37, 40, 41
b. 37, 40, 41, 42
d. 36, 37, 38, 39
c. none of the Above
Answer: b. 37, 40, 41, 42
Explanation:
The next four octal numbers after 36 is 37, 40, 41, 42.
The octal numeral system, which is also referred to as "oct" for short, is simply base-8 number system.
It is a number system whereby only digits from 0 to 7 are used and there are no letters or numbers that are above 8 that are used.
In this case, after 36, the next number will be 37 after which we go to 40 as we can't write 38 in the octal system. Therefore, the next four octal numbers after 36 is 37, 40, 41, 42.
How do you begin typing in a table cell?
A. Click within a cell and begin typing.
B. Highlight the table and begin typing.
C. Click on the Convert to Text button in the Layout ribbon.
D. Right-click and select Text Direction.
To begin typing in a table cell, click within a cell and begin typing. The correct option is A.
What is a table cell?A table cell is a subset of a chart table that is used to store information or data. Cells are organized both horizontally and vertically.
Each cell contains information about the combination of row and column headings with which it is collinear.
Text, numbers, and a variety of other elements can be included in table cells. Tables were originally used only to display numbers, but they are now useful for a wide variety of tasks.
To begin typing text into a cell, simply select a cell and start typing. To select text that is already inside a cell, place the insertion point within the cell.
In either mode, you can use the arrow keys to navigate around the table, making it simple to enter text into any cell.
Thus, the correct option is A.
For more details regarding a table cell, visit:
https://brainly.com/question/8059827
#SPJ5
What are language standards? At this point in your study of programming, what do they mean to
you?
Why is it unlawful for an employer to refuse to employ someone based solely on their gender without evidence that such a characteristic is necessary for successful completion of the job? Answer by writing a paragraph of two to three sentences.
Employing someone based on gender is unlawful because, it is the skill which matters to get the required job done and skills are not based on gender. There is no evidence that this particular gender cannot do this job and this particular gender can do. Everyone who posses the required skillsets are eligible to get employed irrespective of gender.
===============================================
I tried my best
What is 10X Profit Sites?
Answer:
Wow! That's amazing!
Explanation:
Assignment 1 silly sentences
Answer:
Sally sells sea shells by the sea shore
Explanation:
19 POINTS! What does the icon for changing the color of a cell or range look like? (Excel)
a pencil
the letter A
a paint bucket
a paintbrush
Answer:
Paintbucket
Explanation:
I got it right
Answer:
A Paint Bucket
Explanation:
People convicted of cyberbullying in most states
face no punishment for their actions.
face varying degrees of punishment.
are taught how to use technology positively.
are forced to do community service.
Answer: The Answer is B. face varying degrees of punishment.
Hope this helps! ^^ (also i know this is the right answer because i got it correct)
Answer:
b
Explanation: the punishment depends on the severeness , so we dont know the exact punishment
Sorry if this is not related.
What is the best game programming language to learn?
What is the difference between an IP address and an IP Packet?
Answer:
The IP address is a numerical number assigned to a device when connected to the internet for better identification. Whereas, the IP packet is the packet which contains the total information of the content that is carried over the network from host to destination and vice versa.
Explanation:
I hope this helped and plz give brainliest!
Which color reflects more light red blue black or white
Help meeeee - Improved Pet App
Try out the improved version of the pet app that gives the user information about pet stores close by, which uses new sources of input. Determine the information that the app gets from each source of input.
User
Phone Sensors
Internet
Answer:
Did you do it? Can you give me the answers please♀️
Explanation:
Pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee
What is the Internet address of the speech you listed to?
Answer:
To get the address of a website page, check the URL address at the top of the browser window.
Explanation:
The internet is global interconnection of multiple networks. All devices in the network must have a web address to communicate in the network. The IP version 4 and 6 are two concepts of addressing devices on the internet. The DHCP and DNS internet protocols are used to assign address and map addresses to string-like URLs respectively.
What is meant by computer generation?
Answer:
The development of computer took place into 5 phases which is known as generation of computer.
Explanation:
From first generation computer till now, development of computer took place in 5 distinct which is also know as generation of computer.
Explain why decomposition will be used in creating the algorithm for the game including two dice.
In an inspection, usually the first thing an inspector will want to see is:
Answer:
Your records and paperwork
You’ve been given a new cell phone with a 2 gigabyte data plan. You plan to use your phone for text messages, images, video, and music. Which of these categories are best compressed using lossless compression? Which of these categories are best compressed using lossy compression? Why?
Answer:
texts and music are best compressed using lossy compression and videos are best compressed using lossless compression
Explanation: texts and music are best compressed using lossy compression because there are not many details to leave out while pictures and videos are best compressed using lossless compression because they need to be in good quality
Lossy compression should be applied to text messages and music while lossless compression should be applied to images and videos
A lossy compression of a file implies that the quality of the file is reduced in order to get the file compressed.
This type of compression can be applied to text messages and music because a reduction in the size and quality will only reduce few details about the text messages and music file.
However, a lossless compression is such that even after the file size is reduced, the quality remains unchanged. This type of compression can be applied to video and pictures because even if the size is reduced, the quality of the files are not expected to change.
Hence;
Lossy compression should be applied to text messages and musicLossless compression should be applied to images and videosRead more about file compressions at:
https://brainly.com/question/13663721
what is the color of red?
Answer:
red
Explanation:
orange and red
Answer: Red
Explanation: The reason why it's red is because of how we see colors through our eyes.
which of the following is involved in ordering an outline. A.grouping B.merging C.organizing D.arranging
Answer:
The answer is A.GROUPING
HOPE THIS HELPS...
Answer:
nice name
Explanation:
6. Write pseudo code that will perform the following. a) Read in 5 separate numbers. b) Calculate the average of the five numbers. c) Find the smallest (minimum) and largest (maximum) of the five entered numbers. d) Write out the results found from steps b and c with a message describing what they are.
Answer:
Pseudo CODE
a)
n= Input “Enter 5 integer value”
b)
sum=0.0
For loop with i ranging from 0 - 5
Inside loop sum=n[i]+sum
Outside loop avg= sum/5
Print avg
c)
small=n[0] # assume the first number in the list is smallest
large= n[0] # assume the first number in the list is largest
For loop with i ranging from 0 - 5
Inside loop if n[i]<small #if any another number is smaller than small(variable)
Inside if Then small=n[i]
Inside loop if n[i]>large # if any another number is larger than large(variable)
Inside if then large=n[i]
Print small
Print large
d)
print avg
print small
print large
Pseudocodes are used as a prototype of an actual program.
The pseudocode is as follows:
input n1, n2, n3, n4, n5
avg = (n1 + n2 + n3 + n4 + n5)/5
small = n1
large = n1
for i = 2 to 5:
if n1 > ni then:
small = ni
if n1 < ni: then:
large = ni
print("Average:", avg)
print("Smallest:", small)
print("Largest:", large)
The pseudocode starts by getting inputs for the 5 valuesNext, the average of the 5 values is calculatedThe fourth line iterates through the numbersWithin the iteration, there are 2 conditional statements that calculate the smallest and the largest valuesThe last three lines print the average, the smallest and the largest inputRead more about pseudocodes at:
https://brainly.com/question/24735155