Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ask the user for an account balance. Show, in descending order, all the accounts that have a balance greater than what the user input. Each

Ask the user for an account balance. Show, in descending order, all the accounts that have a balance greater than what the user input. Each entry is int, string, long, double, boolean (name length, name, credit card number, balance, cashback).

My required output is :

Enter a balance 9000ENTER Accounts with a balance of at least $9000.00 (sorted by balance) Name Account Number Balance Cash Back Brand Hallam 3573877643495486 9985.21 No Paco Verty 4508271490627227 9890.51 No Stanislaw Dhenin 4405942746261912 9869.27 No Eachelle Balderstone 30526110612015 9866.30 No Reube Worsnop 3551244602153760 9409.97 Yes Tiphanie Oland 5100172198301454 9315.15 No Jordan Rylstone 201715141501700 9135.90 Yes 7 results

------

Enter a balance 8000ENTER Accounts with a balance of at least $8000.00 (sorted by balance) Name Account Number Balance Cash Back Brand Hallam 3573877643495486 9985.21 No Paco Verty 4508271490627227 9890.51 No Stanislaw Dhenin 4405942746261912 9869.27 No Eachelle Balderstone 30526110612015 9866.30 No Reube Worsnop 3551244602153760 9409.97 Yes Tiphanie Oland 5100172198301454 9315.15 No Jordan Rylstone 201715141501700 9135.90 Yes Anjela Himsworth 3573904891259172 8985.27 Yes Howie Royson 3581572129932389 8965.07 Yes Blinni Mattke 3549214734886202 8960.76 No Dorotea Nolli 6396392530990977 8790.59 Yes Carita Savill 6767642427889745 8738.77 No Mateo Mollene 5100174906912671 8659.35 Yes Cathleen Schurcke 4041598930132416 8596.39 Yes Adriana Bru 3574931681854879 8482.46 Yes Orlando Nutbeem 6372756913380048 8346.07 No Leland Vasilyev 6394213548410265 8249.76 No Ambrosi Fussie 3581429661693202 8207.40 Yes Valentine Montford 3533184590527943 8176.80 Yes Sarette Springell 5100146117467372 8161.69 Yes Rich Yakovl 490337929898976334 8099.58 Yes Conney Sizeland 3588215263928408 8036.12 Yes 22 results

when I use my code I get :

Enter a balance 9000ENTER Accounts with a balance of at least $9000.00 (sorted by balance) Name Account Number Balance Cash Back Exception in thread "main" java.lang.NegativeArraySizeException: -1780324380 \tat AccountBalance.main(AccountBalance.java:28)

can someone help fix my coding in order to show the rest of the required output in bold

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago