What do you need help with?
Answer:
day=int(input(“Enter today’s day numerically: ”))
if(day ==15 or day ==30):
print(“It’s payday!”)
if(day !=15 and day !=30):
print(“Sorry, not a payday.”)
Explanation:Good luck!
Answer:
Explanation:
The following code is written in Java and is a function/method that takes in an int array as a parameter. The type of array can be changed. The function then creates a counter and loops through each element in the array comparing each one, whenever one element is found to be a duplicate it increases the counter by 1 and moves on to the next element in the array. Finally, it prints out the number of duplicates.
public static int countDuplicate (int[] arr) {
int count = 0;
for(int i = 0; i < arr.length; i++) {
for(int j = i + 1; j < arr.length; j++) {
if(arr[i] == arr[j])
count++;
}
}
return count;
}
Answer:
Regulus is the most luminous. Regulus is the least luminous
Explanation:
- Transcribed image text: Of the three stars you've observed (HIP 87937, HIP 108870, and Tau Cet), which one is more luminous?
- View Available Hint(s) Tau Cet O HIP 87937 O HIP 108870
- They have the same luminosity.
To learn more about it, refer
to https://brainly.in/question/413163
#SPJ4