Create a console application

Assignment Help Basic Computer Science
Reference no: EM13298015

1. Create a console application.
2. Add a public class called compute_product.
3. In compute_product declare two private fields (class variables) named value1 and value2.
4. For field (class variable) value2 create a public property named Value2 and implement the get and set.
5. Add a constructor to assign a value to the value1 field by passing an integer value to the constructor when the constructor is instantiated in Main.
6. Add a method named public void display_product_calc() and use a Console.WriteLine to display the result of multiplying value1* Value2 to the console.
7. In Main declare a variable named myValue1 and assign the value 5 to it.
8. In Main instantiate a compute_product object named myproduct and pass myValue1 in the constructor parameter list.
9. In Main use the Value2 class property to set the value of class variable value2 to integer 10.
10. Call the compute_product class display_product_calc method from Main; the displayed result will be 5

Reference no: EM13298015

Questions Cloud

How much internal energy is produced as a result of the fall : The water passing over Victoria Falls, located along the Zambezi River on the border of Zimbabwe and Zambia, How much internal energy is produced per kg as a result of the fall
Disaster recovery planning models : In one page, please Compare and Contrast various Business Continuity & Disaster Recovery Planning models.
Reflection paper-instructor-led learning experience : What were you hoping to learn from the learning experience? What process or model do you think the instructor followed when planning the learning experience?
Explain one mole of an ideal gas is contained in a cylinder : One mole of an ideal gas is contained in a cylinder with a movable piston. The temperature is constant at 77°C. Weights are removed suddenly from the piston to give the following sequence of three pressures.
Create a console application : Create a console application
Calculate the required external financing that the firm need : Now, if increase in sales is projected to be 20%, and it is required to have $6,000 more to finance increase in sales, what will be the sustainable growth rate of this firm?
Find the speed of one spaceship relative to the other : An observer sees two spaceships moving in opposite directions, Find the speed of one spaceship relative to the other
Identify the communication protocols : Identify the communication protocols used in a large hospital organization.
What reinvestment rate assumptions are implicitly made : What reinvestment rate assumptions are implicitly made by the net present value and the internal rate of return methods? Which method is better?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Key principles on smart phone devices gps tracking system

How to apply these key principles on smart phone devices GPS tracking system/software to mitigate user personal information be exposed undesirably.

  Techniques in discovering requirements for a system

What are some of the techniques in discovering requirements for a system? Which ones work best? Which ones are the most economical?

  Explain security awareness and training document

Amy walked into her office cubicle and sat down. The entire episode with the blond man had taken well over two hours of her day. Based on this case study, what security awareness and training documents and posters had an impact in this event?

  Perform analysis and prove new bounds

For each of these sublists, the median is found. Further, the median of these medians is found and returned as the pivot. Perform the analysis and prove the new bounds.

  Design a scheme to prevent messages from being modified

Random J. Protocol-Designer has been told to design a scheme to prevent messages from being modified by an intruder.

  Determine the size of data register

If the computer in this exercise uses the same size word for data and instructions determine the size of each data register? What is the size of the instruction register.

  Scrum vs plan-based software development strategies

Scrum vs. Plan-Based Software Development Strategies

  Write a complete main method that would print your last name

Suppose your name was George Gershwin. Write a complete main method that would print your last name, followed by a comma, followed by a space and your first name. Question 2 Declare a variable named myMenu suitable for holding references to Menu o..

  Determine whether the relation r on the set

Determine whether the relation R on the set of integers Z is reflexive,symmetric,antisymmetricand /or transitive? which of these relations is equivalence relations?which of these relations is partial ordering?

  Professional interactive media developers

DIGIMAX Multimedia is a multimedia content development company would like to release various educational CD/DVD in the market. In this regards, the company wants to approach professional interactive media developers

  Design a module

Design a module, using pseudocode, named getNumber, which uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference paramter variable.

  What hit rate is required for the cache to produce a 50%

One option used to speed up disk drives is to add a cache that hold either recently accessed blocks, blocks waiting to be written to the disk, or that is used to "prefetch" blocks for a file. If the disk speed is approximately 3ms for a block and the..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd