Create new program which prompts user for numbers

Assignment Help Programming Languages
Reference no: EM1368386

Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function.

B. Create a program that uses the same formula above to output the result; this time, however, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions.

C. Create a program that prompts a user for her name. Store the user's name using the scanf() function and return a greeting back to the user using her name.

D. Create a new program that prompts a user for numbers and determines total revenue using the following formula: Total Revenue = Price * Quantity.

E. Build a new program that prompts a user for data and determines a commission using the following formula: Commission = Rate * (Sales Price - Cost).

Reference no: EM1368386

Questions Cloud

Making an unsolicited bid to take hasbro : If you were an economist for Mattel, manufacturer of the doll Barbie, determine which was making an unsolicited bid to take over Hasbro, manufacturer of G.I. Joe,
Calculating growth rate of nominal gdp : Nominal GDP in a country was $8,759.9 billion in 2003 & $9,254.6 billion in 2004. The price index was 102.86 for 2003 & 104.37 for 2004.
Ensure the chart exhibit''s the pareto effect : Ensure the chart exhibit's the Pareto effect and What percentage of the items fall into the top two or three categories and How could you use this information in problem solving?
Occupational health & safety : Write a paper on  Human Resources: Occupational Health & Safety,  Explain why workplace accidents and diseases are harmful for the business.
Create new program which prompts user for numbers : Create a new program whihc prompts a user for numbers and determines total revenue using following formula: Total Revenue = Price * Quantity.
Calculating present worth : A firm wants to lease some land from you for twenty years and build a warehouse on it. As your payment for the lease, you will own the warehouse at the end of the twenty years.
Explain regarding sales force payment methods : Explain Regarding sales force payment methods and it is common to sacrifice some simplicity to gain more flexibility, incentive, or control and combination plans offer some degree of security, incentive, and control.
Human resources: labor relation : Write a paper on   Human Resources: Labor Relation- 10 Pages,  Analyze the importance of labor relations for human resource managers
Expanding economy, inflation and households borrowing : Is it possible for the gross federal debt to rise in dollar terms but decline as a percentage of GDP? Explain your answer.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program that asks user to enter current value

Write a program which asks the user to enter the current value of a car. For new car, it is selling price of car. The program must display number of years it takes for the car's trade-in value to be below $1000.

  Design program to accepts account number

Design a program that accepts an account number, the account owner's first and last names, and a balance. Print the projected running total balance for each year for the next 20 years.

  Create logic for application for user for order information

Create the logic for an application that continuously prompts a user for order information until the user enters "ZZZ" for the customer name or 10 orders.

  Write application to use random-number to create sentences

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

  Program to display aggregate information for state

For each state, display aggregate information for that state, including: the total number of counties in the state, the total number of tax returns.

  Create xml document to mark up the nutrition facts

Create XML document to mark up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value.

  Write program to enter number of packages purchased

Write a program that asks the user to enter the number of packages purchased.The program should then display the amount of the discount.

  Write a program to model a simple calculator

Write a program to model a simple calculator. Each data line should consist of the next operation to be performed from the list below and the right operand.

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Write a class for two instance variables

Write a class named ParkingMeter containing: Two instance variables named timeLeft and maxTime of type int. The value of timeLeft should be initialized to 0.

  Deisgn child class that overrides parent method

Deisgn child class named Box, that contains additional data field named depth and a computeSurfaceArea() method that overrides the parent method appropriately for a three-dimensional box

  Program to compute person earns in a month

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day.

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