Understanding about basic constructs of c# programming

Assignment Help C/C++ Programming
Reference no: EM132019111

Objectives

This assessment item relates to the unit learning outcomes as in the unit descriptors. This checks your understanding about basic constructs of C# programming.

Details & Problems

In this assignment, you are required to develop TWO C# Console Programs to demonstrate your ability to use C# constructs including input/output via command line, C# primitive and built-in C# types, C# defined Objects, selection and looping statements, methods and various other C# commands. Your program must produce the correct results.

Problem
Create a C# class named RandomGenerator.cs does following functions. You should ask from the user input for display either histogram or the frequency (Hint - Use Switch case or if else).

You can decide on how to create methods however, you should call and test the functions in the TestRandomGenerator.cs.

a. Declare an array of dimension 10 (index 0... 9).
b. Generate 50 Random integers in the range 0 ... 9.
c. Store the number of occurrences (count) in the array appropriately.
d. Print a table that would list the numbers and the number of occurrences.
e. Print an histogram for the above

What to Submit.

You should submit the source codes and a report. Source codes should be names as mentioned above.

> Following source codes you should publish.
- RandomGenerator.cs
- TestRandomGenerator.cs

> The report should contain following headings for each problem.
- Introduction for both the programs
- Flowcharts to depict each application logic
- The test cases
- Screenshots for sample inputs, outputs and errors.

Attachment:- Assignment.rar

Verified Expert

In this assignment, I have generated 50 random numbers within range from 0 to 9 using object of the ‘Random’ class and method ‘Next()’ and then printed the numbers using for loop. After that I stored the number of occurrences of the digits 0 to 9 in another array ‘b’. To find the number of occurrences i.e frequency, i have used the function ‘noc()’ . Lastly, I have created the histogram of the frequency of the digits 0 to 9.

Reference no: EM132019111

Questions Cloud

What is the stock expected price five years from today : VALUATION OF A CONSTANT GROWTH STOCK. what is the stock's expected price 5 years from today?
Describe the process that led to the consumers choice : Describe the process that led to the consumers' "choice" of the brand...cite commonalities of response to marketing strategies and tactics.
What is the value of maxwell mining stock : Maxwell Mining Company's ore reserves are being depleted, so its sales are falling. what is the value of Maxwell Mining's stock?
Is this an economically acceptable project to undertake : If the discount rate were 6 percent calculate the NPV of the project. Is this an economically acceptable project to undertake? Why or why not?
Understanding about basic constructs of c# programming : ITAP 1001 - Software Development Fundamentals - Victorian Institute of Technology - This checks your understanding about basic constructs of C# programming
Describe what is strategic management : What is strategic management and why is it critical to the success of an organization in meeting its goals and mission?
Why did the terry crews videos work for the adolescents : Why did the Terry Crews videos work for the adolescents? What specifically tied into the personality of their youth target?
How you would implement the goals conversions and funnels : Return to the Airbnb case study and website. Explain how you would implement the Goals Conversions and Funnels. This essay needs to be APA Format with intext.
Discuss about the key performance indicators : For this assignment you will compose an essay in response to the following directions: Explain how you plan on presenting your Key Performance Indicators.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a program that prompts a user for her name

A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time.

  What percentage of the time does the sum of the dots

Determine what percentage of the time does the sum of the dots on the two dice equal 8 in the simulation - Writing a program that generates an accurate output

  Develop console application to manage customers and accounts

SIT232 - OBJECT ORIENTED DEVELOPMENT PROJECT. You are required to develop a console application to manage customers and accounts using C#

  Define an exception class called power failure exception

Define an exception class called Power Failure Exception. The class should have a constructor with no parameters.

  Write an application that can hold five integers in an array

Write an application that can hold five integers in an array. Display the integers fromfirst to last, and then display the integers from last to first.

  Program to modify double linked list

Modify Double Linked List code to include following index based access operations.

  Identify each of the classes, associated data, and operation

Generate the pseudocode for each of the functions and subprograms to perform the processes on the objects

  Series of arithmetic problems

This program will ask the user to answer a series of arithmetic problems and report on how the user performs. You will write this program in phases as specified below. Make sure that each phase works correctly and uses good style before progressin..

  Prepare a program to show the fibonacci numbers

Write a C++ program to display first 20 Fibonacci numbers in descending order - Prepare a program to show the Fibonacci numbers

  Prepare a set of non-functional requirements

Prepare a set of non-functional requirements, including operational, performance security, and cultural and political for the fore mentioned scenario:

  Which is a question you ask of your database

Adding sample records to the table using both datasheets and forms, running queries, and producing reports to test the application occurs in which step of planning a database?

  Write the definition of the non parameterized constructor

Write the definition of the Non parameterized constructor (constructor1) so that the private member variables are initialized to 0. Write the definition of the parameterized constructor (constructor 2) so that the private member variable x is initial..

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