(C PROGRAMMING ONLY!)
4. It's My Dog
by CodeChum Admin
My dog and my friend's look the almost exactly the same; the breed, the color, the size, they're all the same.
The only way to differentiate them is through their collars where their names are engraved.
Instructions:
In the code editor, you are provided with 2 struct objects: Dog and Collar. In the main(), a Dog and a Collar object is already created for you and in line 26, a call to the function displayDog() is made.
This displayDog() function has already been partially implemented. Your only task is to fill in the blank found on line 33. The displayDog() function should print the name of the Dog which has been set on its Collar.
Input
1. Name of the Dog
Output
Enter the name of the dog: Muffin
My dog's name is Muffin
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images
- C# programming question 3: I’m not sure how to do this question. Help of any input, output / comments would be appreciated.arrow_forwardWhat may happen if you hovered the mouse over an unstable section of code for a long time?arrow_forwardGraphics / Fonts on digits, characters etc. 1. Generate graphics of digits 0, 1, 2, 3, .., until 8, and 9. Write Java program that generates the 10 digits 0, 1, 2, 3, .., until 9 (a) Display it like stick fonts as displayed in LED such as follows: 0123 Note your design does not have to be similar to mine like above, but just make it look like sticks that probably use drawLine method in class Graphics (b) Display it using pixels like dot matrix printer or bitmap image such as follows (you may use some fillRect method in class Graphics) 0123 (c) Display Graphic or image fonts for English letters (5 is enough). Make fonts (either stick fonts like Q(a) or image "thick” font like Q(b)) for 5 (five) English letters of your choice, it can be upper case or lower case, like say ABCDE or abcde. It does not have to be ABCDE, it can be AEIOU; or if you like you can make fonts of Foreign languages like those in Spanish, German etc.arrow_forward
- Design a program that calculates the perimeter and area for differentshapes. This program will include 4 modules:1). Main module: for the user to select the shape2). Rectangle module: call this module to calculate the perimeter and area for arectangle, you need to ask about the width and length in this module3). Square module: call this module to calculate the perimeter and area for a square,you need to ask about the width in this module4). Circle module: call this module to calculate the perimeter and area for a circle, youneed to ask about the radius in this modulea) Submit pseudocodeb) Submit flowchartarrow_forwardPython GUI tkinter: Write a program where the GUI display is My favorite soda is Coca-Cola. Whe the user clicks on soda, they have these following options in a menu: beverage drink refresher When the user clicks on Coca-Cola, the following are listed as menu options: Pepsi Mountain Dew Once a selection is made, the entire sentence changes. For example, the user selects beverage and Pepsi: My favorite beverage is Pepsi.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY