Write a Java program to calculate a USB number, which is defined as n(3n-1)/2 for n = 1,2, ..., and so on.
The first few USB numbers, also known as terms, would therefore be 1, 5, 12, 22, ....
If n = 1 the USB number is 1, for example.
Your program will prompt the user for the number of terms of CSP numbers to calculate. There should be a maximum of 5 numbers displayed on one line.
If the user inputs a number less than 1, they should be asked to re-enter the number.
In addition the program will sum all of the USB terms the user requested terms, and display the result.
Sample Run: You may change the wording but the columns need to be formatted as shown.
Hello
I'm expert java developer with experience in object oriented, data structure, swing, javafx and more advanced concepts.
I can help you to finish this project with great quality.
Regards
Hello
My name is Ahmed, i'm a top rated freelancer.
i worked over 600 projects and over 1000 hours doing java projects.
plus i passed freelancer java v3 exam with score 3.75
plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 5+ years experience.
small overview of feedback on my profile
"you want to get your projects completed with quality? Hire Ahmed. Highly recommended."
"Thoroughly satisfied with Ahmed, and would recommend him to anyone looking for an excellent java developer!"
"Highly recommended. Very smart and well experience"
looking forward to work with you
Regards