Summary In this assignment, you will build a program using techniquesfrom previous CSS courses that

Stuck with a difficult assignment? No time to get your paper done? Feeling confused? If you’re looking for reliable and timely help for assignments, you’ve come to the right place. We promise 100% original, plagiarism-free papers custom-written for you. Yes, we write every assignment from scratch and it’s solely custom-made for you.

Order a Similar Paper Order a Different Paper

Summary In this assignment, you will build a program using techniquesfrom previous CSS courses that counts unique fractions. No newconstructs from our readings are expected, and as such, you cancomplete this program with just a handful of lines (10–20) of codein just one main function. You will need to use loops, ifs,comments, etc., (in other words, structuredprogramming) to complete this assignment and achieve theoutcomes listed below. Included below is a sample execution of yourprogram as well as a list of outcomes your program is to implement;you do not have to report the fractions in reduced form, though youmay choose to do so (you do, however, have to count all equivalentfractions, e.g., 12/6 and 6/3 are equivalent to each other and eachcontribute to the number of occurrences of the reduced uniquefraction 2/1). Introduction Your project is to read in a series of fractions from a textfile, which will have each line formatted as follows: “A/B”. Asample text file is listed below, and the purposeof your program is to read in each fraction and count the number ofoccurrences for the current fraction. When all the input isconsumed (or as the input is consumed), your program will print outits list of unique fraction and their corresponding count — see theoutput below (and you may assume no blank lines or misleadingcharacters. See the text file link for one of theactual inputs I’ll use when testing your submission; I may useother, similarly formatted input files. The code shoukd work forany number of lines (should work for 100,000 lines too) Sample Text Input 6/3 7/3 6/3 12/6 Sample Console Output 6/3 has a count of 3 7/3 has a count of 1 Try to keep in mind basic “structured programming” principlessuch as modular design (ie, decompose complex tasks into individualmethods), good variable & methods names (self-documentingcode), and comments. NB: By “unique fraction” I do not mean “unique stringvalue” but “unique rational number value.” Consider reading one line at a time (with scanner.nextLine()),and using the split (Links to an external site.) function (definedin class String) to give you an array with two elements in it (thenumerator and denominator, respectively). Your program should work with input files besides the samplegiven, even long files (e.g., 100,000 lines long). . . .

We’ve proficient writers who can handle both short and long papers, be they academic or non-academic papers, on topics ranging from soup to nuts (both literally and as the saying goes, if you know what we mean). We know how much you care about your grades and academic success. That's why we ensure the highest quality for your assignment. We're ready to help you even in the most critical situation. We're the perfect solution for all your writing needs.

Get a 15% discount on your order using the following coupon code SAVE15

Order a Similar Paper Order a Different Paper