Declare element array of chars named letters

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

Question 1: Declare a 12-element array of chars named letters.

Question 2: What does the following program segment display?

dept = 5;

price = 100;

if(dept == 5 && price > 100)

discount = .20;

else if (price >= 100)

discount = .15;

else if(dept == 5)

discount = .10;

else

discount = .05;

cout << discount;

Solve this Program using c programming concepts.

Reference no: EM13693281

Questions Cloud

Performance measurement guide to information security : Performance Measurement Guide to Information Security. Using this document, identify five measures you would be interested in finding the results from based on your home computing systems and/or network.
Making a query to produce all clients for one of the sales : Making a query to produce all clients for one of the sales that are assigned to multiple clients - Produce a full client list by each sales person.
Write a program to track hourly employee arrival : A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock - If the user enters an incorrect value more than 3 times, display a prompt that the prog..
Write a for loop header that will count backwards : Write a statement to call a function named getAge that returns an integer and takes no parameters. Assign the returned value to the already declared variable child.
Declare element array of chars named letters : Declare a 12-element array of chars named letters and what does the following program segment display?
Evaluate the expression : How many times will "jump" be displayed in the following program segment? If the loop doesn't terminate, write "infinite" Evaluate the expression.
The energy in a system that is available to do work : Problem- A. At constant T and P, the direction of spontaneous change is the direction of increasing free energy. B. Free energy is the energy in a system that is available to do work.
Describe how you would use the students titration curve : The student plotted pH versys volume (mL) of NaOH added and found the titration required 26.66mL of NaOH to reach equivalence point. Describe how you would use the students titration curve to determine the K(a) value for formic acid.
Explain how many grams of sodium oxalate : Problem- If the water in your house has 1000.0 mg/L of calcium carbonate dissolved in it, How many grams of sodium oxalate could you mix with 100.0 mL of that water before a precipitate would form

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Given a character code to indicate the type of customer

Pete's Plumbing of Pompey sells to both retail and wholesale buyers. The retail buyer must pay New York State and Onondaga County sales tax (8%). However, the wholesale buyer does not pay sales tax and receives a volume discount on the amount purchas..

  Describe what kind of architecture the new payroll

you have been tasked with building a payroll program for a large organization with offices spread across the united

  Define a function named average grade

Define a function named average grade. This function returns a double and has four double arguments, testi, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments.

  Write a program to determine how long (sec.)

Using the v 2  form of drag, write a program to determine how long (sec.) and how far (m) a 150 gram ball whose radius is 3.5cm would fall before it reached 75% of its terminal velocity. Assume ball falls in air whose density is 1.21 kg/m 3 , has a d..

  Write a menu driven program for an online beef

Write a menu driven program for an online beef distribution company. There are 8 different

  Program to calculate word ladders where single-character

Write down a program in C++ to calculate word ladders where single-character substitutions have the cost of 1, and single-character additions or deletions.

  Use selection sort to sort a[48] into increasing order

Use selection sort to sort A[48] into increasing order, and then print out the sorted list in four rows. There may be duplicates, but that's OK. (65 and 53 appear twice.) Duplicates will appear next to each other in the sorted list.

  Write a program to calculate existing angles and do if and

write a program to calculate existing angles and do if and then from this and to place fixed angles at certain position

  Find the pairs in any given matrix

write a c program which will find the pairs in any given matrix, whose sum of pairs are 10.

  What is a cell reference

What is a cell reference (also called a cell address) and what is the significance of being able to use them in spreadsheet formulas?

  Calculate and display the number of units of electricity

The manager of PG&E wants a program that calculates a customer's electric bill. He will enter the current and previous meter readings.

  Modify it so it gives the ith largest number

the follow code gives the ith smallest number, how do you modify it so it gives the ith largest number ?

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