def input_both(self): from resources.strings import\ Tip__input_card__prompt as card_prompt,\ Tip__input_cash__prompt as cash_prompt from utility.user_input import User_Input self.card = User_Input(card_prompt).card_tip() self.cash = User_Input(cash_prompt).cash_tip() self.evaluate() return self
def input_distance(self): from resources.strings import Order__input_miles_traveled__prompt from utility.user_input import User_Input from utility.utility import add_newlines prompt = add_newlines(Order__input_miles_traveled__prompt) self.distance = User_Input(prompt).distance()
def input_average_speed(self): from resources.strings import Delivery__average_speed__prompt from utility.user_input import User_Input from utility.utility import add_newlines prompt = add_newlines(Delivery__average_speed__prompt) self.average_speed = User_Input(prompt).average_speed()
def input_total_hours(self): from resources.strings import Shift__total_hours__prompt from utility.user_input import User_Input from utility.utility import add_newlines prompt = add_newlines(Shift__total_hours__prompt) self.total_hours = User_Input(prompt).total_hours()
def input_fuel_economy(self): from resources.strings import Shift__fuel_economy__prompt from utility.user_input import User_Input from utility.utility import add_newlines prompt = add_newlines(Shift__fuel_economy__prompt) self.fuel_economy = User_Input(prompt).fuel_economy()
def input_reason(self): from resources.strings import Extra_Stop__reason__prompt from utility.user_input import User_Input from utility.utility import add_newlines prompt = add_newlines(Extra_Stop__reason__prompt) self.reason = User_Input(prompt).reason()
def input_unknown(self): from resources.strings import Tip__input_unknown__prompt as unknown_prompt from utility.user_input import User_Input self.unknown = User_Input(unknown_prompt).unknown_tip() self.evaluate() return self
def input_vehicle_compensation(self): from resources.strings import Shift__vehicle_compensation__prompt from utility.user_input import User_Input from utility.utility import add_newlines prompt = add_newlines(Shift__vehicle_compensation__prompt) confirm_text = ' vehicle compensation' self.vehicle_compensation = User_Input(prompt).money(confirm_text)
def input_extra_tips_claimed(self): from resources.strings import Shift__extra_tips_claimed__prompt from utility.user_input import User_Input from utility.utility import add_newlines prompt = add_newlines(Shift__extra_tips_claimed__prompt) confirm_text = ' extra claimed for taxes' self.extra_tips_claimed = User_Input(prompt).money(confirm_text)
def input_id(self): from resources.strings import Order__input_id__prompt from utility.user_input import User_Input from utility.utility import add_newlines self.id = User_Input(add_newlines(Order__input_id__prompt)).id()
def input_distance(self): from utility.user_input import User_Input from utility.utility import add_newlines # todo: need to write prompt for distance and put it in resoursces file prompt = add_newlines('enter miles traveled') self.distance = User_Input(prompt).distance()