Generate a salary as a number with two digits

Assignment Help Programming Languages
Reference no: EM13693812

Can you write this program in c language?

Question: Generate a salary as a number with two digits after the decimal point. The salary for a teacher should be in the range from $40,000 to 70,000.

Below is a sample of what the output should look like:

The teacher makes $42333.13 a year.

It must compile with no errors and follow the directions.

Reference no: EM13693812

Questions Cloud

Electric company that generates atmospheric pollution : Consider an electric company that generates atmospheric pollution. Suppose the Government imposes a tax directly on the sellers of electricity.  Consider the market education. Let the Government provide a subsidy to the students. This policy will hav..
Consider pollution control in the electric industry : Consider pollution control in the electric industry. The prices of marketable permits are set by:
Minimum annual production rate to make this investment : A manufacturing company is considering a capacity expansion investment at the cost of $245,219 with no salvage value. The expansion would enable the company to produce up to 35,887 parts per year and the useful life of the additional capacity is seve..
Economists occasionally speak of helicopter money : Economists occasionally speak of “helicopter money” as a short-hand approach to explaining increases in the money supply. Suppose the Governor of the Fed flies over the country in a helicopter dropping 10,000,000 in newly printed $100 bills (a total ..
Generate a salary as a number with two digits : Generate a salary as a number with two digits after the decimal point. The salary for a teacher should be in the range from $40,000 to 70,000.
Program to tests whether they form a magic square : Write a program that reads n2 numbers from standard input and tests whether they form a magic square when put into matrix form.
Write a program to print out a simplified bill : Write a program to print out a simplified bill. The customer's name, the number of hours of labor, and the cost of parts and supplies should be entered in response to INPUT statements.
Calculate the average of a variable quantity of integers : Create a simple command line program to calculate the average of a variable quantity of integers that are passed as an argument when the program is called.
Write a program to print all of the permutations : Write a program to print all of the permutations of the values 1, 2, 3, ..., n - Your program takes one argument from the command line, which as an integer n  that is the number of elements.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a short report on a current game engine

Briefly introduce and discuss a game engine of students own choice. Students are encouraged to explore the concept and discussion of existing technologies which define a game engine.

  Program to calculate the electricity bill

Write a program to calculate the electricity bill. The rates of electricity per unit are as follows: If the units consumed are equal or less than 100, then the cost is Rs 8/- per unit.

  You are an analyst for a large public pension fund and you

you are an analyst for a large public pension fund and you have been assigned the task of evaluating 2 different

  How to update web pages using navy for unvisited link

The Marketing Director at Steel Solutions is unhappy that links on company Web page appear in blue. She has asked you to update Web pages to use navy for unvisited link.

  What is the difference between re-locatable program

What is the difference between re-locatable program and re-locatable data?, Explain the working of increment and decrement instruction ?

  Create application which gets customer account data

Some interest Credit Company gives loans to customers at 1.5 percent interest per month. Create the application which gets customer account data which includes the account number, customer name, and balance due.

  Display total amount owed in fixed-point notation

Enter your C++ instructions into a source file named Introductory11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total amount owed in fixed-point notation with two decimal places.

  Write program which instantiates objects of classes

Private data of Quadrilateral must be the x-y coordinate pairs for four end-points of the Quadrilateral. Write a program which instantiates objects of your classes and outputs each objects area (except Quadrilateral.

  Communicate with a pc using the rs232c serial protocol

In this assignment we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Case study the realcobreadmaster1develop a master

case study the realcobreadmaster1.develop a master production schedule for the breadmaker. what do the projected ending

  Write program uses while loop to output all odd numbers

Write a program that uses while loop to perform the following steps: Output all the odd numbers between firstnum and secondnum inclusive.

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