two user defined functions to receive credit for this assignment.
Applications for mobile devices (Mobile Apps) are in great demand. You have been tasked to design an
algorithm and write a C++ program to help programmers track the sales of a Mobile App. The program
must prompt the user to input the following:
Name of mobile application
Price of a Full version download
Price of a Trial version download
Number of Full version downloads
Number of Trial version downloads
Tax Rate
The program will allow the user to calculate the total net earnings based on the price and number of
download purchases, and the tax rate. Use the following equations to calculate the total net earnings:
Gross earning total
= Price of a Full version * Number of Full version downloads
+ Price of a Trial version * Number of Trial version downloads
Tax deduction = Gross earning total * Tax Rate / 100
Total Net earnings = Gross earning total - Tax deduction
The program must output the results to the screen and to an output file named "
static member function
A class named “Teachers” holds information like teacher code, name, gender, year of joining. Write a program to create five hundred objects (Array of teacher objects) of teacher and enter some data into it through setters. Make getters and setters for all employee information. Then ask the user to enter current year. Display the names of those employees whose tenure is 10 or more than 10 years according to the given current year only using getters.
Write a C++ code to read a line of string as an input and do the following operations. Do proper input
validation to your input.
i) Capitalize first and last character of each word in the given string. [3 Marks]
ii) Delete a word from the given string. Popup a message if the string is empty. [5 Marks]
iii) Add a word in the middle of the given string. Capitalize the new word if it already exists. [5 Marks]
For proper input validation
Write a C++ code to read a line of string as an input and do the following operations. Do proper input validation to your input. i) Capitalize first and last character of each word in the given string. [3 Marks] ii) Delete a word from the given string. Popup a message if the string is empty. [5 Marks] iii) Add a word in the middle of the given string. Capitalize the new word if it already exists. [5 Marks] For proper input validation
Write a top-level program for creating a GRAPH instance and running both Prim’s and Kruskal’s algorithms on it, and printing out the respective MSTs returned, along with the total cost and runtime (in milliseconds) for each one. The input to this top-level program 1 should be an n × n cost matrix for a graph, n being the number of vertices (assume the diagonal elements will always be 0, and elements corresponding to unconnected vertices will be set to −1); this can be read in from a text file. A sample input file is provided at http://web.iitd.ac.in/~sumeet/input_graph.txt).
Find the three strings
b)from circular header lists from the one way lists using char[20]
Create a list of Employees(List can be as long as user wants) Program should save the
following information for each Employee: Name, Emp. No., Experience, Designation and
Salary. Now perform the following tasks:
a) Your program should save the information of only those employees whose experience is at least 2 years.
b) Display only those Employees whose Salary is greater than 50,000
c) Display the Employees alphabetically
Write a C++ program to create two pointers of integer type, now take values in these pointers and pass them to a function.Function will update both the values by adding “1” to them. Display the updated values in main.
Appearance of water