Create a program called PIK-PAK-BOOM. The program prints the numbers from the specified start number to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program called PIK-PAK-BOOM. The program prints the numbers from the specified start number to the end number, printing n numbers per line. It shall print "Pik" in place of the numbers which are multiples of 3, "Pak" for multiples of 5, "Boom" for multiples of 7, "PikPak" for multiples of 3 and 5, "PikBoom" for multiples of 3 and 7, "PakBoom" for multiples of 5 and 7, and "PikPakBoom" for multiples of 3, 5 and 7. Also the program should display the result statistics. - start: int - end: int UML Diagram PikPakBoom - countPerLine: int -pikCount: int - pakCount: int - BoomCount: int - pikPakCount: int -pikBoomCount: int -pakBoomCount: int -pikPakBoomCount: int +setStart(start: int): void + getStart() : int + setEnd(end: int): void +getEnd(): int + setCountPerLine(countPerLine: int) : void + getCountPerLine(): int + displayResult(): void +printStats(): void PikPakBoom Result - Start: 11, End: 70, Count Per Line: 10 11 Pik 13 Boom PikBoom 22 23 Pik PikPak 16 Pak 17 Pik 19 Pak 26 Pik Boom 29 PikPak 31 32 Pik 34 PakBoom Pik 37 38 Pik Pak 41 PikBoom 43 44 PikPak 46 47 Pik Boom Pak Pik 52 53 Pik Pak Boom Pik 58 59 PikPak 61 62 PikBoom 64 Pak Pik 67 68 Pik PakBoom PikPakBoom Statistics Pik: 13 Pak: 6 Boom: 4 PikPak: 4 PikBoom: 3 PakBoom: 2 PikPakBoom: 0 Create a program called PIK-PAK-BOOM. The program prints the numbers from the specified start number to the end number, printing n numbers per line. It shall print "Pik" in place of the numbers which are multiples of 3, "Pak" for multiples of 5, "Boom" for multiples of 7, "PikPak" for multiples of 3 and 5, "PikBoom" for multiples of 3 and 7, "PakBoom" for multiples of 5 and 7, and "PikPakBoom" for multiples of 3, 5 and 7. Also the program should display the result statistics. - start: int - end: int UML Diagram PikPakBoom - countPerLine: int -pikCount: int - pakCount: int - BoomCount: int - pikPakCount: int -pikBoomCount: int -pakBoomCount: int -pikPakBoomCount: int +setStart(start: int): void + getStart() : int + setEnd(end: int): void +getEnd(): int + setCountPerLine(countPerLine: int) : void + getCountPerLine(): int + displayResult(): void +printStats(): void PikPakBoom Result - Start: 11, End: 70, Count Per Line: 10 11 Pik 13 Boom PikBoom 22 23 Pik PikPak 16 Pak 17 Pik 19 Pak 26 Pik Boom 29 PikPak 31 32 Pik 34 PakBoom Pik 37 38 Pik Pak 41 PikBoom 43 44 PikPak 46 47 Pik Boom Pak Pik 52 53 Pik Pak Boom Pik 58 59 PikPak 61 62 PikBoom 64 Pak Pik 67 68 Pik PakBoom PikPakBoom Statistics Pik: 13 Pak: 6 Boom: 4 PikPak: 4 PikBoom: 3 PakBoom: 2 PikPakBoom: 0 Create a program called PIK-PAK-BOOM. The program prints the numbers from the specified start number to the end number, printing n numbers per line. It shall print "Pik" in place of the numbers which are multiples of 3, "Pak" for multiples of 5, "Boom" for multiples of 7, "PikPak" for multiples of 3 and 5, "PikBoom" for multiples of 3 and 7, "PakBoom" for multiples of 5 and 7, and "PikPakBoom" for multiples of 3, 5 and 7. Also the program should display the result statistics. - start: int - end: int UML Diagram PikPakBoom - countPerLine: int -pikCount: int - pakCount: int - BoomCount: int - pikPakCount: int -pikBoomCount: int -pakBoomCount: int -pikPakBoomCount: int +setStart(start: int): void + getStart() : int + setEnd(end: int): void +getEnd(): int + setCountPerLine(countPerLine: int) : void + getCountPerLine(): int + displayResult(): void +printStats(): void PikPakBoom Result - Start: 11, End: 70, Count Per Line: 10 11 Pik 13 Boom PikBoom 22 23 Pik PikPak 16 Pak 17 Pik 19 Pak 26 Pik Boom 29 PikPak 31 32 Pik 34 PakBoom Pik 37 38 Pik Pak 41 PikBoom 43 44 PikPak 46 47 Pik Boom Pak Pik 52 53 Pik Pak Boom Pik 58 59 PikPak 61 62 PikBoom 64 Pak Pik 67 68 Pik PakBoom PikPakBoom Statistics Pik: 13 Pak: 6 Boom: 4 PikPak: 4 PikBoom: 3 PakBoom: 2 PikPakBoom: 0 Create a program called PIK-PAK-BOOM. The program prints the numbers from the specified start number to the end number, printing n numbers per line. It shall print "Pik" in place of the numbers which are multiples of 3, "Pak" for multiples of 5, "Boom" for multiples of 7, "PikPak" for multiples of 3 and 5, "PikBoom" for multiples of 3 and 7, "PakBoom" for multiples of 5 and 7, and "PikPakBoom" for multiples of 3, 5 and 7. Also the program should display the result statistics. - start: int - end: int UML Diagram PikPakBoom - countPerLine: int -pikCount: int - pakCount: int - BoomCount: int - pikPakCount: int -pikBoomCount: int -pakBoomCount: int -pikPakBoomCount: int +setStart(start: int): void + getStart() : int + setEnd(end: int): void +getEnd(): int + setCountPerLine(countPerLine: int) : void + getCountPerLine(): int + displayResult(): void +printStats(): void PikPakBoom Result - Start: 11, End: 70, Count Per Line: 10 11 Pik 13 Boom PikBoom 22 23 Pik PikPak 16 Pak 17 Pik 19 Pak 26 Pik Boom 29 PikPak 31 32 Pik 34 PakBoom Pik 37 38 Pik Pak 41 PikBoom 43 44 PikPak 46 47 Pik Boom Pak Pik 52 53 Pik Pak Boom Pik 58 59 PikPak 61 62 PikBoom 64 Pak Pik 67 68 Pik PakBoom PikPakBoom Statistics Pik: 13 Pak: 6 Boom: 4 PikPak: 4 PikBoom: 3 PakBoom: 2 PikPakBoom: 0
Expert Answer:
Answer rating: 100% (QA)
Based on the UML class diagram you provided heres a possible implementation for ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Create a program called Fraction Class is the definition for a Fraction object. Classes contain Attributes (the data) and Behaviors (the methods). The Fraction Attributes A fraction is an object that...
-
State whether the following statement are True or False An increase in the owner(s) equity, in the absence of any further investment by the owners is typically effected by sale transactions.
-
Farmer Brown Industries Inc. is in the business of producing organic foods for sale to restaurants and in local markets. The company uses IFRS and has a June 30 fiscal year end. As an experiment, the...
-
(a) Compare the fatigue limits for polystyrene (Figure) and the cast iron for which fatigue data are given in Problem 8.20. (b) Compare the fatigue strengths at 106 cycles for poly(ethylene...
-
Assume that Microsoft has no debt, a total market value of $2 trillion, and a marginal tax rate of 21%. If it permanently changes its leverage from no debt by taking on new debt in the amount of 13%...
-
A CPAs audit documentation (working papers) contains a narrative description of a segment of the Croyden Factory, Inc., payroll system and an accompanying flowchart as follows. Narrative The internal...
-
Two resultant forces 100kN and Q kN acting at a point at an angle 90 between them. If resultant force is 200kN, find value of Q. Also find angle made by resultant with 100kN force?
-
In your own words, what is employment law and why is it important to an individual and to a business?
-
Keystone Land Development Company (Keystone) claims Xerox Corporation (Xerox) breached two separate contracts: one to sell its Tukwila facility to Keystone and one to negotiate in good faith a...
-
A manufacturer has planned his level of operations at 50% of his plant capacity of 30,000 units. His expenses are estimated as follows, at 50% of the plant capacity utilization: The expected selling...
-
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DES1_DeckAndMenu { internal class Program { static void Main(string[]...
-
Product X takes 20 hours to process on Machine 99. It has a selling price of Rs. 100 and Marginal Cost of Rs. 60. Y (a component part used in production) could be made on Machine 99 in 3 hours for a...
-
x16 AVB Express as a fraction 9y17 C reduced in its lowest terms without any radicals in the denominator
-
John is single and does not itemize deductions. He has long-term capital gain of $60,000 from the sale of Apple Computer stock he purchased in 2005 for $40,000 and sold for $100,000. He has no other...
-
Explain why each of the following is either a private good or a public good: traffic lights, in line skates, a city park, a chicken salad sandwich, a tennis racket, national defense, a coastal...
-
Modify the Products form by changing the Buyer ID text box control to a combo box control, listing the choices of Buyer ID and Buyer Name from the Buyers table. Be sure to first remove the...
-
Create a new Allowance for Uncollectible Accounts Analysis a. Using the ch7-03 file to start your work, create a worksheet to do the following: i. Calculate uncollectible accounts expense and the...
-
How and why are wildcards used in a query?
-
Eliza Perry obtained registration to practice as an aesthetic nurse, and spent the month of July 2024 setting up her business E. Perry, Naturals. Eliza prepared a new statement of financial position...
-
Financial balances for the car hire business of Terry's Wedding Cars on 31 March 2024 are provided below in a table in accounting equation form similar to the chapter illustrations. During April, the...
-
Trans Clothing Alterations began operations on 1 August 2024 and completed the following transactions during the first month. 1. Tran deposited \($18\) 000 of her personal funds in a current account...
Study smarter with the SolutionInn App