Calculator for grades
i need help writing a program that asks the user to enter a students grades on four exams. The program should display the four grades and the average of the four grades, rounded to the nearest tenth. here is what i got so far
#include <iostream.h>
#include <iomanip.h>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
cout << setprecision(1)
<< setiosflags(ios::fixed)
<< setiosflags(ios::showpoint);
int N;
int z, y, x, w;
int ceil(sum);
float avg =(z + y + x + w) / 4;
// Input data
cout << "Enter your four (4), exam scores: ";
cin >> z >> y >> x >> w;
// Process data
sum = z + y + x + w;
avg = float(10) / N;
system("PAUSE");
return EXIT_SUCCESS;
just a side not its incomplete and i need help completing this program
thank you and god bless to the people that help me
Last edited by etereo (2010-03-01 01:16:51)
This sounds very much like a school assignment to me:
http://wiki.archlinux.org/index.php/For … e#Homework
Closing...
Similar Messages
-
Automatic calculation for batch characteristic
Conversion factor is a batch characteristic which is to be calculated based on the other batch characteristics values entered by the user at the time of confirmation.
I have maintained the objectdependency in the batch class (023). The dependency type maintained is "Procedure". The batch class is assigned to material master. The formula is as follows
$self.conversionfactor=((($self.actthickness-0.067)*$self.density)
($self.paintgsm$self.metalgsm))*$self.width/1000
The formula is appearing in 2 lines in the dependency editor. There is no syntax error. As well as the dependency status is also "released".
But at the time of confirmation, if the values of the other characteristics are entered, no calculation for the characteristic conversion factor is done by the system.
Can anybody please guide on this???
Regards,
Manishthanks a lot
-
I am going to buy a macbook pro for grade 12, and I need to know wheather I should get a macbook pro or a macbook pro retina. If someone could tell me (in a very simple way) which one is,better for me and why, I would be ever so apprreciative.
Why do you need a expensive MacBook Pro?
Your attending high school and unless everyone else is rich also your likely going to be a target by the more poorer students for theft or damage to the machine.
You could keep it home, but if you need it for class then your exposed again.
Also at that age your not very careful yet, a MacBook Pro is a expensive and easily damaged machine.
Unless your made of money and so are others at your school, I would recommned a low profile, just does the job cheap Windows PC.
If it dies, gets lost, stolen or damaged because of your inexperince handling senstivie electronics then it's no big deal.
You can buy a Mac later on when your sure you have a need for it, currently there isn't much advantage of owning a Mac compared to a PC, they do just about the same things now, one just looks prettier than the other.
Since 95% of the world uses Windows PC's your going to have to install Windows on the Mac in order to keep your skills up there or be unemployed, so it's a extra headache and expense.
good luck -
Interest calculation for vendors
Hello gurus,
In interest calculation for vendors, In interest on arrears calculation(vendors) t-code (obv9) Here wht we have to configure the steps, like Infirst step i had given,,
Account symbol Currency G/l Account
0002 inr 40009(interest)
Then second step wht i have to give for vendors,, if it is general ledger we will give 2000(g/l a/c paid).
My question is wht we have to give in second step......For Vendors...
Regards,
Assign Points.Hi,
vendors and customers interest is p type.and it is item interest calculation. The t.code f.2a, f.2b. Try with this.
If helpful assign points,
Rams -
BEx report -two different calculations for a result for one key figure how?
All,
Maybe someone could help me with the following, we have a requirement to setup for one key figure two calculations for result rows. One result (average) for one level, and on a higher level -grand total have a (sum), as for our business it makes sense to do it this way. We have setup average for this KF, we get correct results (see below values 7,5 & 6,5) however for the grand total (across multiple products) so for one level up we need to have a different calculation. How could we achieve this?
Here is an example:
location product inventory
AAAA 11111 5
AAAA 11111 5
AAAA 11111 10
AAAA 11111 10
AAAA Result 7,5 ---> average
AAAA 22222 5
AAAA 22222 6
AAAA 22222 7
AAAA 22222 8
AAAA Result 6,5 -
> average
AAAA Result (across products) 14 ---> here I want to have a sum of averagesThis could be achieve only IF you upload a hierarchy for product inventory with different levels, wherein each level show subtotals and finally grand total will be shown at the end of the results.
-
Hi Gurus,
I have a Requirement for calculating the cost for Subcontracting Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.
This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.
please suggest the user exit or Badi where i can change.
Please refer the below logic-
BOM for the material 2000500 as Header and 1LPL0835298AB as a component and this component has an assembly with 7008508 as a component and this component is an Sub contracted item and this has an assembly with component 1LBA182151-3.
Price calculation for the material 7008508 (Item Category as N). Since this is sub contracted item the price will picked from field EINE-NETPR.
In EINA, pass the material (MATNR=7008508) to fetch the list of info records (INFNR) created for that material.
Then it has to input those info records to EINE table along with Purchasing organization (EINE-EKORG=PT02).
From the output of EINE table, it should compare the price (EINE-NETPR) of the PIR and should take the least price from those PIR`s.
If the currency is other than PLN, then it should be converted to PLN based on conversion charges.
For Material (MATNR=1LBA182151-3), it should pass the material number to table MBEW along with valuation area (BWKEY = WERKS).
From the output, it should check the Price control (VPRSV) ‘V’ or ‘S’
If ‘V’ the price will be picked from the field “VERPR”
If ‘S’ the price will be picked from the field “STPRS”
Also from the output, it should check the Price unit (PEINH) ‘1’ or other than ‘1’. If it is other than ‘1’ it should divide the VERPR or STPRS by PEINH. Then this is the price of the Material “1LBA182151-3”.
The material (MATNR=1LBA182151-3) should be passed to table “MARA” and will take the Base unit of measure from that table “MEINS”.
Br,
SuryaHi Surya,
Please put breakpoints in any of the below BADI's and check if any of them will trigger for your
requirement:
VALUATION_CK BAdI for Valuation in Product Costing
CK_KALAMATCON2_CI BAdI for CI Fields for Table KALAMATCON2
COSTINGRUN_CK Edit Costing Run
COST_APPORTION_CK Maint Apportionment Structure Joint Production: Dist Rules
CO_PROD_COSTING_CK Cost Management for Joint Products (Costing, Target Costs)
DATA_EXTENSION_CK For Data Enrichment in Product Costing
DYNPRO_EXTENSION_CK BAdI for Interface Enhancement in Costing
ORDER_COSTING_CK Enables Header Data Changes in Preliminary Order Costing
QUANTITY_STRUCT_CK Enables Quantity/Structure Changes in Costing
SUR_STOCK_TRANSF_CK Overhead on Materials with Stock Transfer Between Plants
Thanks
Sri -
How to prevent BPC from automated calculating for hierarchies / nodes?
Hi experts,
I am looking for a practicable way to prevent the system from automated calculating for hierarchies, and especially for nodes within hierarchies?
Let's say, I have ENTITIES (AS A HIERACHY) in rows and ACCOUNTS in COLUMNS. Now I want the system to block adding up the values for one specific account on node XY. Instead of the sum of all base member entities, the cell for account XY should be left empty.
Is there a practicable way to deal with this?Hi Stefan,
you can prevent the system to calculate a node by editing the Formula Property in the Dimension.
You can insert 0 or null to the Formula field for the specific element.
But in this case the values from your leaf elements lying under your node wont be calculated even in higher hierarchy nodes.
For ex.: with the following structure
-A
---A1
A11
A12
---B1
B11
B12
If you set A1 to 0, the top node A will only be calculated by values of B1
Regards
Jörg -
The App Store indicates there is a Software Update that appears to include the HP Printer Software Update 3.0 and iTunes 12.0.1
Unfortunately, the software update fails to install. Instead, it just sits there 'Calculating' for days with no progression on the status bar of the overall update.
The update buttons of both the HP Printer Software Update 3.0 and iTunes 12.0.1 are both greyed out, with no progress bar.
Not sure of what the issue is, there is no warning or error dialog box that appears or any indication of an application that may be interfering with the install.
Any advice?
MacBook Pro (17-inch, Early 2011) 2.3 GHz Core i7, 4GB RAMThanks for the suggestion. I wanted to install the individual updates but because I had settings to automatically download and install updates, whenever I opened the App Store, the system would try to download and install, preventing me from canceling the update to execute each application update one at a time.
After changing the settings from automatically downloading and applying updates, followed by a restart. I was able to open the App Store and run each individual update.
Thanks again. -
Fixed 30 Days calculation for any month..Not working fine when Split Occurs
Hello Everybody,
I am stuck with an issue..which is creating problem when there is a split..in Normal Conditions it's working fine...Kindly help me out on the same.
We have to calculate the Salary on 30 Days fixed basis and not on calender days...
<b>eg For January Salary will be calculated based on 30 days and not on 31 days and for Feb also on 30 days not on 28/29 days.....</b> Every thing is working fine for normal payroll i.e without any splits..
<b>But if there are any splits in the month then calculation for 2nd split goes wrong ....</b>
Eg. person is hired on 02feb 2007 and he got re-org on 17 feb 2007 with basic as rs.10000
As per Clients requrement it should be calculated as :
for period 2nd Feb 2007 - 16th Feb 2007 : 10000 * 15/30 : Working Fine in SAP
for period 17th Feb 2007 - 28th Feb 2007 : 10000* 14/30 : Not Working Properly <b>In SAP calculation is done as 10000*12/30</b>
<b>We want it to calculate as 10000* 14/30</b>
Kindly let me know wat can be done :
1 How can i write PCR..if that needs to be change
2. If user exit then how shall i go about the same
if some body has any 3rd option let me know...
Regards,
Ketal ParikhHi ,
Solved the issue by writing rule.
Regards,
Ketal
Edited by: Sikindar on Jul 3, 2010 10:28 PM -
What determines the price and tax calculation for consignment stock?
Hi All,
anyone knows how the price and tax are calculated for consignment stock? in other word, among the info record , contract or material master, what determines the price and the tax calculation for consignment stock?
please advise, your input will be rewarded.
thanks,First preceeding is taken by contract and then info records of consginment
-
Depreciation calculation for Indian Tax Depreciation Area - Fixed Assets
Can any one of you kindly advice how to setup the Multi levels methods and Period controls for Tax Depreciation key in Indian Tax Depreciation area.
My Leading ledger Fiscal year: Jan u2013 Dec (Year dependend)
And Non-leading ledger (India) Fiscal year: April u2013 March (Year dependend)
I was able to post correct depreciation for leading and non-leading ledger Depreciation areas with a stated percentage. But the calculation of Tax depreciation area is incorrect.
As per client requirement, Tax depreciation area is setup only reporting purpose and no Depreciation posting.
Required Depreciation Calculation for Tax Depreciation Area:
For Acquires & Additions,
Rule1:
If it is >=180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation as stated percentage. Eg: 10%
Rule2:
If it is <180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation of 50% on stated percentage. Eg: Stated percentage is 10%, then it should be 5%.
Early responses will be appreciated.
Thanks much for the help.
Regards,
BapuHi JBC,
please search this Forum, I think basic questions about Indian tax depreciation have been asked dozen of times in this Forum here. You should find some answers in earlier threads.
Regards,
Markus -
Depreciation calculation for Indian Tax Depreciation Area
Can any one of you kindly advice how to setup the Multi levels methods and Period controls for Tax Depreciation key in Indian Tax Depreciation area.
My Leading ledger Fiscal year: Jan u2013 Dec (Year dependend)
And Non-leading ledger (India) Fiscal year: April u2013 March (Year dependend)
I was able to post correct depreciation for leading and non-leading ledger Depreciation areas with a stated percentage. But the calculation of Tax depreciation area is incorrect.
As per client requirement, Tax depreciation area is setup only reporting purpose and no Depreciation posting.
Required Depreciation Calculation for Tax Depreciation Area:
For Acquires & Additions,
Rule1:
If it is >=180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation as stated percentage. Eg: 10%
Rule2:
If it is <180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation of 50% on stated percentage. Eg: Stated percentage is 10%, then it should be 5%.
Early responses will be appreciated.
Thanks much for the help.
Regards,
JBCHi JBC,
please search this Forum, I think basic questions about Indian tax depreciation have been asked dozen of times in this Forum here. You should find some answers in earlier threads.
Regards,
Markus -
CONTRIBUTION MARGIN (PLAN) CALCULATION FOR PRODUCTS (PER UNIT, LOCATION WIS
Requirement of a Report to calculate Contribution Margin (Plan) - For Calculating Contribution Margin.
2 Key figures need to be arrived (per unit/cv of product, locationwise) are Net Sales Realisation (NSR) and Total Variable Cost (TVC).
a) To arrive at NSR (Plan), all the combinations of upcoming discounts and Free Goods schemes which are going to be in force for the coming month for a product, need to be adjusted in the Net Sales Value to get NSR value per unit of Product (SKU / CV), locationwise
The NSR is the result of adjusting Discounts, Excise and Schemes to the List price of a product.
b) TVC is the result of adding Total Material Cost(TMC) + [(LabourPower) conversion cost]Freight.
Calculation of material cost takes into account the LCC (Landed cost chart) price of the materials, which is a future price.
The Total variable Manufacturing Cost (TMC+Conversion cost) can be calculated using Costing Run (CK40N), using LCC price.
In COPA Reporting the values like List price, Discounts, Excise, Free Goods Schemes and freight flows from Billing Documents (SD) because of condition types mapping in to value fields in COPA, which are components for calculating NSR (Actual), based on the Actual sales.
We want to understand how do the Plan values (List price, Discounts, Excise, Free Goods Schemes and freight) per unit of Product, location wise, flow to the Value fields in COPA Planning, so that the Contribution Margin (Plan) can be calculated for each product per unit , location wise.
Contribution Margin = NSR u2013 Total Variable Cost.Then you hit a bug in your version of Oracle. You may want to investigate and update to a newer version. I get the following error when trying to register your schema in 10.2.0.1
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00246: invalid QNAME "***_voting_flag"
This error is consistent with Spy 2008 as well (I didn't try Xerces but I've got two that agree so it's good for me). -
What are the custimization steps to run interest calculations for customers
Hi,
I need a full custimization steps to configure the interest calculations for customers. i created interest indicators, g/l accounts and account determinations also. but no interest is calculating for customers and customers are having no of days to calculate the interest. So please guide me on this regard.Hi,
Configuring the Interest Calculations Procedure
This configuration allows you to charge interest on overdue customer accounts. Interest can be calculated by using the line items or overall account balances. SAP keep tracks of the date of the last interest run and stores it in the customer master record.
First create an Interest Indicator.
OB46 - Interest Settlement Calculation Type
Int Calc. Type
P - calculate interest based on line items.
S - calculate interest based on account balances.
Secornd, make it avaliable to the interest run program.
OB82 - Interest Terms
Third, determine the interest rate that will be used by the calculation.
OBAC - Define Reference Interest Rates
OB83 - Enter the Reference Interest Rates Value
Fourth, assign the interest indicator to the reference interest rate.
OB81 - Define Time Dependent Terms
Finally, determine the how and to which accounts the interest program will post.
OBV1 - Prepare Interest on Arrears Calculation
Please check out the following link also:
http://help.sap.com/saphelp_erp2004/helpdata/en/41/37b8e7455b11d182b40000e829fbfe/frameset.htm
Hope this helps.
Please assign points as a way to say thanks.
Regards, -
Service Tax Calculation for Condition Types
Dear Experts,
In an Import Purchase Order for Coal, along with the Basic Price of the Coal, the following Conditions are also entered, in the Condition Types maintained in the Import Pricing Schema
- Water front royalty
- Port Dues
- Berth Hire Charges
- Port terminal charges
- Surveyor charges
Each of these conditions may have a separate Vendor, hence the Purchase Order creator will select each condition and assign the required vendor.
Each of these conditions is subject to Service Tax, Educational Cess and Higher Secondary Educational Cess, the User want that separate service tax calculation be made available in the pricing schema for these individual conditions and the relevant vendor be assigned to these condition. the service tax on individual conditions be paid to the relevant vendor along with the basic value for the condition.
Separate Condition Types (15 nos.) for each of the above conditions for Service Tax, Educational Cess and Higher Secondary Educational Cess can be prepared and added in the pricing schema, the user will have to enter the percentages in the relevant conditions.
The user wants that the Service Tax be automatically calculated for these conditions, instead of manually entering the same. Please guide how can this be achieved.
Thanks in advance.
AJHi,
For this you have to maintain the all your charges in your pricing procedure along with each charge you have to maintain 3 condition types for service and chesses.
Ex:
step counter cond.type des. from to
1 1 P000 Gross Price
1 2 P001 Gross Price
25 0 JM00 Water front royalty 1
26 0 ser1 service 25
27 0 edu1 educationcess 26
28 0 edu2 se.edu.cess ; 26
29 0 jm01 Port Dues 1
30 0 ser1 service 29
31 0 edu1 educationcess 30
32 0 edu2 se.edu.cess 30
like this you have to built your pricing procedure in a m/08. after that for you want the service tax automatically so for that you have to put the accesses sequence in you service condition types (ser, edu1,edu2).in m/06.
After that you have to maintain info record for that material and import vendor. in me11 in that in condition tab you have to maintain percentage for ser, edu1, edu2 . the system will calculate the service charges automatically.
Thanking you,
Maybe you are looking for
-
All my USB external hard drives quit by themselves time by time, and couldn't cope files to them. "not ejected properly" warning came up all the time whenever I wanted to copy something to or from them, and you can't delete files from them either. Th
-
Health Plan Dependants -Benefits
Hi All, Health Plans are not allowing certain dependants to be selected. for example : for options Employee + Partner & Employee + Family we need to have Domestic Partner (13) added as an option I look in the table V_T74HR & configured the subtype f
-
How to do something in 10g that I did in 3.0.9?
I am proficient in 309, but skipped over Rel 2 and am now trying to work with 10g. I had an easy set of steps for making pages for different departments on our 309-based intranet: - made new content area for department - made folders under new conten
-
Material Configuration from Agreement
Hello Specialists, My Customer is using Materials with Configuration in Material Master as basic. He uses also Contracts (Agreements) for this material with Configuration but with different characteristic-Data. In Sales Order a Purchase Requisition i
-
Anyone please help me with it? no boot camp sign in Windows And i cant even acess openoffice T.T