Code Monkey home page Code Monkey logo

fileio's Introduction

Let's talk about File I/O! But first, enjoy this gif of a turtle making the best of a sticky situation.

screenshot

Description

Write a program that asks the user to enter information about a particular good or service (it could be an album, game, book, car, etc). Ask for at least five different attributes, like title, author, and genre. Save the information to a file as a JSON object. When the program runs again, it should read the file and print out the data, then give the user the option to update it.

Requirements

  • Prompt the user to answer at least five different questions about a good or service.
  • Save the information into a JSON object in a file.
  • When the program first boots, read the file and display the contents.
  • Give the user the ability to update the information and re-save it to the file.
  • If the JSON parsing fails, give a friendly error rather than crashing the program.

HARDMODE

  • Write a test for the save/load methods.

LUDICROUSMODE

  • Add the ability to have multiple goods and services (in quantity and type)

fileio's People

Contributors

justatouch09 avatar raynjamin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.