Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a C++ FUNCTION named getData()that prompts the user to enter results for a



number of students passed to it using the following data structure: (5 MARKS)



struct result



{



string name;



int matNum;



double mark;



};

Write a C++ program to find roots of a quadratic equation using Ternary conditional operator. 


Write a program in c++ to read the radius of a circles and prant its area

Create a class static demo with static member function for following function:


1)find factorial by recursive member function.


2)to check whether a number is prime or not






. Use (Switch case) command.



HINT: you have to set some drinks and set them some valid values that should not exceed



more then 1$ (Avoid Negative values)



Requirements:



Following are the requirements for the above discussed problem:



a. Vending Machine must keep track of the inventory



b. A person should be able to insert cash into the machine & choose an item



c. The Machine should confirm the inserted cash with the price of the selected item



d. The machine must display an error in case of insufficient cash or unavailable item



e. Finally, if all the above steps succeed then the user gets the selected item

Design an online address book to keep track of the names, addresses, and phone numbers.


1) Define class, address Type that can store a street address, city, state, and zip code.


2) Define a Class, person Type that can store an addressType object, name and phone number.


3) Make a list using personType data.


4) Provide a user with following options


i. Add a new person data in dictionary.


ii. Delete a person on the basis of name.


iii. Delete a person on the basis of phone number.


iv. Search a person on the basis of name.


v. Print a complete address book.


vi. Program terminates when user press -100.


Write a program that calculates and displays a person’s body mass index (BMI). The BMI


is often used to determine whether a person with sedentary lifestyle is overweight or


underweight for his or her height. A person’s BMI is calculated with the following formula:


BMI = weight * 703/height2


where weight is measured in pounds and height is measured in inches. The program


should display a message indicating whether the person has optimal weight, is


underweight, or is overweight. A sedentary person’s weight is considered to be optimal


if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is


considered to be underweight. If the BMI value is greater than 25, the person is


considered to be overweight. Use functions for this program. Implement those functions


in a separate header file.

An automobile travels at an average speed of 55 miles per hour for four hours. Draw a flowchart, write an algorithm and design a C++ program that computes and displays the distance driven, in miles that the car has travelled after 0.5, 1.0, 1.5 hours, and so on until the end of the trip.


A machine purchased for P28,000 is depreciated at a rate of P4,000 for seven years. Draw a flowchart, write an algorithm and design a C++ program that computes and displays in a suitably sized list box a depreciation table for seven years.



Draw a flowchart, write an algorithm and design a C++ program for an inventory system that will alert the user to reorder an item based on:

a.     The stock-on-hand or an order is below the reorder print.

b.     The item is not obsolete.

Use the selection structure.


LATEST TUTORIALS
APPROVED BY CLIENTS