C# Answers

Questions answered by Experts: 1 362

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

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



Calculate total stock value of the stock available in a furniture shop.

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

Calculate total stock value of the stock available in a furniture shop.

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

Calculate total stock value of the stock available in a furnitur

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
     -





An ATM allows users to perform basic financial transactions:

  1. View account balance
  2. Withdraw cash
  3. Deposit cheque

You need to identity the classes involed in this system and their relationship

Identifying the Classes

  1. An ATM machine interacts with the bank for performing bank operations.
  2. The machine identifies the bank based on the card number provided
  3. Once the bank is identified it should validate the card based on pin number provided
  4. If the pin is valid, ATM application should then provide options to:
  • Deposit Amount - through cheque
  • Withdraw Amount - based on balance available
  • Check Balance
  1. It should record the card number, the bank details, the date and time of transaction, the type of transaction (deposit/withdraw/balance-enquiry) and the status of transaction (success/failure)
  2. For each failed transaction, the further processing should stop and display appropriate message
  3. At a time, ATM accepts request for single transaction.
  4. Entire process repeats, for the next transaction

implement a C# method

TemperatureConverter(

double

tempInCelsius

)

which

accepts the temperature in Celsius as input parameter and returns the temperature in

Fahrenheit

as the output value.


Note:

T

(°F)

=

T

(°C)

× 1.8 + 32


Sample Input

Expected Output


tempInCelsius = 32

89.6




Create a C# Windows Forms application for Eduvos using Visual Studio. The application should be titled “Eduvos Registration App”. It must consist of the Eduvos Logo, which you can get from the internet (see Figure 1). The application must allow the user to enter their student registration details and store them. Your application must consist of a class for handling the student details. The student details you need to capture are the Student Number, Name, ID Number, Cell Number and the enrolled degree. The class must also consist of a constructor which initialises the public properties. The class must also contain a constructor which sets the properties to values received from the main form. The application should accept values from a user which will be typed into the textboxes. The application must look as follows:


Create an console application to book train tickets. Create a Passanger class with (Name, Age) and write a function called TicketBooking(no_of_tickets) that takes no.of tickets to be booked. If the no of tickets is > 2 per booking, raise an user defined exception, and print "cannot book more than 2 tickets". Else Print "Ticket Booked Successfully". Add a Test class to call TicketBooking method by accepting all required details.


LATEST TUTORIALS
APPROVED BY CLIENTS