193k views
4 votes
Helppp !!! A hot dog d costs $1 more than one half the cost of a hamburger h. Write a function.

User Ulentini
by
8.5k points

2 Answers

6 votes

b: hamburger/ h: hotdog

B/2+1=h


User DenseCrab
by
7.5k points
4 votes

The function would be 1+(1/2)h=d

This is because 1 more means addition and then 1/2 of the cost of a hamburger.

User Aaswad Satpute
by
7.4k points