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

  Program to read the records until end of file

Zip code, county and number of boxes. The program should read the records until end of file is encountered and produce enough mailing labels for each order.

  Design and implement a class contains instance data

Design and implement a class called sphere that contains instance data that represents the sphere's diameter. Define the Sphere constructor to accept and initialize the diameter.

  Your english instructor realizing you are a programmer asks

your english instructor realizing you are a programmer asks you to write a grade book program for his class to help

  Design application to declare an array

Design an application that declares an array of 10 HousePlants. Prompt the user user for data for each of the HousePlants, then display all the values.

  Program to calculate interest on account balance

10% of total amount owed, which ever is larger. Program comprises loop which lets user repeat this computations until user says she or he is done.

  Write program prompts to enter three sides of triangle

Write a program which prompts the user to enter three sides of a triangle and your program will display the three sides and its category of either equilateral, isosceles or all unequal.

  Write down public static method using public interface

Using only public interface of UnorderedLinkedList class, write down a method: public static void reverse(UnorderedLinkedList staff) that reverses the entries in a linked list.

  Provide a brief history of the language

Provide a brief history of the language (1-2 slides) including standards if any. What need does this language fill that others do not and discuss the language in terms of the paradigms described in Chapters 1-5 of our textbook. Provide code sample..

  Write program to evaluate young worker-s earning

Write down a program to evaluate how much young worker will make before retiring at age 65. Request worker's name, age, and starting salary as input.

  Sketch state diagram for machine using sw

Sketch the State Diagram for machine using any SW (i.e. MS Visio).: Print out your VHDL Code and Simulation waveforms for you design 3 Points: Print out your VHDL Code for your self-checking Test Bench

  Define function that takes year as it-s input argument

Define and call a function fast_food_billions that takes the year as it's input argument and returns the prediction as it's result. Tell the user that entry of a year before 2005 will cause the program to stop.

  Prepare a php form which allows input for an individual and

create a php form that allows input for an individual and displays the information on a subsequent page upon

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