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 program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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