main.c diy.h X < > +C Custom Input Output Test Cases 1. DIY Pattern(from codeChum, modified) int getNum(); 1. CE Run Tests /*accepts input from the user./ 3 by Catherine Arellano 4 Step right up and create the pattern! Whoever gets all patterns right will be crowned the new King of Patterns and gets to brag about it to their friends. Here are the instructions: you will be given 4 numbers; each number corresponds to the amount of times a symbol is repeated in the pattern. That's void display(int n1, int n2, int n3, int n4); /*displays the given pattern/ O Test Case 1 6. Input 1 pretty much it. Good luck! Symbols: n1 - # n2 - Your No Output n3 -/ Output n4-- Expected Output Implement the following functions: int getNum(); l*accepts input from the user."/ void display(int n1, int n2, int n3, int n4); /*displays the given pattern/ O Test Case 2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

#include <stdio.h>

main.c
diy.h
1. DIY Pattern(from
codeChum, modified)
1
#include<stdio.h>
2
#include"diy.h"
by Catherine Arellano
int main(void) {
getNum();
getNum();
getNum ();
getNum();
display(n1,n2, n3,n4);
3
4
int n1 =
Step right up and create the pattern! Whoever gets
all patterns right will be crowned the new King of
Patterns and gets to brag about it to their friends.
Here are the instructions: you will be given 4
int n2
int n3
7
int n4
8
numbers; each number corresponds to the amount
9
return 0;
of times a symbol is repeated in the pattern. That's
10
pretty much it. Good luck!
Symbols:
n1 = #
n2 = \
n3 = /
n4 = -
%3D
Implement the following functions:
int getNum();
*accepts input from the user.*/
void display(int n1, int n2, int n3, int n4);
/*displays the given pattern*/
Transcribed Image Text:main.c diy.h 1. DIY Pattern(from codeChum, modified) 1 #include<stdio.h> 2 #include"diy.h" by Catherine Arellano int main(void) { getNum(); getNum(); getNum (); getNum(); display(n1,n2, n3,n4); 3 4 int n1 = Step right up and create the pattern! Whoever gets all patterns right will be crowned the new King of Patterns and gets to brag about it to their friends. Here are the instructions: you will be given 4 int n2 int n3 7 int n4 8 numbers; each number corresponds to the amount 9 return 0; of times a symbol is repeated in the pattern. That's 10 pretty much it. Good luck! Symbols: n1 = # n2 = \ n3 = / n4 = - %3D Implement the following functions: int getNum(); *accepts input from the user.*/ void display(int n1, int n2, int n3, int n4); /*displays the given pattern*/
main.c
diy.h x
>
+ c
Custom Input
Output
Test Cases
Ex
1. DIY Pattern(from
codeChum, modified)
int getNum();
/*accepts input from the user.*/
2
CE Run Tests
by Catherine Arellano
3
4
Step right up and create the pattern! Whoever gets
all patterns right will be crowned the new King of
Patterns and gets to brag about it to their friends.
Here are the instructions: you will be given 4
void display(int n1, int n2, int n3, int n4);
/*displays the given pattern*/
O Test Case 1
Input
3
numbers; each number corresponds to the amount
2
of times a symbol is repeated in the pattern. That's
pretty much it. Good luck!
4
Symbols:
n1 = #
n2 = \
Your
No Output
n3 = /
Output
n4 = -
Expected
# # #
Output
Implement the following functions:
int getNum();
/*accepts input from the user.*/
void display(int n1, int n2, int n3, int n4);
O Test Case 2
/*displays the given pattern*/
Transcribed Image Text:main.c diy.h x > + c Custom Input Output Test Cases Ex 1. DIY Pattern(from codeChum, modified) int getNum(); /*accepts input from the user.*/ 2 CE Run Tests by Catherine Arellano 3 4 Step right up and create the pattern! Whoever gets all patterns right will be crowned the new King of Patterns and gets to brag about it to their friends. Here are the instructions: you will be given 4 void display(int n1, int n2, int n3, int n4); /*displays the given pattern*/ O Test Case 1 Input 3 numbers; each number corresponds to the amount 2 of times a symbol is repeated in the pattern. That's pretty much it. Good luck! 4 Symbols: n1 = # n2 = \ Your No Output n3 = / Output n4 = - Expected # # # Output Implement the following functions: int getNum(); /*accepts input from the user.*/ void display(int n1, int n2, int n3, int n4); O Test Case 2 /*displays the given pattern*/
Expert Solution
steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education