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

There is an int variable that stores a certain amount of time in seconds. I need a function that converts seconds to days, hours, minutes and seconds and returns this as a string.
Write a function that will merge the contents of two sorted (ascending order)
arrays of type double values, storing the result in an array output parameter
(still in ascending order). The function should not assume that both its input
parameter arrays are the same length but can assume that one array does not
contain two copies of the same value. The result array should also contain no
duplicate values.
Hint: When one of the input arrays has been exhausted, do not forget to copy
the remaining data in the other array into the result array.
Test your function with cases in which (1) the first array is exhausted first, (2) the second array is exhausted first, and (3) the two arrays are exhausted at the same time (i.e., they end with the same value). Remember that the arrays input to this function
must already be sorted .
Task 5: Calculate number of days since the Independence Day


Write a function num_indep_days() which computes the number of days elapsed since 14th August 1947 to the date provided as input to the function. Remember that February of each leap year has 29 days! The function prototype is given below:


int num_indep_days(int day, int month, int year)
Create a class that imitates part of the functionality of the basic data type int. Call the

class Int (note different capitalization). The only data in this class is an int variable.

Include member functions to initialize an Int to 0, to initialize it to an int value, to display

it (it looks just like an int), and to add two Int values.

Write a program that exercises this class by creating one uninitialized and two initialized

Int values, adding the two initialized values
If we want to develop an app for bio institution, can we use desktop application, mobile application or both? Justify your answer with reasons.
A restaurant wants an application that calculates a table’s bill.
The application should let user enter the number of people in the party. If it is more than 6, it adds 15% tips to the total. Otherwise, let user enter the tips amount.
The application should display all the menu items in a ListBox (ComboBox). The ListBox (ComboBox) should Display the category of food offered by the restaurant separately (Beverage, Appetizer, Main Course and Dessert). The user can choose from one of the ListBox (ComboBox) to add an item to a table’s bill. As each item is selected, it adds the price of that item to the subtotal.
The program should include Subtotal, Tax, Tips, and Total fields in the GUI. Also, the user can click the “Clear Bill” Button to restore the Subtotal, Tax, Tips, and Total to $0.00.
The application should allow the user to modify the menu items in the database (update, delete and add).
Use the RestaurantMenu database
ou often need to do a “prime the read” for counter controlled loops which means that you would input a value before going into the body of the loop.


true or false
a function return the minimum distance between indices of an array that have adjacent values,the function should return -1 if the minimum distance is greater then 100,000,000. the function should return -2 if no adjacentindices exist
Write a program that accepts a number and outputs its equivalent in words.
Ex. Enter a number: 1380 Output: One Thousand Three Hundred Eighty
Note: The maximum input number is 3000

Solution 1: if / else if / else conditional statement
Solution 2: switch / case conditional statement
The primitive operation for adding the value of X to list L at position 1 is given as
A. Add(L,X, 1)
B. Add(X, 1,L)
C. Add(1,X,L)
D. Add(L,X) 1
LATEST TUTORIALS
APPROVED BY CLIENTS