Questions: 1 362

Answers by our 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 & Filtering

Which of the following C# code lines is valid?
byte x = 2.0;
byte x = (2 + 3);
byte x = (byte)(2.0 + 3);
byte x = (byte)(10 - 11);
Write an XOR cipher program using the
C programming language.
the program must accept as input from the user a value between 0 and 255 to be used as the
secret key, the name of the input file and the name of the output file. No line in the input file
should contain more than 4096 characters.
After the user would have provided their secret key, the program should read and perform an
XOR cipher on the contents of the input file and write the result to the output file.
If the input file has already been encrypted and the identical secret key that was used to
perform the initial encryption is provided, then the contents of the output file should be
deciphered into its original plain text.
design and implement a billing management system application that handles financial transactions for a small bank.you should take into consideration defining customers. A withdrawal or deposit method can be performed to this account so we can also view an account statement with the last operation made based om date selected. the bank would also like to keep track of the total number of available customers, the most active customer (the one with height number of transactions), the total funds available and the total expenses (withdrawals)made.
ETECWorld is a medium company, which is involved in creating architectural
designs for building such as bridges, hospitals and education institutes. While
making the architectural designs the architects working in ETECWorld need to
calculate the area of different shapes such as rectangle, circle and squares. Till
now these architects have been calculating areas manually using calculator for
complex calculations. Manual calculation of different shapes is time consuming.
As a result the efficiency of the architects working in ETECWorld has decreased
considerable. How can ETECWorld solve this problem?

NB: Use your C# skills to design a solution to this problem
in c# write a method in a mathclass that accepts variable number of integers.method should find the sum of all integers parsed and display the result.write a client program to call the method with variable number of integers.
1)wap to make a array have 10 values and print its values.
2.WAP to print the array, calculate the length, rank of it.
3.WAP to print the Matrix and also print the sum of its elements.
4.W.A.P. to find biggest and smallest number in the matrix.
5.W.A.P. to print both diagonal of a matrix and also print the sum of diagonals.
6.wap to enter 10 employee name in 1-D a array. Condition is that If a name already exists then prompt a message -“Name already exist!!!”.Continue until all names are entered ,then display all the entered names.
7) WAP to find the sum of values of rows and columns of 2-d array.
8) WAP for two 5x5 matrices and their multiplication in another matrix.
A car rental company has two types of customers: Private and Commercial. Both accounts allow customers to rent cars for specified periods (start date plus no of days rental). Also, both types of customers would have a customer record with name and a customer number. Private customers can only pay by cash or credit card upfront, commercial customers will have an account against which rentals are booked. Also, commercial customers would name a driver (and there can be several rentals for the same period against their account with different drivers named).
You must develop a sensible class structure to capture these accounts and provide methods for their specific features (book, pay, send monthly bill, produce rental invoice).
Develop a console programme creating some accounts to test your operations.
Your application should display the following alternatives: Please type 1 for First Class and
Please type 2 for Economy. If the user types 1, your application should assign a seat in the first-class
section (seats 1–5). If the user types 2, your application should assign a seat in the economy section
(seats 6–10). Your application should then display a boarding pass indicating the person’s seat
number and whether it is in the first-class or economy section of the plane.
Use a one-dimensional array of primitive type boolean to represent the seating chart of the
plane. Initialize all the elements of the array to false to indicate that all the seats are empty. As
each seat is assigned, set the corresponding elements of the array to true to indicate that the seat is
no longer available.
Your application should never assign a seat that has already been assigned. When the economy
section is full, your application should ask the person if it is acceptable to be placed in the first-class
section
What exactly is the difference between methods and properties?
Write an object-oriented program in C# that takes a Pizza type and size as inputs. The program then should compute and print the price.

You will need the following for the program implementation.

1. A public class called Pizza with the following:

• A public attribute, of string type, called TypeofPizza. This attribute will hold four values (Vegetable, Margarita, Pepperoni, Napolitano).
• A public attribute, of char type, called SizeofPizza. This attribute will hold three values (S, M, and L), where S for Small, M for Medium, and L for Large.
• A method called CalculPrice to compute the price of the pizza, using the list prices below:

TypeofPizza
Size
Vegetable
Margarita
Pepperoni
Napolitano
Small
10 AED
10 AED
15 AED
15 AED
Medium
14 AED
14 AED
19 AED
19 AED
Large
18 AED
18 AED
23 AED
23 AED


2. A main( ) method in the client class with following tasks:

• Declare an object called MyPizza of type Pizza class.

• Print the following messages for the user:
o “Please select yourpizza:”
o “1. Pizza Margarita”
o “2. Pizza Pepperoni”
o “3. Pizza Napolitano”
o “4. Pizza Vegetable”

• Read the pizza correspondent number and save it in a suitable declared variable.

• Print a message the asks the user to enter the pizza size

• Read the pizza size and save it in a suitable declared variable.

• Compute the price of the entered pizza by calling the method CalculPrice.

• Print a message that contains the name, the size and the price of the pizza.
LATEST TUTORIALS
APPROVED BY CLIENTS