Write a program that asks the user to answer some questions

Assignment Help Programming Languages
Reference no: EM13786461

Write a program that asks the user to answer some questions. First, you should ask the user if they want to load answers from a previously saved file. If they respond yes you should look for the file name of your choosing in the path of your choosing and try to load that. If no file was previously saved or they answered no, the user must answer 8 questions of your choosing. They can be simple (i.e. What is your favorite color?) or they can be difficult (i.e. When the zombie apocalypse comes would you sacrifice your friend for your own survival if need be?).

In your file you should save the questions and the answers on the same line so it will look like this:

What is your favorite color? Blue

How old are you? 25

By doing this we can read in an entire line and simply separate the question based on the location of the question mark, anything before it and including it is the question and anything after it is the answer.

If the user wants to load previous questions and the file exists you should print out the question on one line and the answer on another

Reference no: EM13786461

Questions Cloud

Minimize ethical concerns related to social activities : Travon is the lead counselor in a small clinic. Elliot has worked there for a few years and reports to Travon. Travon completes Elliot's yearly evaluation and oversees his work. Although Travon is the supervisor, Elliot is actually three years old..
How crimes are measured : How Crimes are Measured. Utilize FBI Uniform Crime Report data and select one offense, such as burglary, in two metropolitan areas
How does an editor differ from a peer reviewer : How does an editor differ from a peer reviewer? Use at least two points to support your response. Based on this information, explain whether your article for this week was peer reviewed?
Welfare programs and policies in the american human services : what would we do without them? Consider the effectiveness of policies for social security benefits, medical care, and food vouchers.
Write a program that asks the user to answer some questions : Write a program that asks the user to answer some questions. First, you should ask the user if they want to load answers from a previously saved file. If they respond yes you should look for the file name of your choosing in the path of your choos..
Review of the ebook electures and animated examples : Give us your review of the eBook, eLectures, and Animated Example Exercises. Tell us the pros and cons of these items
Demand for liquidity means demand : An investor willing to forgo FDIC insurance and unwilling to risk loss of principal could invest - Demand for liquidity means demand
Regard to equal employment opportunity : What is the role of each branch of the federal government with regard to equal employment opportunity? For each of the following situations, identify one or more constitutional amendments, laws, or executive orders that might be apply. For each situa..
Comparison of companies to adopt cloud computing : Comparison of companies to adopt cloud computing

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd