Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please give the algorithm and python source code for the following questions. De

ID: 3771254 • Letter: P

Question

Please give the algorithm and python source code for the following questions. Develop a program that will solve for the power dissipation of a resistor w hen the voltage across the resistor and the current in the resistor are known. The relationship for resistor power dissipation is the following erpiafion Where: Power of dissipated in watts. R " Resistor current in amps V - Resistor voltage in volts Write a program that will compute a 10% sales lav on a purchase. The user is to input the cost of the item. Compute the total sale amount at the cashier. Print the cost of the item and the total sale amount. C. Develop a program that will compute the total bill of a car sales. The user inputs are: The program must compute and print the follow ing for buyer purposes. Create a program where the user selects the name of a figure and the program presents the formula that is used for calculating its area. Use circle and parallelogram as the figure choices

Explanation / Answer

Answer (a)

Output :

The Power of Dissipated in watts 23 and 2 is 46

Code :

# This relationship for resistor power dissipation is the following quation
#P=R*V

# Store input numbers
R = input('Enter Resistor current in amps: ')
V = input('Enter Resistor Voltage in volts: ')

# R and V Multiply
P = float(R) * float(V)

# Display the Result
print('The Power of disipated in watts {0} and {1} is {2}'.format(R, V, P))

Answer (b)

Output :

Cost of Item is $ 667,Tax is $ 66.7 And Total Sales of Item $ 733.7

Code :

# Cost of Item
ci = input('Enter Cost of Item: ')


# Sales Tax
tax = float(ci)*float(0.1)
# Total Sales Amount
tsa=float(ci)+float(tax)
# Display the Result
print('Cost of Item is $ {0},Tax is $ {1} And Total Sales of Item $ {2} '.format(ci,tax,tsa))

Answer (c)

Code :

# Car Sales Program
sc = input('Enter Shipping Cost: ')
bc = input('Enter Base Price of Car: ')
df = input('Enter Destination Fee: ')
aa = input('Enter Accessories: ')
sc = input('Enter DMV Fees: ')
st = input('Enter Sales Tax: ')


# Total Cost
totalcost = float(sc)+float(bc)+float(df)+float(aa)+float(sc)+float(st)
# Total Cost less DMV Fees
tdmvf=float(totalcost)-float(sc)
#Total Cost less Sales TAx
tst=float(totalcost)-float(st)
# Display the Result
print('Total Cost $ {0},Total Cost Less DMV Fees $ {1} And Total Cost less Sales Tax $ {2} '.format(totalcost,tdmvf,tst))