Write a program that asks the user to enter an integer. The program should display Positive if
Question:
Write a program that asks the user to enter an integer. The program should display “Positive” if the number is greater than 0, “Negative” if the number is less than 0, and “Zero” if the number is equal to 0. The program should then display “Even” if the number is even, and “Odd” if the number is odd.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (4 reviews)
Prompt the user to enter an integer number intinputEnter an integer Determin...View the full answer
Answered By
Asim farooq
I have done MS finance and expertise in the field of Accounting, finance, cost accounting, security analysis and portfolio management and management, MS office is at my fingertips, I want my client to take advantage of my practical knowledge. I have been mentoring my client on a freelancer website from last two years, Currently I am working in Telecom company as a financial analyst and before that working as an accountant with Pepsi for one year. I also join a nonprofit organization as a finance assistant to my job duties are making payment to client after tax calculation, I have started my professional career from teaching I was teaching to a master's level student for two years in the evening.
My Expert Service
Financial accounting, Financial management, Cost accounting, Human resource management, Business communication and report writing. Financial accounting : • Journal entries • Financial statements including balance sheet, Profit & Loss account, Cash flow statement • Adjustment entries • Ratio analysis • Accounting concepts • Single entry accounting • Double entry accounting • Bills of exchange • Bank reconciliation statements Cost accounting : • Budgeting • Job order costing • Process costing • Cost of goods sold Financial management : • Capital budgeting • Net Present Value (NPV) • Internal Rate of Return (IRR) • Payback period • Discounted cash flows • Financial analysis • Capital assets pricing model • Simple interest, Compound interest & annuities
4.40+
65+ Reviews
86+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Ivanhoe Company incurred research and development costs of $ 9 0 0 0 0 to develop a patent, and legal fees of $ 3 0 0 0 0 to register the patent. The patent has a legal life of 2 0 years and a useful...
-
The following are trial balance of Clarissa Amanda Sdn. Bhd. as at 31st December 2021. Debit RM Credit RM Opening stock, 1 Jan 2021 16,000 Purchases 75,000 Sales return 5,000 Carriage inwards 1,500...
-
April Moon set a record in flight shooting. In 1981 in Utah, she sent an arrow a horizontal distance of 950 m. What was the speed of the arrow at the top of the flight if the arrow was launched at an...
-
Identify each of the following items relating to sections of a balance sheet as Current Assets (CA), Property and Equipment (PE), Current Liabilities (CL), Long-Term Liabilities (LTL), or Owners...
-
Quality Suppliers, Inc., has decided to extend its shipping option. Now, Quality Suppliers is offering to ship the amount ordered in five equal shipments, one each week. It will take five weeks for...
-
In the single-phase power bus of Fig. 1.12, the characteristics of the loads are as follows. Determine the total power factor of the bus: \[ \begin{gathered} \text { Load } 1: P_{1}=25 k W, Q_{1}=25...
-
When sampling for attributes, which of the following would decrease sample size? Choose the best answer. Risk of Assessing Control Risk Too Low a. Increase b. Decrease c. Increase d. Increase...
-
Freeman Electronics currently produces the shipping containers it uses to deliver the electronics products it sells. The monthly cost of producing 10,000 containers follows. Unit-level materials...
-
6. A sender has the following data item to send: If 8-bit checksum is used 10011001111000100010010010000100 a. Find the checksum at the sender site. b. Find the checksum at the receiver site if there...
-
What is a control structure?
-
Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z if the variable x is greater than 100.
-
Provide examples of each of the eight types of waste described in this chapter for the following service operations: a. A supermarket b. A campus cafeteria c. A library d. A dentist's office
-
During lunch, Timothy and his friends play a game of marbles. In the bag there are 4 blue marbles and 5 purple marbles. What is the probability that a blue marble is randomly chosen, followed by a...
-
If x has the dimension of [Z], t has the dimension of [7], and v has the dimension of the dimension and the SI unit of the constants A and B in the expression below. v = At + Bt [2] determine
-
A loan of $28,000 is made at 8% interest, compounded annually. After how many years will the amount due reach $81,000 or more? (Use the calculator provided if necessary.) Write the smallest possible...
-
Consider the following. 9 + 3 p = 39-5 Let u(q) = q + 3 and v(q) = 3q - 5. Find each indicated derivative. u'(q) v'(q) = Find each indicated product. v(q) - u'(q) = u(a) v'(q) = Find dq dp dq
-
Ffor the following situation there is a $ 3 0 fee to rent a chainsaw + 6 dollars per day let ex represent the number days the salt is rented and y represent the charge of the user in dollars if the...
-
Green Thumb Manufacturing produces self-watering planters for use in upscale retail establishments. Sales projections for the first five months of the upcoming year show the estimated unit sales of...
-
Distinguish between the work performed by public accountants and the work performed by accountants in commerce and industry and in not-for-profit organisations.
-
Why does the following pseudocode not perform as indicated in the comments? // This program asks the user to enter a value // between 1 and 10 and validates the input. Declare Integer value // Get a...
-
This type of error occurs when you try to assign a value of one data type to a variable of another data type. a. Type mismatch error b. Boolean logic error c. Relational error d. Bit conversion error
-
This is an example of a data type conversion function in pseudocode. a. Sqrt b. ToReal c. Substring d. IsNumeric
-
3. Design and implement a 7 segment decoder for the segment F(12) 4. Simplify the following Karnaugh maps and draw the simplified circuit. AB 00 01 11 10 CD 00 1 1 1 1 01 0 1 1 1 11 1 1 0 0 10 1 1 1...
-
The given signals are [n] LLLLLL -10 x,[n] 2 n -10 n 10 10 -2 Find the numerical value of y[n] at n = 3. The numerical value of y[n] at n = 3 is
-
Given what we know about transmission delay and the following: A web client and a web server separated by one intermediary router. Each link carries data at 1Mbps with an MTU of 8192 bytes Each link...
Study smarter with the SolutionInn App