Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
2 modules that need simple object-oriented concepts.
I need the code .don't write together these two codes will be like p1.cpp , p2.cpp
just paste the code here you may also give screenshot
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 1 images
Knowledge Booster
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
- The is a container that can store a number of pictures at the same time.arrow_forwardReposting as I was getting the wrong answers!!! Java only and please read the description I have an unfinished java class, I need to write 4 methods there 1st step : create a file reader that reads the shape files supplied to you. Eachline of the shape file specifies a shape. The format of this line differs depending on the shape ( files supplied to me : ExampleShapes.txt, TwoRedCircles.txt, and ExampleShapesStill.txt) step 2 : I would start by trying to read a single line of the filefollowed by multiple lines, printing them to the screento ensure you are reading the data correctly. Then, cre-ate instances of the shape objects and print them out.You can do this by calling the toString() methodthat has already been given to you. step 3: If the file does not exist, quit the program grace-fully and output Could not find <filename>to the screen (standard out) with <filename> re-placed by the file that will not open. However, youcan assume that each line of the file has the…arrow_forwardWhat is a container object in GUI programming? A container is another name for an array or vector. A container is any class that is made up of other classes. A container is a primitive variable that contains the actual data. A container is an object like a Frame that has other GUI components placed inside of it.arrow_forward
- Picture card: Create a picture card that looks SIMILAR to this. There are images available in the "images" directory to assist you in making this card. They are not the same images, but there is an image of a desert and a person. Picture card In this screenshot, the title is "Title goes here", the secondary text is "Secondary text", and the body text is "Greyhound divisively hello coldly wonderfully marginally far upon excluding." The card's root element is a with a class of "card". The card is 344px wide. The desert picture is 194px tall. The padding between the body text and everything else is 16px. The color of the title text is #000. The color of the secondary and body texts is #232F34. The size of the person picture is 40px in diameter. The size of the body text is 11px. The size of the title is 22px. For the padding or margin around any other elements, use your best judgment to make it look like the screenshot.arrow_forwardcreate an image file programmatically. Your image file should be called OnTheFlyPy.ppm and the code you write to create should be in a public static void makePPM() method defined in the provided Main.java class. Your OnTheFlyPy.ppm should be be 100 pixels wide and 100 pixels tall and the PPM header lines should be correct. The first two rows and last two rows in the OnTheFlyPy.ppm should be red (Red=255, Green=0, Blue= 0). The first two columns and last two columns in the OnTheFlyPy.ppm (except for the part that overlaps with the red pixels you created in the previous part) should should be blue (Red=0, Green=0, Blue= 255). The remaining pixels in your OnTheFlyPy.ppm image should be white (Red=255, Green=255, Blue= 255). Here is a picture of what your final image should look like: import java.io.*; public class Main{ public static void main(String[] args) { makePPM(); } public static void makePPM() { } }arrow_forwardQ1.Write a GUI program to let the user enter a file name from an entry field and then count the number of occurrences of each letter in that file. Clicking the Show Result button displays the result in a text widget. You need to display a message in a message box if the file does not exist. Q2.Revise the preceding exercise to display a histogram for the result, as shown in the figure below. You need to display a message in a message box if the file does not exist. PYTHON ONLY!! Thank you! Also, could you add some explanations of your code please.arrow_forward
- Creating Enumerations In this section, you create two enumerations that hold colors and car model types. You will use them as field types in a Car class and write a demonstration program that shows how the enumerations are used. 1. Open a new file in your text editor, and type the following Color enumeration: enum Color {BLACK, BLUE, GREEN, RED, WHITE, YELLOW}; 2. Save the file as Color.java. 3. Open a new file in your text editor, and create the following Model enumeration: enum Model {SEDAN, CONVERTIBLE, MINIVAN}; 4. Save the file as Model.java. Next, open a new file in your text editor, and start to define a Car class that holds three fields: a year, a model, and a color. public class Car { private int year; private Model model; private Color color; 5. Add a constructor for the Car class that accepts parameters that hold the values for year, model, and color as follows: public Car(int yr, Model m, Color c) { year = yr; model = m; color = c; } 6. Add a display()…arrow_forwardCan you use it in a scanner so i can copy paste please. Part 1 A regular triangle is one for which all sides are congruent and all interior angles. Create a class RegularTriangle with a field side (int) Create a constructor which accepts an int parameter and will assign the parameter to field side Create assessor and mutator for this class Create a method getPerimeter() which should return 3*side; Part 2 in the constructor, add a logic that if the input parameter is less than 5 then set the side to 5, if it is >10 then set the side to 10, otherwise set the side to the input value. Screenshot final outputarrow_forwardplease be quickarrow_forward
- PerfectPaint, a program for creation and manipulation of images. So far, she has created an image with a red circle on a blue background. At 4:30 pm, she decides that she would like to use a different shape instead, and so needs to remove the circle. She plans to select the circle and then use the 'Cut' command, and she knows how to do this. At 4:32 pm, she selects the circle by clicking on it, and then selects 'Cut from the Edit menu, to cut away the circle. She looks at the resulting image and is satisfied to see that the circle has indeed gone. Indicate whether the statements below in connection with the instance described above are True or False. PerfectPaint ، برنامج لإنشاء ومعالجة الصور. حتى الآن ، أنشأت صورة بدائرة حمراء على خلفية زرقاء. في الساعة 4:30 مساءً ، قررت أنها ترغب في استخدام شكل مختلف بدلا من ذلك ، لذا تحتاج إلى إزالة الدائرة. تخطط لتحدید الدائرة ثم تستخدم أمر "قص" ، وهي تعرف كيفية القيام بذلك. في الساعة 4:32 مساءً ، اختارت الدائرة بالنقر فوقها ، ثم حددت "قص" من قائمة…arrow_forward5arrow_forwardVB create this program on visual basics or any other programming GUI langauge Create one object – Person, and code it. Create the menus shown in the demo program. The interface is a bit different from what you have done to this point. Play with the program to see how it works. The hungarian notation for a date control is dte. Commands The key commands of this program are: Add a Person Remove a Person Display next person Display previous person Display first person Display last person. Create the programming to make these components work. Refer to the power point notes for examples of how the code needs to be set up. Protecting Data against Accidental change Change the display to allow the user to enter data into text boxes, but protect the data from being accidentally changed by setting the ReadOnly property of the text boxes appropriately. This should be a sub. Call it as you need it. The Date has no ReadOnly property, use the Enabled property instead for this control. Use the enabled…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT