1) method
2) class
3) property
4)constructor
5)method
6) c# keyword
7) constructor
8)method
9) mutator method
10) an accessor method
Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 namespace ConsoleApplication1 6...
I cannot figure out why my removeAll for var = 7 is not
working.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnorderedArrayListNamespace;
namespace Array
{
public class Program
{
public static void Main(string[] args)
{
UnorderedArrayList u = new UnorderedArrayList();
u.print();
int var = 5;
u.insert(ref var);
var = 12;
u.insert(ref var);
var = 2;
u.insert(ref var);
var = 29;
u.insert(ref var);
var = 7;
u.insert(ref var);
var = 33;
u.insert(ref var);
var = 49;
u.insert(ref var);
var...
==Modify the M8B by using C#== using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace M8B { class Magic8Ball { static void Main(string[] args) { string question; Console.WriteLine("I am the Magic 8-ball! Ask me a question and I will give you an answer."); Console.Write("Your question: "); question = Console.ReadLine(); Console.WriteLine("\nLet me part the mists of the time for you."); Random rnd = new Random(); int roll =...
C# Hey I am having trouble implementing additonal function to this assignment: Problem: Implement three IComparer classes on Employee - NameComparer, AgeComparer, and PayComparer - that allow Employees to be compared by the Name, Age, and Pay, respectively. Code: Employee.Core.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Employees { partial class Employee { // Field data. private string empName; private int empID; private float currPay; private int empAge; private string empSSN = ""; private string empBene...
C# Visual Studio
using System;
using System.Collections.Generic;
using System.Text;
1. Modify the program to output that line N times. That is, output a square of N lines each with N characters. Example output for parameters N=5 and S="*" should appear as follows: 多多本事事 串串串串串 事事事串串 事事事事事 2. Modify the DrawChars method so that the number of the line appears at that position within the line. That is, line i must have N-1 copies of S with the additional character in...
i need help fixing my code. here is the assignment: Make a class that contains the following functions: isLong, isDouble, stringToLong, and stringToDouble. Each receives a string and returns the appropriate type (bool, bool, long, and double).During the rest of the semester you will paste this class into your programs and will no longer use any of the "standard" c# functions to convert strings to numbers. here is my code. it works for the long method but not the double:...
4. class Person { 2} public void printValue(int i, int j) {/*…*/ } 3} public void printValue(int i){/*...*/ } 4} } 5) public class Teacher extends Person { 6} public void printValue() {/*...*/ } 7} public void printValue(int i) {/*...*/} 8} public static void main(String args[]){ 9} Person t = new Teacher(); 10} t.printValue(10); 11} } 12} } Which method will the statement on line 10 call? A. on line 2 B. on line 3 C. on line 6 D....
C# programming using System; public class Matrix { public int[,] elements; public Matrix(int[,] init) { elements = init; } public void Display() { for (int i=0;i<elements.GetLength(0);i++) { for (int j=0;j<elements.GetLength(1);j++) { Console.Write(elements[i,j]+" "); } Console.WriteLine(); } } } public class Program { public static void Main() { Matrix m = new Matrix(new int[,] {{3,4,5},{6,7,8},{9,0,0}}); m.Display(); } } In the method...
ASSIGNMENT #3 ** using System; namespace GradeCalculatorNew { class MainClass { public static void Main (string[] args) { int test1,test2,test3; double average,average2; char letterGrade; Console.WriteLine("Enter test score1"); test1=Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter test score2"); test2=Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter test score3"); test3=Convert.ToInt32(Console.ReadLine()); average=(test1+test2+test3)/3.0; average=(int)(average+0.5); ...
Fix the code using C# shown below to show the repitition as seen
on the example screenshot: (Invalid error must
repeat):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Program
{
class Program
{
static void Main(string[] args)
{
double num, count = 0;
double Tax = 0.00, ship = 5.00, sum = 0.00;
double grandtotal;
char line;
//Set run =true
bool run=true;
do
{
//read amount of item
Console.WriteLine("What is the amount of item : ");
//read in...
I need a java program that prints the following: 1* 2** 3*** 4**** 5***** 6****** 7******* 8******** 9********* This is what I have so far, but I cannot figure out how to fix it. public class HelloWorld{ public static void main(String []args){ System.out.println("Pattern Two"); for (int line=1; line<10; line++){ System.out.println(); for (int j=1; j System.out.print(line); for (int i=1; i System.out.print("*"); } } } } }