Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6:25 Home / My courses Computer Prog. For Engineering / Ahlam Al-Ghafri / Assignment for sections: 3,12,13,17,18 Question 3 Not yet answered Marked out of

6:25 Home / My courses Computer Prog. For Engineering / Ahlam Al-Ghafri / Assignment for sections: 3,12,13,17,18 Question 3 Not yet answered Marked out of 5.00 Flag question Write a C program using if-else. The program reads one integer number z. Then it reads one real number a and one integer number b. According to z, the program will calculate the value of k and prints the result according to the following table: Z Required Calculation 1 or 2 a a+b k=-+ Any other number Invalid entered number Note: Write your answer by hand on a paper. Scan then upload. [5 marks] Maximum file size: 50MB, maximum number of Files e-learning.hct.edu.om - Private files: 2 6:25 Question 2 Not yet answered Marked out of 3.00 Flag question Write a C program that inputs the amount spend on food items (fp) and the amount spend on non-food items (nfp) during a visit to a hypermarket. Assume a VAT of 5% is applied on non-food items. The program calculates and displays the total bill to be paid. Sample Dialog Format: Enter the total amount for food items: 40.0 Enter the total amount for non-food items: 25.0 Tax on non-food items is 1.250000 Total amount to pay 66.250000 Note: Write the program by hand on a paper. Scan, then upload. Maximum file size: 50MB, maximum number of Files e-learning.hct.edu.om -Private files: 2 6:23 Teams Question 1 Not yet answered Marked out of 7.00 Flag question Write a c program and draw the flowchart using else if to enter the goals scored by team and its rank and do the following: goals Operation >=10 Decrease the rank by 3 and display 7-9 and display Decrease the rank by 2 3-6 Decrease the rank by 1 and display Otherwise Display "no change in the rank" Note: Draw the flowchart by hand on a paper. Scan then upload. 3.5 mark for flowchart + 3.5 marks for the C program. AA > e-learning.hct.edu.om B

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Services And Markets

Authors: Dr. Punithavathy Pandian

8125931201, 978-8125931201

More Books

Students also viewed these Accounting questions

Question

What are some of the hallmarks of each type of equity mode?

Answered: 1 week ago

Question

What factors will enhance and hinder flow experiences?

Answered: 1 week ago

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago