Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program to display the numbers 1 to 14 next to one another (but with spaces in between), making use of a loop


Using visual studio (C#) to create a program, name it PRGYOURNAMEFA1, that implements a search and replace function recursively. Your program should allow a user to enter a string , a substring to be replaced in the entered string and a character/s to replace the found substring 

Program Structure

1. A main class that implements the logic of the program – name this class TestSearchReplace

2. Add a class named SearchReplace to the main class with two methods, including:

a. SearchSubstring()- return method

b. ReplaceSubString() - void method

The two method should be called using an object in the main class. DONT CREATE THE TWO METHODS IN THE MAIN CLASS

Create a Date class with integer data members for year, month, and day. Also, include a string data member for the name of the month. Include a method that returns the month name (as a string) as part of the date. Separate the day from the year with a comma in that method. Include appropriate methods. Create the To_String() method to display the date formatted with slashes () separating the month, day, and year. Create a second class that 

  instantiates and test the Date class. Make UML Diagram Also



Create a Date class with integer data members for year, month, and day. Also, include a string data member for the name of the month. Include a method that returns the month name (as a string) as part of the date. Separate the day from the year with a comma in that method. Include appropriate methods. Create the To_String() method to display the date formatted with slashes () separating the month, day, and year. Create a second class that 

    /instantiates and test the Date class. Make UML Diagram Also


Write a class marks with three data members to store three marks. Write three member functions, set_marks() to input marks, sum() to calculate and return the sum and avg() to calculate and return average marks.


Write a program to display the number 1 to 14 next to one another (but with spaces in between), make a use of a loop:


Modify the following program to check for reasonable inputs (or reject un-reasonable ones). For example, a negative GPA or test score, or a GPA of 10 or a test score of more than 100.


using System;


namespace Admit

{

  class Program

  {

    public static void Main(string[] args)

    {

      float avg;

      int score;

      Console.WriteLine("Grade point average: ");

      avg = float.Parse(Console.ReadLine(), System.Globalization.CultureInfo.InvariantCulture); //decimal mark is "."

      Console.WriteLine("Admission test score: ");

      score = int.Parse(Console.ReadLine());

      if ((avg >= 3) && (score >= 60) || (avg < 3) && (score >= 80))

        Console.Write("Accept");

      else

        Console.Write("Reject");

      Console.ReadKey(true);

    }

  }

}



Write an application for a furniture company; the program determines the price of a table. Ask

the user to choose one for pine, 2 for oak, or three for mahogany. The output is the name of the

wood chosen as well as the price of the table. Pine tables cost $100, oak tables cost $225, and

mahogany tables cost $310. If the user enters an invalid wood code, set the price to zero. Save

the file as Furniture.cs


Machine Problem 5.10

Write a program using one-­‐dimensional array that searches a number if it is found on

the list of the given 5 input numbers and locate its exact location in the list.

Sample input/output dialogue:


Enter a list of numbers: 5 4 8 2 6

Enter a number to be searched: 2 2 found in location 4


Machine Problem 5.9

Write a program using two-­‐dimensional arrays that computes the sum of data in rows and sum of data in columns of the 3x3 (three by three) array variable n[3[3].

Sample input/output dialogue:

5 9 8 = 22

3 8 2 = 13

4 3 9 = 16

-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐

12 20 19


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS