Desperately need help with this one thank you and I'll rate you up after thanks : ) Please let me know if any clarification or additional information is needed. Compliance with the outlined project requirements is crucial.
In this question you should program something of your choice but if possible our professor said to make a program that store account number and balance thank you
Project:
Programming a project of your choice in C++.
Step 1- Program must implement a minimum of 3 classes (Ch 13).
Step 2 -You should make use of plenty of concepts (for example, arrays, looping, conditional statements, classes, pointers or references, type casting, etc).
Step 3 -Code must be commented, indented, spaced out and formatted nicely, with meaningful variable names, as we have seen in the labs.
Step 4 -Include a Makefile for compiling the code (text file).
Step 5 -You should include a readme.txt file with a short explanation of how to run the software.Include all the information that's in your mind about how to run the software in the readme file and also explain the program logic in it or put the instructions in a single line comments in your code
program:
#include<iostream>
#include<conio.h>
using namespace std;
class vehicle
/// base class
{
public:
int v_number;
char v_name[20];
float price;
};
class car:public vehicle ///derived
class
{
public:
int abag;
void get_data()
///get
data by user
{
cout<<"enter the number of vehicle"<<endl;
cin>>v_number;
cout<<"enter the name of vehicle"<<endl;
cin>>v_name;
cout<<"enter the price of vehicle"<<endl;
cin>>price;
cout<<"enter the number of air bag in
vehicle"<<endl;
cin>>abag;
}
void disp_data()
//for displaying the
data
{
cout<<v_number<<endl<<v_name<<endl<<price<<endl<<abag;
}
};
class bike:public vehicle /// derived
class
{
public:
int seat;
void get_data()
{
cout<<"enter the number of vehicle"<<endl;
cin>>v_number;
cout<<"enter the name of vehicle"<<endl;
cin>>v_name;
cout<<"enter the price of vehicle"<<endl;
cin>>price;
cout<<"enter the number of seat in
vehicle"<<endl;
cin>>seat;
}
void disp_data()
{
cout<<v_number<<endl<<v_name<<endl<<price<<endl<<seat;
}
};
int main()
{
int i,vnum; //variable
car c[3];
for(i=0;i<3;i++) //to get data by user
{
c[i].get_data();
}
car *ptr; //pointer to object
ptr=c;
for(i=0;i<3;i++) ///to display
the data of array
{
ptr->disp_data();
}
cout<<"\n enter the vehicle number to
search"<<endl;
cin>>vnum;
for(i=0;i<3;i++)
///for searching a
vehicle
{
if(vnum==c[i].v_number)
{
cout<<endl<<c[i].v_number<<endl<<c[i].v_name<<endl<<c[i].price<<endl<<c[i].abag<<endl;
}
}
}
Desperately need help with this one thank you and I'll rate you up after thanks :...
Desperately need help with this one thank you and I'll rate you up after thanks : ) Please let me know if any clarification or additional information is needed. Compliance with the outlined project requirements is crucial. In this question you should program something of your choice but if possible our professor said to make a program that store account number and balance thank you Project: Programming a project of your choice in C++. Step 1- Program must implement a...
Hello! I desperately need help with this project for my computer science class c++. Please let me know if any clarification or additional information is needed. Compliance with the outlined project requirements is crucial. Thank you!!! and I'll rate you up too thank you! 1) Program must implement a minimum of 3 classes (which we will learn about in Ch.13). 2) You should make use of plenty of the concepts that we have learned or are learning in class (for...
You need to implement a queue based on the doubly linked list. (In C++) **PLEASE follow the format** **Don't worry about the readme.txt** THANK YOU SO SO MUCH! You have to implement the doubly linked list in DList.h and DList.cpp and the queue in the LinkedQueue.h and LinkedQueue.cpp; all as template classes. You have to provide the main.cpp file as we discussed in class to allow the user to interact with your queue using enqueue, dequeue, front, back, size, empty,...
OUTPUT MUST MATCH THE IMAGE TO THE TEE. I have
the majority of the program written, just having issues with the
output. Please make sure to have the right alignment, variable data
types and number padding/decimals as shown below!
MUST BE IN C NOT C++/C#! Assume the Item Num is an int that must
be padded with zeros (ex: 1234 ---> 00001234)
Write a C program for a shopping list to run on ocelot. Use the listed items and...
Hi could you guys help me with this one! thank you and yes I'll rate you up! thank you Design a class Contact with the data and functionality for one made up contact person ( Don't use actual contact). As data it should store a name, email, and phone. The functions should include getter (accessor) and setter (modifier) functions for each of these data items. Write a small main function that initializes an array of size 10 with: 3 Contact...
Multi Part question for c++ and yes I'll rate you up thank youu! ^^ Part A: Define a struct for a Circle with a radius, circumference, area. Then define an array with 10 Circles. Input the radius for each circle from the user (and also set its circumference, area). Then output the area of the largest circle in the array. Part B : Write a function that takes as input a string from the user. Then it checks if the...
In this assignment, you will develop a C program to construct a red and black tree. For a given input sequence the tree is unique by using RB-INSERT on one number at a time. Below is an example: The input is a sequence of numbers separated by comma, e.g. 1,8,11,2, … You can enter the numbers using an input file and output the tree, or through a command line with one number at a time (with “X” to stop entering...
Hi could you guys help me with this one and yes I'll rate you up thank you! this is for c++ : ) Design a stack in C++ that in addition to push, pop, and top functions, also has a min function that returns the minimum element in the entire stack. The stack can contain the minimum element in the top. The purpose of having a min function is for runtime purposes, such that the minimum element can be retrieved...
3 Programming Question (45 points) 3.1 Instructions You need to write the code by yourself. Your implementation must use C/C++ and your code must run on the Linux machine general.asu.edu. Please refer to the programming guide (available under the Assignments folder on Blackboard) for using the general.asu.edu server, as well as compiling and running C/C++ code under Linux For this question, you need to provide a Makefile that compiles your program to an executable named a3 that runs on the...
Hi, anyone can help me? thank you so much
Step 7K: Create a Program Create a small program to turn on and off the conveyor utilizing buttons/tags on the HMI, not the hardwired switch Remember you SHOULD NEVER energize an "Input" data file bit, or use it as an internal relay. You will be utilizing your "binary" data file to create internal relays Use two buttons, 1 for start, 1 for stop Latching of the operation is required, but not...