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 pascal program cross-referencer which will produce

Write a Pascal program cross-referencer which will produce, for a given Pascal program, a list in alphabetical order, of all the identifiers used.

  Write a program to enter series of numbers

Write a program that ask the user to enter a series of numbers ending with -1. After the -1 is input, program should print how many numbers are even and how many numbers are odd.

  Implement a stack adt by writing a class called stack

Implement a stack ADT by writing a class called Stack. Use a static array to hold stack elements.  Instantiate the Stack class in the main function and provide a user loop and a menu so that all the Stack class member-functions, push, pop, etc.,

  Creates an object from the person class

Which of the following creates an object from the Person class?

  Write a script named lab6s2 that writes the current time

Write a script named lab6s2 that writes the current time and date, lists logged-in users, and prints the system's uptime to a log file. The time should be printed with the format of "03:55 am" as opposed to military time.

  Design a bigger and harder maze

E91: Humanoid Robotics - Spring 2013 - Assignment 1. Design a bigger and harder maze for the 2D and/or translation/rotation problems and see how it affects planning

  How much of the monthly payment is applied to the interest

The input parameters are a loan amount (floating point), an interest rate (floating point), and a number of months for payoff (integer). The function should return a string containing an HTML table.

  Create program which lists total points scored

Create program which lists total points scored for each of 30 classrooms. Include invalid input check if a proper room number is not entered.

  Research paper on repetition in visual basic

Write a 2 page research paper on Repetition in Visual Basic. Explain the concepts using at least one and list each resource used at the end of paper in the reference list section

  Recursive method to replace all occurrences of character

Write down the program which uses the recursive method to replace all occurrences of character with another character in given sentence.

  Create a contructor with default parameters

Create a class called Box which has private data members: length and width, both float area, found from length and width name which is a dynamic string constructor

  Why the exception should be handled by terminating program

Give an example of an exception that should cause a program to terminate. Explain why this exception should be handled by terminating the program.

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