Cash-back offer from 25th to 30th September 2022. Get flat 10% cash-back credited to your account for a minimum transaction of $50. Post Your Question Today!

Question DetailsNormal
$ 80.00

CSIS 209 Programming Assignment 1,2,3,4,5,6,7 and 8 solutions.

Question posted by
Online Tutor Profile
request

Programming Assignment 1 Instructions

Adapted from: Deitel & Deitel (2011). Visual C# 2010 How to Program (4th ed.). Pearson Education, Inc.

 

Write an application that asks the user to enter two integers and displays “The two numbers you entered  are:  “, followed by the two numbers on the screen. 

Next , determine the sum,  difference (result of first number minus the second number), product,  and quotient (result of first number divided by the second number), and modulus (remainder of the first number divided by the second number) and print these values to the screen.

Finally, determine the larger of the two integers, and print to the screen “The larger of the two numbers is:  “, followed by the larger integer.   If the two numbers are equal, print “The two numbers are equal.”

Use the example below to format your output.

*******************************************************************************

Programming Assignment 2 Instructions

Adapted from: Deitel & Deitel (2011). Visual C# 2010 How to Program (4th ed.). Pearson Education, Inc.

A large company pays its salespeople on a commission basis.  The salespeople receive $200 per week plus 9% of their gross sales for that week.  For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650.  You’ve been supplied with a list of the items sold by each salesperson.  The values of these items are as follows:

 

Item      Value

1                     239.99

2                     129.75

3                       99.95

4                     350.89

Develop a C# application that inputs one salesperson’s items sold for the last week, then calculates and displays that salesperson’s earnings.  There’s no limit to the number of items that can be sold by a salesperson.  You do not have to implement this with classes and objects.

 

Technical Requirements:

Prompt the user to enter the salesperson’s name, and store this name in a variable.

Prompt the user to enter an item number and a quantity sold of that item.  Store these two entries in two separate variables called “intItem” and “intQuantity”.

Using a DO-WHILE control structure, loop until the user enters -1 for the item number.

Calculate the amount of sales for an item and store the result in a variable called dblItemSales.

After the user enters an item number and a quantity, print to the screen:   the salesperson’s name “has sold “ [intQuantity] “of item # [intItem].

Accumulate the total sales in a variable called dblTotalSales by using a SWITCH statement to select the correct value to be multiplied by the quantity sold and adding this result to a running total, which is stored in the variable dblTotalSales.

If the user enters a number other than 1, 2, 3, or 4, display the message “Invalid Entry” and re-prompt the user to enter an Item Number.  Make sure you do not perform any calculations or prompt the user to enter a quantity if the item number is incorrect.

After accumulating the total sales for an employee (that is, after the user has entered a -1 to quit), print to the screen [Salesperson’s name] sold [number of items] of item # [ item number].

 

See below for examples of the required output.

*************************************************************************

Programming Assignment 3 Instructions

Adapted from: Deitel & Deitel (2011). Visual C# 2010 How to Program (4th ed.). Pearson Education, Inc.

Write a recursive method called Power(base, exponent) that, when called, returns  base exponent .

For example, Power ( 3, 4 ) = 3 * 3 * 3 * 3. 

Assume that exponent is an integer greater than or equal to 1.  The recursion step should use the relationship:

base exponent = base * base exponent – 1

The terminating condition occurs when exponent is equal to 1 because

base 1 = base

Incorporate this method into an application that enables the user to enter the base and exponent.

 

Requirements:

In the Main() method, declare three arrays of long data types:  baseNumbers, exponents, and results.  Each array should be created to hold exactly 5 members.

Using a FOR loop, populate the baseNumbers array with random integers between 1 and 50 and populate the exponents array with random integers between 1 and 10.  Use a random number generator to create these random numbers.

Using another FOR loop, call the Power method, passing it a member of the baseNumbers array and a member of the exponents array for each iteration of the loop.  Store the returned values in the results array.

The Power method should use the algorithm described above and MUST be recursive, taking two longs as arguments and returning a long data type.

Create another method called PrintArrays that takes as arguments the three arrays you created above and returns void.  The method should print a header as “Base”, “Exponent”, and “Result” with each word separated with a single tab character.  Using a FOR loop, iterate over each array using the GetUpperBound method to determine the condition for which the loop terminates.  For each iteration of the loop, print out the base, exponent, and result from each array under the appropriate column headings.  (Hint:  You may need to use one or more tabs to separate the data values to make them line up with the headers above.)

The Main() method should call the PrintArrays method, passing in the three arrays as arguments.

Your output should resemble the example below:

Available Answer
$ 80.00

[Solved] CSIS 209 Programming Assignment 1,2,3,4,5,6,7 and 8 solutions.

  • This Solution has been Purchased 4 time
  • Submitted On 17 Jun, 2018 02:59:30
Answer posted by
Online Tutor Profile
Other Similar Questions
User Profile
4.0St...

CSIS 209 Programming Assignment 1,2,3,4,5,6,7 and 8 solutions.

All Solutions Available. Use for training and for reference....

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35