Question: C#: 1. Write a pseudocode for the following problem that calculates the current balance in a bank account. Ask the user for: The starting balance

C#:

1. Write a pseudocode for the following problem that calculates the current balance in a bank account. Ask the user for:

The starting balance

The amount of deposit

The amount of withdrawals

Calculate and display the current balance.

Also, write the test cases you would use to test your code.

2. We like to write the pseudocode for a local bookstore that wishes to display a sales receipt. They only sell books. Identify the input, output and processing steps. Design the look and feel of the final sales receipt. What information should be displayed on the receipt, etc.?

3. What would display on the screen if the following set of instructions were actual programs?

The variable a starts with 0

The variable b starts with -2

Add 3 to a

Add -8 to b

Add a and b, and store the result in c

Display the value of c

Add 7 to a

Display the value of c

4. Write the pseudocode for the following problem. Prompt the user to enter the number of quarters, dimes, and nickels. Output the total value of coins in pennies.

5. Write the pseudocode for the following problem. Newtons law states the force, F, between two bodies of masses M1 and M2 is given by:

F = k (M1M2)/d2

K is the gravitational constant and d is the distance between the bodies. The value of k is approximately 6.67x10-8 cm2 /g2 . The program should input what it needs, calculate, and display the force between the bodies. What test cases would you use to test your code?

6. Write the pseudocode for the following problem. Ask the user for his or her name, gender, employee identification number, hours worked and pay rate. Calculate and display the total pay along with all of the users input information.

7. Write the C# program to display the following output:

Hello World

My Name is .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!