Topic: Basics of C++ Programming Language "ARRAY IN C++"
Codes discussed will be posted here. Write your conclusion on the File stream discussion.
Filename: Ch8_LineAndLetterCount.cpp
Code:
-->>https://drive.google.com/file/d/19IOda0jvDji8AdWCdi9WyaaAJnkhw5Q1/view?usp=sharing
*Note need proper codes and conclusion on how it's done and about the results. And please give the proper solution and explanation. This is about ARRAY
Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.
Note: Please place the proper conclusion and explanations and results of the codes which were given.
QUESTION 26
Which one of the following statements regarding updating of sequential files is FALSE?
1. If minor changes are needed the transaction file is not necessary.
2. The new master file always contains the most current updates.
3. The old master file is normally kept for referencing, even after the new master file has
successfully been created.
4. The error report file is necessary to take corrective action after errors occurred during an
update process.
QUESTION 27
Consider the following 4 files involved in updating a sequential file:
A. The old master file.
B. The new master file.
C. The transaction file.
D. The error report file.
Which of the following options regarding files A to D is TRUE?
1. File C contains a record of each successful write operation to file B.
2. File A is deleted as soon as file B is closed after the update.
3. File A can be updated directly, which makes file B unnecessary.
4. File D is updated with all errors that occur during the update process.
Topic: Basics of C++ Programming Language "ARRAY IN C++"
Codes discussed will be posted here. Write your conclusion on the File stream discussion.
Filename: Ch8_CodeDetection.cpp
Code:
-->>https://drive.google.com/file/d/1iH_fVlO2SY4LOh3wqqKorsaggZeqGXWC/view?usp=sharing
*Note need proper codes and conclusion on how it's done and about the results. And please give the proper solution and explanation.
Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.
Note: Please place the proper conclusion and explanations and results of the codes which were given.
Write a C program to store the information of vehicles. Use bit fields to store the status of information.
* The types of vehicles information are Two Wheeler=3, Four Wheeler=4, Petrol=0, Diesel=1, Old=5 and New=6
* The bit fields member variables are fuel, type and model
Consider the class declaration and main() function below. There are two errors in
the main() function. Name the errors and explain how to fix them, providing all the
code required to correct the errors.
class Game
{
public:
Game();
string getName();
int getLevel();
double getScore();
private:
string Name;
string Champion;
int Level
double Score;
};
int main()
{
Game sodoku, tetris[12];
.........(additional code)
double nScore = sodoku.Champion;
.........(additional code)
return 0;
cout << "The first tetris player is "
<< tetris.getName() << endl;
In online journal system, the user has to give detail information about their abstract of the manual script before upload of source document. The abstract submitted by the author should not more than 300 words. The journal system uses program to count the number of vowels, consonants, digits and symbols in a given paragraph. Write a C program to count the number of vowels, consonants, digits and symbols using pointers.
Runtime Input :
1=>see-programming.blogspot.com
Output :
No. of vowels: 8
No. of consonants: 17
No. of digits: 1
No. of symbols: 1
Others: 4
In the character class main method, implement code to demonstrate applying the above classes as follows: (a) Declare a Character reference variable and create one of your custom character objects to store in it (b) Create an Item object for use by the character (c) Simulate the character receiving and using the item by calling character class method.
Make UML diagrams for your character class and item class, including fields
WAP that defines a shape class with a constructor that gives value to width and height. The define two sub-classes triangle and rectangle, that calculate the area of the shape area (). In the main, define two variables a triangle and a rectangle and then call the area() function in this two varibles.
write a program to find out big number from 2 value using class and object
You are required to develop a Multiple Document Interface application for the following scenario:
An MDI consists of a main window with a menu bar, toolbar and central workspace widget. You are required to develop a basic tourism event management application for your community that displays information of events,venues and bookings(reservation).Dates and start times are required for the events.Venue capacity, address and contact detail of event manager must be recorded for each venue.Client information in terms of name, and contact details must also be managed by your program.Store all your data in text files.
Make use of at least of the following widget.
QMenubar
QFileDialog
Any widgets used to date that may be usefull