Answer:
In Python:
txt = input("Date in MM/DD/YYYY format: ")
x = txt.split("/")
date=x[1]+"."
if(int(x[1])<10):
if not(x[1][0]=="0"):
date="0"+x[1]+"."
else:
date=x[1]+"."
if(int(x[0])<10):
if not(x[0][0]=="0"):
date+="0"+x[0]+"."+x[2]
else:
date+=x[0]+"."+x[2]
else:
date+=x[0]+"."+x[2]
print(date)
Explanation:
From the question, we understand that the input is in MM/DD/YYYY format and the output is in DD/MM/YYYY format/
The program explanation is as follows:
This prompts the user for date in MM/DD/YYYY format
txt = input("Date in MM/DD/YYYY format: ")
This splits the texts into units (MM, DD and YYYY)
x = txt.split("/")
This calculates the DD of the output
date=x[1]+"."
This checks if the DD is less than 10 (i..e 1 or 01 to 9 or 09)
if(int(x[1])<10):
If true, this checks if the first digit of DD is not 0.
if not(x[1][0]=="0"):
If true, the prefix 0 is added to DD
date="0"+x[1]+"."
else:
If otherwise, no 0 is added to DD
date=x[1]+"."
This checks if the MM is less than 10 (i..e 1 or 01 to 9 or 09)
if(int(x[0])<10):
If true, this checks if the first digit of MM is not 0.
if not(x[0][0]=="0"):
If true, the prefix 0 is added to MM and the full date is generated
date+="0"+x[0]+"."+x[2]
else:
If otherwise, no 0 is added to MM and the full date is generated
date+=x[0]+"."+x[2]
else:
If MM is greater than 10, no operation is carried out before the date is generated
date+=x[0]+"."+x[2]
This prints the new date
print(date)
who is the father of computer?
1.Charles Babbage 2.James Waat
Answer:
its 1 Charles babbage
Explanation:
shjdjdjdjdjdj
Answer:
Si Charles Babbage,
Explanation:
FRS ay isang Ingles na matematiko, pilosopo, imbentor, at inhinyerong mekanikal na nagpanimula ng konsepto ng isang naipoprogramang kompyuter. Nakatanghal ang mga bahagi ng kanyang hindi pa buong mga mekanismo sa Museo ng Agham sa London.
Have you ever tried using such a camera?
Answer: yeah i mean i use my canon camera
Explanation:
Write a function solution that, given an integer N, returns the maximum possible
value obtained by inserting one '5' digit inside the decimal representation of integer N.
Examples:
1. Given N = 268, the function should return 5268.
2. Given N = 670, the function should return 6750.
3. Given N = 0, the function should return 50.
4. Given N = -999, the function should return - 5999.
Assume that:
• N is an integer within the range (-8,000..8,000).
In your solution, focus on correctness. The performance of your solution will not be the
focus of the assessment.
Copyright 2009-2021 by Codility Limited. All Rights Reserved. Unauthorized copying, publication or
disclosure prohibited
You did not specified the language, so I did my program in python.
Hope it helps!!!
Cole has to edit and resize hundreds of photographs for a website. Which Adobe
software program would be the best choice to complete this task?
a.) Animate b.) Dreamweaver c.) Illustrator d.) Photoshop
A customer comes into a computer parts and service store. The customer is looking for a device to provide secure access to the central server room using a retinal scan. What device should the store owner recommend to accomplish the required task?
Answer:
The owner should recommend facial ID or retinal scanner
In comparison to other biometric methods like fingerprint or retinal scans, it is quicker and more practical. Comparing facial recognition to typing passwords or PINs, there are also fewer touchpoints. Multifactor authentication is supported for a second layer of security check.
What secure access to central server room, a retinal scan?The topic of facial recognition has always caused controversy. The technology, according to its proponents, is a useful tool for apprehending criminals and confirming our identities. Critics argue that it violates privacy, may be inaccurate and racially prejudiced, and may even lead to unjustified arrests.
Simpleness of use and implementation. Once put into practice, both approaches are simple to utilize. However, facial recognition is basically possible with any camera (although a higher quality camera will be more accurate). Iris scanning is impossible with a standard camera, and the technology can be very expensive.
Therefore, The owner should recommend facial ID or retinal scanner.
Learn more about scan here:
https://brainly.com/question/24319849
#SPJ2
the full meaning of ENIAC,ABACUS,EDVAC,EDSAC
and explain
Answer:
ENIAC: Electronic Numerical Integrator and Computer.
ABACUS: Abundant Beads, Addition and Calculation Utility System.
EDVAC: Electronic Discrete Variable Automatic Computer
EDSAC: Electronic Delay Storage Automatic Computer
2. It is the art of creating computer graphics or images in art, print media, video games.
ins, televisions programs and commercials.
You are given the following segment of code:Line 1: PROCEDURE printScorePairs()Line 2: {Line 3: count <-- 0Line 4: sum <-- 0Line 5: i <-- 1Line 6: scores <-- [73, 85, 100, 90, 64, 55]Line 7: REPEAT UNTIL ( i > LENGTH (scores) )Line 8: {Line 9: sum <-- scores[i] scores[i 1]Line 10: DISPLAY ( sum )Line 11: i <-- i 2Line 12: }Line 13: }The ABC company is thrifty when it comes to purchasing memory (also known as RAM) for its computers. Therefore, memory is of the utmost importance and all programming code needs to be optimized to use the least amount of memory possible. What modifications could be made to reduce the memory requirements without changing the overall functionality of the code?
Answer:
Move Line 10 to after line 12
Explanation:
Required: Modify the program
From the procedure above, the procedure prints the sum at each loop. Unless it is really necessary, or it is needed to test the program, it is not a good practice.
To optimize the program, simply remove the line at displays the sum (i.e. line 10) and place it at the end of the loop.
So, the end of the procedure looks like:
Line 10: i <-- i 2
Line 11: }
Line 12: DISPLAY ( sum )
Line 13:
what are the cleaning solutions used in cleaning gas stove, refrigerator and kitchen premises?
Answer:
Detergents. Soaps, liquid or paste. Solvent cleaners. Acid cleaners. Abrasive cleaners. Applying heat. Exposing to radiant energy. Chemical sanitizers. Natural cleaning materials.
Explanation:
8.15 lab*: Program: Playlist
Answer:
8.15 LAB* Program: Playlist You Will Be Building A Linked List. Make Sure To Keep Track Of Both The Head And Tail Nodes. (1) Create Three Files To Submit • PlaylistNode. h - Struct Definition And Related Function Declarations • PlaylistNode.
which among the following if absent, a computer is not complete.
A. mouse
B. DVD
C. user
D. projector
Answer:
user because all the other things the computer need
Define 'formatting'
Answer:
Formatting refers to the appearance or presentation of your essay.
Explanation:
Most essays contain at least four different kinds of text: headings, ordinary paragraphs, quotations and bibliographic references.
name 2 kitchen tools equipment or materials you are going to store or stack in the following drawers and cabinet 1.flat drawer 2.upper cabinet 3 . Small drawer near countertops 4.Lower cabinets 5.Lower cabinets under the sink
Answer:
silverware and dishwasher chemicles
Explanation:
What is computer science
Answer:
computer science is the study of computer and computing as well as theoretical and practical applications.
pls give me thanks ☺️☺️
. A digital computer has a memory unit with 24 bits per word. The instruction set consists of 150 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory.
a) How many bits are needed for the opcode?
b) How many bits are left for the address part of the instruction?
c) What is the maximum allowable size for memory?
d) What is the largest unsigned binary number that can be accommodated in one word of memory?
Explanation:
d answer
gzjxubejeiizbtozueg
Binary is a base-2 number system instead of the decimal (base-10) system we are familiar with. Write a recursive function PrintInBinary(int num) that prints the binary representation for a given integer. For example, calling PrintInBinary(5) would print 101. Your function may assume the integer parameter is non-negative. The recursive insight for this problem is to realize you can identify the least significant binary digit by using the modulus operator with value 2. For example, given the integer 35, mod by 2 tells you that the last binary digit must be 1 (i.e. this number is odd), and division by 2 gives you the remaining portion of the integer (17). What 's the right way to handle the remaining portion
Answer:
In C++:
int PrintInBinary(int num){
if (num == 0)
return 0;
else
return (num % 2 + 10 * PrintInBinary(num / 2));
}
Explanation:
This defines the PrintInBinary function
int PrintInBinary(int num){
This returns 0 is num is 0 or num has been reduced to 0
if (num == 0)
return 0;
If otherwise, see below for further explanation
else
return (num % 2 + 10 * PrintInBinary(num / 2));
}
----------------------------------------------------------------------------------------
num % 2 + 10 * PrintInBinary(num / 2)
The above can be split into:
num % 2 and + 10 * PrintInBinary(num / 2)
Assume num is 35.
num % 2 = 1
10 * PrintInBinary(num / 2) => 10 * PrintInBinary(17)
17 will be passed to the function (recursively).
This process will continue until num is 0
An equal-tangent sag equal tangent vertical curve is designed for 45 mi/h. The low point is 237 ft from the PVC at station 112 + 37 and the final offset at the PVT is 19.355 ft. If the PVC is at station 110 + 00, what is the elevation difference between the PVT and a point on the curve at station 111 + 00?
Answer:
vertical and I have a great day of school
identify similarities and differences of hibiscus leaves
Answer:
I'm sorry but I cant answer if it's only one product,it should be two..it's like different to what,or similar to what
How to write an algorithm to read and print a name?
I want the steps please
Answer:
Step 1: Obtain a description of the problem. This step is much more difficult than it appears. ...
Step 2: Analyze the problem. ...
Step 3: Develop a high-level algorithm. ...
Step 4: Refine the algorithm by adding more detail. ...
Step 5: Review the algorithm.
Explanation:
Select the correct answer.
The idea that different aspects of health influence each other is known as _____ .
A.
Holistic health
B.
Happy health
C.
Integral health
D.
Perfect health
Answer:
A. Holistic health
Explanation:
Holistic health refers to the method of caring the entire body. It includes physical, mental and emotional health of the individual. The overall health of an individual depends on the fitness of al these aspects of the body. The mind, body and the soul are considered to be interdependent and therefore the fitness of the body depends on the fitness of all of these parts.
Answer:
A
Explanation:
The definition of holistic is relating to the idea that things should be studied as a whole and not just as a sum of their parts. An example of holistic is health care that focuses on the health of the entire body and mind and not just parts of the body.
Explain the complement of a number along with the complements of the binary and decimal number systems.why is the complement method important for a computer system?
olha so olha la que bacana bonito
The complement method are the digital circuits, are the subtracting and the addition was the faster in the method. The binary system was the based on the bits are the computer language.
What is computer?
Computer is the name for the electrical device. In 1822, Charles Babbage created the first computer. The work of input, processing, and output was completed by the computer. Hardware and software both run on a computer. The information is input into the computer, which subsequently generates results.
The term “binary” refers to the smallest and minimum two-digit number stored on a computer device. The smallest binary codes are zero (0) and one (1). The use of storing numbers easily. The computer only understands the binary language. The binary is converted into the number system as a human language. The complement method are the digital circuits the addition and the subtracting was the easily.
As a result, the complement method is the digital circuits are the subtracting to the binary system was the based on the bits are the computer language.
Learn more about on computer, here:
https://brainly.com/question/21080395
#SPJ2
A Zookeeper wants you to create a program to keep track of all of the animals in the zoo and people working for him. You are given 4 files: Mammals.txt, Birds.txt, Reptiles.txt, and Personnel.txt. Your task is to create an array of structs for each file to hold the entries. The first line of each file will be a number indicating how many entries are in the file.
Answer:
I don't know you should figure that out good luck
Explanation:
good luck
When you
you can use the diverse knowledge sets of a team and share a workload.
O strategize
O quantify
discriminate
I
O collaborate
Answer:
Collaborate.
Explanation:
It was correct for me!
Answer:collaborate
Explanation:
cs edgen 100%
You are asked to write a program that prompts the user for the size of two integer arrays, user input for the size must not exceed 50, you must validate this. We will use these arrays to represent our sets. These arrays will be randomly populated in the range that is 1 through double the size of the array. So if the array is of size 20, you will randomly populate it with values in the range 1-40 inclusive.
Answer:
In Java:
import java.util.*;
public class MyClass{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Length of array 1: ");
int lent1 = input.nextInt();
while(lent1 <= 0 || lent1 > 50){
System.out.print("Length of array 1: ");
lent1 = input.nextInt();
}
int[] array1 = new int[lent1];
System.out.print("Length of array 2: ");
int lent2 = input.nextInt();
while(lent2 <= 0 || lent2 > 50){
System.out.print("Length of array 2: ");
lent2 = input.nextInt();
}
int[] array2 = new int[lent2];
for(int i =0;i<lent1;i++){
array1[i] = (int)(Math.random() * (lent1*2) + 1);
}
for(int i =0;i<lent2;i++){
array2[i] = (int)(Math.random() * (lent2*2) + 1);
}
System.out.print("Array 1: ");
for(int i =0;i<lent1;i++){
System.out.print(array1[i]+" ");
}
System.out.println("Array 2: ");
for(int i =0;i<lent2;i++){
System.out.print(array2[i]+" ");
}
}
}
Explanation:
This prompts the user for length of the first array
System.out.print("Length of array 1: ");
This declares and gets input for the length of the first array
int lent1 = input.nextInt();
This validates the length of first array
while(lent1 <= 0 || lent1 > 50){
System.out.print("Length of array 1: ");
lent1 = input.nextInt(); }
This declares the first array
int[] array1 = new int[lent1];
This prompts the user for length of the second array
System.out.print("Length of array 2: ");
This declares and gets input for the length of the second array
int lent2 = input.nextInt();
This validates the length of the second array
while(lent2 <= 0 || lent2 > 50){
System.out.print("Length of array 2: ");
lent2 = input.nextInt(); }
This declares the second array
int[] array2 = new int[lent2];
The following generates random integers between 1 and lent1*2 to array 1
for(int i =0;i<lent1;i++){
array1[i] = (int)(Math.random() * (lent1*2) + 1); }
The following generates random integers between 1 and lent2*2 to array 2
for(int i =0;i<lent2;i++){
array2[i] = (int)(Math.random() * (lent2*2) + 1); }
This prints the header Array 1
System.out.print("Array 1: ");
The following iteration prints the content of the first array
for(int i =0;i<lent1;i++){
System.out.print(array1[i]+" ");
}
This prints the header Array 2
System.out.println("Array 2: ");
The following iteration prints the content of the second array
for(int i =0;i<lent2;i++){
System.out.print(array2[i]+" ");
}
5. The operating system has two components
a. Software and Hardware
c. Shell and Kernel
b. Sof
d. File
What is Software Packages
[tex]{\fcolorbox{red}{black}{\white {Answer}}}[/tex]
A software package is an assemblage of files and information about those files. ... Each package includes an archive of files and information about the software, such as its name, the specific version and a description. A package management system (PMS), such as rpm or YUM, automates the installation process.
Write a python program that gets a number using keyboard input. If the number is positive, the program should call countdown
Answer:
def countdown():
print("This is countdown")
number = int(input("Enter number: "))
if (number > 0):
countdown()
Explanation:
This is literally what you asked, but what is the purpose?
1 #include
2 using namespace std;
3
4 int main() {
5 int userNum;
6 int userNumSquared;
7
8 cin >> userNum;
9
10 userNumSquared = userNum + userNum; // Bug here; fix it
11
12 cout << userNumSquared; // Output formatting issue |
13
14 return 0;
15 }
16
While the zyLab platform can be used without training, a bit of training may help some students avoid common issues.
The assignment is to get an integer from input, and output that integer squared, ending with newline. (Note: This assignment is configured to have students programming directly in the zyBook. Instructors may instead require students to upload a file). Below is a program that's been nearly completed for you.
Click "Run program". The output is wrong. Sometimes a program lacking input will produce wrong output (as in this case), or no output. Remember to always pre-enter needed input.
Type 2 in the input box, then click "Run program", and note the output is 4.
Type 3 in the input box instead, run, and note the output is 6.
When students are done developing their program, they can submit the program for automated grading.
Click the "Submit mode" tab
Click "Submit for grading".
The first test case failed (as did all test cases, but focus on the first test case first). The highlighted arrow symbol means an ending newline was expected but is missing from your program's output.
Matching output exactly, even whitespace, is often required. Change the program to output an ending newline.
Click on "Develop mode", and change the output statement to output a newline: cout << userNumSquared << endl;. Type 2 in the input box and run.
Click on "Submit mode", click "Submit for grading", and observe that now the first test case passes and 1 point was earned.
The last two test cases failed, due to a bug, yielding only 1 of 3 possible points. Fix that bug.
Click on "Develop mode", change the program to use * rather than +, and try running with input 2 (output is 4) and 3 (output is now 9, not 6 as before).
Click on "Submit mode" again, and click "Submit for grading". Observe that all test cases are passed, and you've earned 3 of 3 points.
Answer:
Change line 10 to:
userNumSquared = userNum * userNum;
Change line 11 to:
cout << userNumSquared<<endl;
Explanation:
Though the question is a bit lengthy but the requirements are not clearly stated. However, I'm able to pick up the following points.
Print the square of the inputted numberPrint the squared number with a new lineTo do this, we simply modify the affected lines which are lines 10 and 11.
The plus sign on line 10 will be modified to multiplication
i.e.
userNumSquared = userNum * userNum;
And line 11 will be modified to:
cout << userNumSquared<<endl;
Every other line of the program is okay and do not need to be modified
What is Open Source Software
Answer:
Open-source software is a type of computer software in which source code is released under a license in which the copyright holder grants users the rights to use, study, change, and distribute the software to anyone and for any purpose
Explanation:
What does the abbreviation JPEG stand for?
A. Japanese Photographic Examination Group
B. Joint Photo Examination Group
C. Joint Photographic Expert Group
D. Jefferson Photo Exclusive Group
E. Jacket Photo Extension Group
Answer:
c) giant photographic experts group
Answer:
C
Explanation:
(often seen with its file extension stands for
"Joint Photographic Experts Group",