Calculate the total expenses if quantity and price per item

Assignment Help C/C++ Programming
Reference no: EM13947953

1. Which of the following are invalid variable names and why?

Interestpaid
AVERAGE
123
FLOAT

2. Point out the errors, if any, in the following c statements

int = 314.562*150;
name = 'AJAY';
3.14*r*r = area;
area = 3.14*r**2;

3. Pick up the correct alternative for each of the following questions

A. C language has been developed by

1. Ken Thompson
2. Dennis Ritchie
3. Peter Norton
4. Martin Richards

B. C language has been developed at

1. Microsoft Corp.,USA
2. AT & T Bell Labs ,USA
3. Borland International , USA
4. IBM,USA

C. C language came in exixtence in the year

1. 1971
2. 1957
3. 1972
4. 1983 

D. Which statement is wrong

1. mes = 123.56;
2. con = 'T' * 'A';
3. this = 'T' * 20;
4. 3+a = b;

Write down the flowchart and a program.

1. While purchasing certain items, a discount of 10% is offered if the quantity purchased is more than 1000. If quantity and price per item are input through the keyboard. Calculate the total expenses.

2. Ramesh's basic salary is input through the keyboard . His dareness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Calculate his gross salary.

Reference no: EM13947953

Questions Cloud

Differentiate between oscillation and damp cobweb model : Differentiate between oscillation and damp cobweb model
Calculate the diffusion coefficient : 1. The activation energy for the diffusion of cop- per in silver is 193,000 J/mol. Calculate the diffusion coefficient  at  1200  K  (927°C),  given that D at 1000 K (727°C) is 1.0 X 10-14  m2/s.
How far do you have to go to come into contact with poverty : If there actually is no hidden poverty in your community, how wide do you have to cast your net to encounter poverty? Outside the city limits? Outside your county? Further? How far do you have to go to come into contact with poverty
A foreign government enters into a contract with a us : A foreign government enters into a contract with a US company to provide computer equipment and services for the intelligence arm of its military forces. After the equipment has been supplied, the foreign government refuses to pay. The US company fil..
Calculate the total expenses if quantity and price per item : While purchasing certain items, a discount of 10% is offered if the quantity purchased is more than 1000. If quantity and price per item are input through the keyboard. Calculate the total expenses. Ramesh's basic salary is input through the keyboard..
How foreign persons are taxed on income generated in u.s. : Examine at least three categories of U.S. sourced income that will generate U.S. taxes for your client - Analyze the source rules reach of the U.S. Tax Code in regard to international taxation.
A two-year incontestable clause : Martin and Williams, two business partners, agreed that each would insure his life for the benefit of the other. On his application for insurance, Martin stated that he had never had any heart trouble when in fact he had had a mild heart attack some ..
Driving force for steady-state : What is the driving force for steady-state known that  the concentration of nitrogen in the steel at the high-pressure surface is 2 kg/m3. How far into the sheet from this high pressure side will the concentration be 0.5 kg/m3? Assume a linear con..
Add a title to the grade chart. : Go to the bottom of your spreadsheet, and select Sheet 2. Click on a cell within that sheet.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Computes the average of five exam scores

Write a program that calculates and prints the take-home pay for a commissioned sales employee and write a program that computes the average of five exam scores.

  Write a program to find the max value

Write a program to find the max value in an unsigned char array[100].

  Create a base employee class and a derived studentemployee

create a base employee class and a derived studentemployee class. below is the basic uml structure of both

  The staffs need a program that can determine

The staffs need a program that can determine whether children have been naughty or nice. individual data files(can be any name) for each childred are available that consist of 368(365+3)integer number each.

  Snoopy cache systems and directory based systems

Illustrate how Snoopy Cache Systems and Directory Based Systems operate in the following scenario: Handraw the statuses of the three steps corresponding to the scenario for each system.

  How many elementary operations are used in algorithm

How many elementary operations are used in the following algorithm? The elementary operations are comparison operations (such as > and

  Write the code to exchange the values of these two variables

Write the code to exchange the values of these two variables (so that after the swap xp points to what yp originally pointed to and vice-versa.

  Write a program to create singly linked list data structures

Write a C++ program to create singly linked list data structures using dynamic memory allocation. Implement insert , delete , search, update and display operations.

  Create class having constructor to recieve two ints

Create a class (in C++)named Card. The class should have two int data members named face and suit.The class should have a constructor that recieves the two ints and uses them to initialize the data members.

  Up-casting and down-casting

What is the difference between "is" and "as" when down-casting an object?

  Write a program that reads a collection of positive numbers

Write a program that reads a collection of positive and negative numbers and multiplies only the positive integers. Loop exit should occur when three consecutive negative values are read.

  How do you generate arrays, random numbers

How do you generate arrays, random numbers and multiply and add rows, columns and diagonals in C

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd