Create
a
program that will count and display the odd and even numbers among the
ten(10)
input
values
using a two
dimensional array.
Being a Purchase officer for Hyper Star, company has assigned a task to the new electronics head, to purchase some items cheaper than before. He purchased some items for the company on the reduced price that is 15% less than the given purchase price. [15% means (^ 15/100) or (*0.15)]
How much total amount Hyper Star spent for the purchase of all these items, according to the new purchase prices and keep it in mind you have to add the transportation cost charged by every supplier.
How much total amount Hyper Star has collected after the sale of all the items. What is the amount Hyper Star has made as profit?
You have to find out that after selling these items how much money they have made through this deal. For every item, you have to ask Hyper Star about the quantity of every item ordered. Every supplier charges 5000 rupees as the transportation cost for their one time delivery to Hyper Star. [Hyper Star has to at least order 3 of every item in the list]
Using the following chart
Sales
Commission
ratio
10%
15%
Less than 10000$
Greater than or equal
10000$ and less than
15000$
Greater than or equal 15000$
20%
Commission = sale * commission ratio
Sample Run:
enter the amount of your sales:
your commission is 1912.5
#include <iostream.h>
void main()
{
double temperature;
cout<<”Input Temperature :”;
cin>>temperature;
if (temperature>=80)
{cout<<”go swimming”;}
else if (temperature>=50)
{cout<<”go running”;}
else
{cout<<”stay inside”;}
}
Write a complete program that prompts the user for the radius of a sphere, calculates and prins the volume of that sphere. Use a function sphere volume that returs the results of the following expression: (4/3)*π*r3 which is equivalent to (4.0/3.0) *3.14159*pow(radius,3) in C++ code. Sample output Enter the length of the radius of your sphere: 2 volume of sphere with radius 2 is 33.5103
Write a c++ program that computes the product of two matrix ?
HINT; -Row of the frist matrix should be equal to column of the second matrix.
- It requires three nested loop.
- elements of both matrix should be accepted from keyboard.
Write a c++ program which sorts elements of array in both as increasing and decreasing order ?
HINT; - Size of array =10
- Data type = int
- Name of array = data
- Accept all input from user
Read this story and calculate/print the x total eggs collected between Monday and Wednesday:
Mang Jose’s chickens always lay eggsPerChicken eggs precisely at noon, which he collects that day.
• On Monday, Mang Jose has chickenCount chickens.
• On Tuesday morning, Mang Jose gains 1 chicken.
• On Wednesday morning, a wild beast eats half the chickens!
For Example:
• If Mang Jose starts with eggsPerChicken = 5 and chickenCount = 3, he must then collect a total of 45
eggs
• If Mang Jose starts with eggsPerChicken = 4 and chickenCount = 8, he must then collect a total of 84
eggs
Develop a C++ program that calculates how many eggs will Mang Jose collects based on user input.
You’ve been asked to write a small menu driven inventory management system for a small convenient store. Item ID – unsigned long Item name – string Item cost – float Quantity - int
Following are the list of administrative functionalities your application shall support:
1.Add new item to the inventory. This function will be used to add a single new item into the inventory management system.
2.Print all item information in the store - This function will be used to display all items in the inventory. When this option is selected system shall print Item ID, Item name, Item cost and quantity. 3.Find item by ID – This function will be used to search item using an ID. If item exist print item information. If not display an error indicating item not found.
4.Find item by name – This function will be used to search item using name. If item exist print item information. If not display an error indicating item not found.
Write a menu driven application in
C++.