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

  Criteria for adaptive approaches to system development

Let the criteria for choosing among adaptive approaches to system development. Which CSS project characteristics favor predictive approach? Which favor UP?

  Page translation table for virtual memory system

Design a page translation table to meets the requirements of virtual memory system.

  Structured and object-oriented designs

Structured and object-oriented designs are the two main contenders for programming methodologies relevant to the creation of documentation for application programs. The choice of methodologies will greatly affect how we approach the challenge and ..

  What are the modes

What are the modes, the conceptual models of transfer, the advantages, and the disadvantages of pass-by-value, pass-by-result, pass-by-value result, and pass-by-reference parameter-passing methods?

  Create a stored procedure

The procedure must insert the next of kin information into the Next of kin table by looking up the student id from the Student table. (will you need a schema? how do I send it to you?) can you use just the tables for the student and next of kin?

  Test pseudocode by creating test plans and desk checks

Write down pseudocode for main menu. Write pseudocode for options, only code to navigate menu is required. Sketch flowchart for a main menu.

  Write a c++ code that includes the following operations

Write a C++ code that includes the following operations: z=x * y z=z + 5.0 x, y, and z are floating point variables. A function (subroutine) named GetData should be declared to get data (x and y) from keyboard. The call by reference mechanism shou..

  In how many different ways can one plan such a tour

The price of a European tour includes four stopovers to be selected from among 10 cities. In how many different ways can one plan such a tour if the order of the stopover matters.

  Write program determines sales person total sales and salary

Write a program that determines for each sales person their total sales and their salary

  Structured and unstructured data

Structured and Unstructured Data

  Identify a recent moral dilemma or ethically questionable

Identify a recent moral dilemma or ethically questionable situation relating to ICT - use the Doing Ethics Technique (DET), ensuring you address each of the DET questions;

  Elements corresponding to the inorder sequence

Suppose that you are given two sequences of elements corresponding to the inorder sequence and the preorder sequence. Prove that it is possible to reconstruct a unique binary tree .

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