Java - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Java (761 Views)
| Java by Exmarshall(op): 12:18am On Nov 25, 2022 |
Please who can solve this
|
| Re: Java by simplesol: 1:59am On Nov 25, 2022*. Modified: 12:50pm On Sep 02, 2024 |
Exmarshall: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: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: 8:28am On Nov 25, 2022*. Modified: 1:26pm On Nov 25, 2022 |
Exmarshall: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:School says Java nau not Python ![]() |
| Re: Java by dauddy97(m): 2:56pm On Nov 25, 2022 |
qtguru: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: 5:02pm On Nov 25, 2022*. Modified: 5:28pm On Nov 25, 2022 |
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: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" || passwordCheck.contains("12345" || !passwordCheck.matches("^[a-zA-Z0-9]+$" ) {system.out.println ("Invalid password" ![]() } else { system.out.println ("Valid password" ![]() } } |
Let Learn Java Together • Come Here To Learn Java In Pidgin • I Saw This Nigerian Java/Python Instructor On UDEMY And It Made Me Happy • 2 • 3 • 4
Female Programmers • I Need A Tutor In Web Design And Other Related Programme In Lagos. • Abia State University (absu) Post Utme Result Is Out

|| passwordCheck.contains("12345"