Adding Krusty Dogs to the menu

Report a typo

After preparing a large batch of Krabby Patties 🍔, SpongeBob 🧽 was thinking about ways to deal with all the meat leftovers. He had an idea and molded the leftover meat into a sausage, creating Krusty Dogs 🌭!

Since Krusty Dogs have become so popular, Mr. Krabs needs to add them to the Krusty Krab menu! Can you help Mr. Krabs add the Krusty Dog at a cost of 3.99 to the galleyGrub map?

Sample Input 1:

Sample Output 1:

map[Coral Bits 🍟:1.95 Krabby Pattie 🍔:2.49 Krusty Combo 🍔🥤🍟:3.99 Krusty Dog 🌭:3.99]
Write a program in Go
package main

import (
"fmt"
)

func main() {
// the galleyGrub map contains the Krusty Krab menu
galleyGrub := map[string]float64 {
"Krabby Pattie 🍔": 2.49,
"Krusty Combo 🍔🥤🍟": 3.99,
"Coral Bits 🍟": 1.95,
}

galleyGrub[?] = ? // add the Krusty Dog 🌭 at a cost of 3.99 here.

fmt.Println(galleyGrub)
}
___

Create a free account to access the full topic