1 what is the output of the following c programsnbspinclude

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

1. What is the output of the following C++ programs?

 #include <iostream>

using namespace std;

int main()

{

    cout << "Testing our   ";

    cout << "program in C++ language . "<<endl;

    cout << "10 -5  =  " << 10 - 5<< endl;

    return 0;

}

2.  Given the radius, in inches, and price of a pizza, design an algorithm to find the price of the pizza per square inch.

3. The cost of an international call from Abu Dhabi to Khartoum is calculated as follows: Connection fee 1.99; 2.00 Dirham for the first three minutes; and 0.45 for each additional minute. Design an algorithm that asks the user to enter the number of minutes the call lasted. The algorithm then uses the number of minutes to calculate the amount due.

4. To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

Reference no: EM13380156

Questions Cloud

The purpose of this assignment is to provide you with : the purpose of this assignment is to provide you with experience in some basic tasks of a systems analyst. this is
1 your experiences with the social networking sites like : 1. your experiences with the social networking sites like craig list etc etc?2. include how long you have been using
Question 1 use the attached database to provide the : question 1 use the attached database to provide the relational algebra which would list the requested information
Consider the following schema of an online flight : consider the following schema of an online flight reservation agency.customercid lastname firstname dobflightfid
1 what is the output of the following c programsnbspinclude : 1. what is the output of the following c programs?nbspinclude ltiostreamgtusing namespace stdint mainnbspnbspnbsp cout
1a describe the high level steps involved for decryption : 1.a describe the high level steps involved for decryption using a feistel cipher.b modify the pseudo code provided in
Have to write a small program that prompts the user to : have to write a small program that prompts the user to enter a temperature in degrees fahrenheit and then prints a
What kind of measurement scales ratio interval etc : what kind of measurement scales ratio interval etc. characterizes the following software measuresi. number of lines of
You are the cio of a successful accounting firm with : you are the cio of a successful accounting firm with offices in cities across the nation.nbsp you recently attended a

Reviews

Write a Review

C/C++ Programming Questions & Answers

  What is printed by the following program

What is printed by the following program?

  Write a function name is prime

Write a function name is Prime, which takes an integer as an argument and returns true if the argument is a prime number, or false otherwise. Demonstrate the function in a complete program.

  The two-dimensional array

1. Given the two-dimensional array declared by the following statement int myArray[4][3] = {{2,4,6},{1,8,10},{3,5,7},[9,11,13}}; what is the value of myArray[1][2]

  Write equivalent compound statements

What action must be taken before a variable can be used in a program?

  Create huffman codes

Write a C++ program to create Huffman codes. Program input is a file called freq.txt (make up your own file for testing) that contains data on the characters in some cleartext file in the form of each character's non-zero frequency of occurrence i..

  Why are timestamps used in the kerberos protocol

Assume that Alice shares a secret s with her company's server computer. When Alice is on a trip, she tries to store an important message in the CEO's account directory.

  Write a program that fills in an array

Write a program that fills in an array, a, of 25 integers where each element contains the sum of all the previous elements plus 1, e.g., a[0] is 1 and a[3] is equal to a[0] + a[1] + a[2] + 1.

  Floating point values into an array

Write a program that allows a user to enter 10 floating point values into an array. Then, in a loop, the program should prompt the user for a desired precision and subsequently display each value to the correct precision.

  Write a c++ program that reads a set of integers

Write a c++ program that reads a set of integers and then finds and prints the sums of the even and odd numbers.

  You will write a program that reads a text file

You will write a program that reads a text file, counts the number of words in the file, and the number of occurrences of each character. It will print to a file the number of words, and the number of occurrences of each character, as well as the ..

  A typical individual who commits who commits hate crimes

a typical individual who commits who commits hate crimes whether it is against or aimed at the gaylesbian community

  Exercise 1 implementation of classes chart and barchart

exercise 1 implementation of classes chart and barchart. class barchart chould display a simple textual representation

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