How you can accomplish not deleting the file

Assignment Help Programming Languages
Reference no: EM131492138

Assignment

Your program should offer the following menu to the user:

1) Print Author name and ID
2) Enter integer value
3) Enter floating point value
4) Print stored values
5) Clear integers
6) Clear floating points
7) Save data
8) Load data
0) Exit

Where each option does the following:

1 Print your name and id
2 Prompts the user to enter an integer value, you then store this value in memory (program should handle up to 500 values)
3 Prompts the user to enter a floating point value, you then store this value in memory (program should handle up to 500 values)
4 Prints out all of the stored values (more on this later)
5) Clears stored integers
6) Clears stored floating point values
7) Saves the current stored values to a file (file name specified by the user)
8) Sets the current stored values to the data stored in a file (file name specified by user)

Also: your program should note that the application has started, and keep a running log of any errors (attempts to open files that fail and invalid selections chosen)

When a log entry is made you should print your student id, followed by an error message describing the problem.

These log entries should be saved to a file called "log.txt" and theh program should never cause the program to erase previous entries.

So if you open the program, make an invalid selection, close the program, open it again then your log should contain the following info:

program started
invalid selection
program started

How you can accomplish not deleting the file when you open it was not discussed in class, however, should be easy to figure out what to do using google

hint: the solution is very easy, if whatever solution you find takes more than 1 second to implement, it's probably not what you want.

Notes:

For option 4, you should print your data on two lines with the following prefix values:

"Integers: "
"Floating Points: "

For option 8, your program needs to be able to load files that your program generated with option 7, it does not need to be able to load files from other students.

Attachment:- Instruction.gz

Reference no: EM131492138

Questions Cloud

Determine the effect of adjusting entries on john bridger : Journalize the adjusting entries necessary on April 30, 2019. Determine the effect of the adjusting entries on John Bridger, Capital
What is the linux command to reboot : You suspect that someone has broken into a computer. Discuss the steps you might take to correct the problem.
Growth-income and preservation of capital : Discuss asset allocation strategies you could employee in each of the following situations. growth, income, preservation of capital
"directly-owned and owned in tax-advantaged plan investments : Explain the difference between "directly-owned" and "owned in a tax-advantaged plan" investments.
How you can accomplish not deleting the file : How you can accomplish not deleting the file when you open it was not discussed in class, however, should be easy to figure out what to do using google.
The same correlation to the market portfolio : Investments B and C both have the same standard deviation of 20% and have the same correlation to the market portfolio.
What are three hierarchical levels of an industrial network : Explain how the network requirements for industrial/manufacturing differ from those for commercial networks.
Which you could effectively engage the audience : Describe three ways in which you could effectively engage the audience in your chosen field through the use of PowerPoint 2013 presentations.
What is the dividend yield : What is the dividend yield?

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