Dear student, according to the question, the solution is as follows:
Program:
#include <stdio.h>
int wholesale_price, retail_price,profit; // Global Variables
void houseKepping()
{
printf("Enter the
wholesale_price of an item : ");
scanf("%d",&wholesale_price);
}
void detail()
{
printf("Enter the retail_price
of an item : ");
scanf("%d",&retail_price);
profit =retail_price -
wholesale_price; //profit calculation
printf("\nThe Profit is :
%d\n",profit); //displaying the profit
}
void End_of_the_job()
{
printf("Thanks for using this
program");
}
int main()
{
// Calling all the three modules
houseKepping();
detail();
End_of_the_job();
return 0;
}
Output:
Case 2:
Thank you, All the best.
If at all any doubts feel free to contact through the comment section.
Draw the hierarchy chart and then plan the logic for a program for the sales manager of The RHC Company Ltd. The manager needs a program to determine the profit on any item sold. Input includes th...
Draw the hierarchy chart and design the logic for a program that calculates the projected cost of a remodeling project. Assume that the labor cost is $30 per hour. Design a program that prompts the user for a number hours projected for the job and the wholesale cost of materials. The program computes and displays the cost of the job which is the number of hours times the hourly rate plus the 120% of the wholesale cost of materials. The...
Question 3.1 Draw the class diagram for the ATM program in
Question 2.1.
Please find attached the scenario in the photos.
this is for programming logic and design
Scenario A local bank intends to install a new automated teller machine (ATM) to allow users (i.e., bank customers) to perform basic financial transactions (see below figure). Each user can have only one account at the bank. ATM users should be able to do the following; View their account balance. Withdraw cash...