Design a program to accept a date in the format given below as an example and print the day number
for that particular year. Check whether the given date is valid or not by designing possible methods. Check
the above program for any valid date given by user. If the date is not valid give appropriate message.
example: Input: 20th AUGUST 2008.
Output: Day number: 233
#Java homework Problems!
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Q2) Money is an unit that has 2 parts, Rupees and Paise, where 100 Paise=1 Rupee.
Design a class named Money whose details are as follows:
Class Name : Money
Data member:
int rs, ps : integer to store the value of Rupees and paise.
Member methods:
Money(…..) : parameterized constructor to initialize member data
void fnShow() : to show the member data as Money [Rs 819.75]
Money fnAdd(Money m1, Money m2) :
Add m1 and m2. Store the result in corresponding member data and return it
Specify the class Money, giving the details of the above member data and methods. Also write the main()
to create objects and call the other methods accordingly to enable the task of the adding 2 units on
Money.
Q3) Write a program to take lower and upper range from the user and print all the binodd numbers within
that range. (A binodd number is a number whose binary equivalent have all the 1s present in the odd
position of the binary number considering from MSB to LSB) Example: 17 is a binodd number as its binary
equivalent is 10001 where 1s are in the position 1st and 5th position of the binary number which are odd
position of the number.
and now you expect us to do your homework?
no its not the case, i wanted to find these questions on chatGPT and google, i still cannot find it
ROFL
💀
maybe first read #welcome and #rules
we dont do your homework
we are here to help you when you get stuck or smth like that
blessed in everyway except doing basic hw
ehh that's ok then