Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns.
Write a code to accept the data, assign it in array, and print the data entered by the user.
1. Create an application named Numbers whose main() method holds two integer variables. Assign
values to the variables. Pass both variables to methods named sum () and difference(). Create the
methods sum() and difference(); they compute the sum of and difference between the values of two
arguments, respectively. Each method should perform the appropriate computation and display the
results. Save the application as Numbers.cs
Write a program that does the following for 15
students:
Reads in 3 marks for each student (you
need to ensure that only valid marks
between 0 and 100 are processed) – your
prompt message to the user should
indicate which number is being requested
(see example image of output)
Calculates and displays the highest mark
for each student.
Finds and displays the highest mark in the class.
(Note: The example output only shows data for 5
students, but your program must work for 15
students).
Write a program which requests a number between
1 and 50 from the user. It must repeatedly ask the
user for a number until a valid number is entered.
After receiving a valid number, the program must
display all the even numbers smaller than that number. (If the user enters 11, the numbers 2, 4, 6,
8, 10 must be displayed).
Write a program, using nested loops, to display the following:
7 6 5 4 3 2 1
7 6 5 4 3 2
7 6 5 4 3
7 6 5 4
7 6 5
7 6
7
Write a program, using nested loops, to display the following:
1
12
123
1234
12345
This program simulate the stock management of a Furniture Shop. This shop deals with only two type of Furnitures BookShelf and DiningTable only. The program should accept details any 5 furnitures(each can be either BookShelf or DiningTable), the program should show a menu that allow the user to select choice of Furniture. After accepting the required no of Furniture details program will show accepted details and TotalCost of Accepted Stock
This exercise contains a base class named Furniture to hold the common properties of all type of Furnitures, and BookShelf and DiningTable class as child class with additional properties relevant to child classes. Program class has below functions:
ddToStock(Furniture []) : int
+TotalStockValue(Furniture []) : double
+ShowStockDetails(Furniture []) : int
+Furniture : class
+ BookShelf : class
+ DiningTable : class
Create a program using C# that implements the stream ciphers Cryptographic method . A stream cipher method inputs digits, bits, or characters and encrypts the stream of data. The onetime pad is an example of a stream cipher.
In this formative you have been requested to create an application that will work as the One-time pad (OTP), also called Vernam-cipher or the perfect cipher. This is a crypto algorithm where plaintext is combined with a random key and generate a ciphertext
Our client is an equipment owner company . It needs a syatem to manage its eqyipment inventory .
Equipment has following details in common-
1.name
2. Description
3. Distance moved till date
4. Maintenace cost.
5. Type of Equipment use enum
Equipment should have the following functionality in common:
1. Moveby - this functionality......
This program simulate the stock management of a Furniture Shop. This shop deals with only two type of Furnitures BookShelf and DiningTable only. The program should accept details any 5 furnitures(each can be either BookShelf or DiningTable), the program should show a menu that allow the user to select choice of Furniture. After accepting the required no of Furniture details program will show accepted details and TotalCost of Accepted Stock
This exercise contains a base class named Furniture to hold the common properties of all type of Furnitures, and BookShelf and DiningTable class as child class with additional properties relevant to child classes. Program class has below functions:
+AddToStock(Furniture []) : int
+TotalStockValue(Furniture []) : double
+ShowStockDetails(Furniture []) : int
The program should also contain definitions for class types as suggested below:
+Furniture : class
+ BookShelf : class
+ DiningTable : class