writing a code in c

1. Write a code from last week lab

2. add to your code this as practice

a. The variable sum starts with the value 0.

Add 10 to sum.

Add 15 to sum.

Add 20 to sum.

Display the value of sum on the screen.

b. The variable x starts with the value 0.

The variable y starts with the value 5.

Add 1 to x.

Add 1 to y.

Add x and y, and store the result in y.

Display the value in y on the screen.

c. The variable j starts with the value 10.

The variable k starts with the value 2.

The variable l starts with the value 4.

Store the value of j times k in j.

Store the value of k times l in l.

Add j and l, and store the result in k.

Display the value in k on the screen.

d. The variable a starts with the value 1.

The variable b starts with the value 10.

The variable c starts with the value 100.

The variable x starts with the value 0.

Store the value of c times 3 in x.

Add the value of b times 6 to the value already in x.

Add the value of a times 5 to the value already in x.

Display the value in x on the screen.

Last Week lab which is this one:

Take a piece of paper and solve this Mathematically 1. Account Balance

Write high-level and detailed psuedocode for a program that calculates the current

balance in a bank account. The program must ask the user for

• The starting balance

• The total dollar amount of deposits made

• The total dollar amount of withdrawals made

Once the program calculates the current balance, it should be displayed on the screen.

2. Sales Tax

Write high-level and detailed psuedocode for a program that calculates the total of a

retail sale. The program should ask the user for

• The retail price of the item being purchased

• The sales tax rate

Once these items have been entered, the program should calculate and display

• The sales tax for the purchase

• The total of the sale

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.