Write a program called CozaLozaWoza which prints the numbers from 1 to the upper bound entered by the user, 11 numbers per line. The program shall print "Coza" in place of the numbers which are multiples of 3, "Loza" for multiples of 5, "Woza" for multiples of 7, "Cozaloza" for multiples of 3 and 5, "CozaWoza" for multiples of 3 and 7, "CozaWoza" for multiples of 3 and 7. and "CozaLozaWoza" for multiples of 3, 5 and 7. The output should look like the sample given below:   Please enter the upper bound: 110 1 2 Coza 4 Loza Coza Woza 8 Coza Loza 11 Coza 13 Woza CozaLoza 16 17 Coza 19 Loza Cozawoza 22 23 Coza Loza 26 Coza Woza 29 Cozaloza 31 32 Coza 34 Lozawoza Coza 37 38 Coza Loza 41 Cozawoza 43 44 CozaLoza 46 47 Coza Woza Loza Coza 52 53 Coza Loza Woza Coza 58 59 Cozaloza 61 62 Cozawoza 64 Loza Coza 67 68 Coza Lozawoza 71 Coza 73 74 Cozaloza 76 Woza Coza 79 Loza Coza 82 83 Cozawoza Loza 86 Coza 88 89 Cozaloza Woza 92 Coza 94 Loza Coza 97 Woza Coza Loza 101 Coza 103 104 Cozalozawoza 106 107 Coza 109 Loza

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a program called CozaLozaWoza which prints the numbers from 1 to the upper bound entered by the user, 11 numbers per line. The program shall print "Coza" in place of the numbers which are multiples of 3, "Loza" for multiples of 5, "Woza" for multiples of 7, "Cozaloza" for multiples of 3 and 5, "CozaWoza" for multiples of 3 and 7, "CozaWoza" for multiples of 3 and 7. and "CozaLozaWoza" for multiples of 3, 5 and 7. The output should look like the sample given below:

 

Please enter the upper bound:

110 1 2 Coza 4 Loza Coza Woza 8 Coza Loza 11

Coza 13 Woza CozaLoza 16 17 Coza 19 Loza Cozawoza 22

23 Coza Loza 26 Coza Woza 29 Cozaloza 31 32 Coza

34 Lozawoza Coza 37 38 Coza Loza 41 Cozawoza 43 44

CozaLoza 46 47 Coza Woza Loza Coza 52 53 Coza Loza

Woza Coza 58 59 Cozaloza 61 62 Cozawoza 64 Loza Coza

67 68 Coza Lozawoza 71 Coza 73 74 Cozaloza 76 Woza

Coza 79 Loza Coza 82 83 Cozawoza Loza 86 Coza 88

89 Cozaloza Woza 92 Coza 94 Loza Coza 97 Woza Coza

Loza 101 Coza 103 104 Cozalozawoza 106 107 Coza 109 Loza

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY