₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,020 members, 8,419,965 topics. Date: Thursday, 04 June 2026 at 08:26 AM

Toggle theme

Java - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingJava (761 Views)

1 Reply (Go Down)

Java by Exmarshall(op): 12:18am On Nov 25, 2022
Please who can solve this

Re: Java by simplesol:
Exmarshall:
Please who can solve this
I can . Chat me up:
Re: Java by Exmarshall(op): 7:41am On Nov 25, 2022
Ok boss
Re: Java by dauddy97(m): 8:15am On Nov 25, 2022
Exmarshall:
Please who can solve this
I'm not a Java user. But, this task can be completed using python.
If you are interested, check my signature for my contact.
Re: Java by Alphabyte1:
Exmarshall:
Please who can solve this
You can use else If or switch statements to test the conditions for the 3 discount rates .


Is it a console program or GUI program

https://www.decodeschool.com/Java-Programming/Branching-Statements/Java-Program-to-calculate-discount-of-5-for-purchase-above-5000
Re: Java by qtguru(m): 8:45am On Nov 25, 2022
dauddy97:
I'm not a Java user. But, this task can be completed using python.
If you are interested, check my signature for my contact.
School says Java nau not Python undecided
Re: Java by dauddy97(m): 2:56pm On Nov 25, 2022
qtguru:
School says Java nau not Python undecided
Alright, all the best bro
Re: Java by CyberHustle: 3:17pm On Nov 25, 2022
Looks tough to me. How will 100 level student code all these?
Re: Java by Alphabyte1:
Question 7 is regular expression regex for validation of password use HTML, CSS and JavaScript
Re: Java by Kvngfrosh(m): 5:33pm On Nov 25, 2022
Alphabyte1:
Question 7 is regular expression regex for validation of password use HTML, CSS and JavaScript
regex is an overkill.
Re: Java by Exmarshall(op): 6:33pm On Nov 25, 2022
As in ehn... The school wan kill person
Re: Java by Exmarshall(op): 6:35pm On Nov 25, 2022
Big man
Thanks . Na u try pas
Re: Java by Sleekcode: 7:07pm On Nov 25, 2022
Hmm.

It's basic for someone who knows Java.
Re: Java by nnoli90: 8:04am On Nov 30, 2022
I can solve it. Am a Java developer
Don't know if is already late.
Re: Java by nnoli90: 8:06am On Nov 30, 2022
U can Dm me
Re: Java by ladjenny: 6:56pm On Dec 01, 2022
Int unit_price = 25;
Int quantity = 110;

Int totalAmount = unit_price * quantity;


Or int totalAmount = 25 * 110;

Int discount = 10/100;

Int finalAns = totalAmount * discount;

System.out.println (finalAns);

Alternatively...

Int finalAns = (25*110) *(10/100);

System.out.println(finalAns);
Re: Java by ladjenny: 7:11pm On Dec 01, 2022
public void Password (String passwordCheck) {
If (passwordCheck.length() < 8 || passwordCheck.contains("password"wink || passwordCheck.contains("12345"wink || !passwordCheck.matches("^[a-zA-Z0-9]+$"wink ) {

system.out.println ("Invalid password"wink

} else {
system.out.println ("Valid password"wink
}

}
1 Reply

Let Learn Java TogetherCome Here To Learn Java In PidginI Saw This Nigerian Java/Python Instructor On UDEMY And It Made Me Happy234

Female ProgrammersI Need A Tutor In Web Design And Other Related Programme In Lagos.Abia State University (absu) Post Utme Result Is Out