Answer:
Total money he had = $136 (Approx.)
Explanation:
Given:
Spend on rent = 25%
Spend on food = 30%
Total of expenses = $75
Find:
Total money he had
Computation:
Total money he had = [Total of expenses][100/ (Spend on rent + Spend on food)]
Total money he had = [75][100/ (25 + 30)]
Total money he had = [75][100/ (55)]
Total money he had = 136.36
Total money he had = $136 (Approx.)
Change owner rights... I think you forgot to put the choices, I am taking a wild guess of what the answers could have been.
#include <iostream> using namespace std; int isPrimeNumber(int); int main() { bool isPrime; for(int n = 2; n < 100; n++) { // isPrime will be true for prime numbers isPrime = isPrimeNumber(n); if(isPrime == true) cout<<n<<" "; } return 0; } // Function that checks whether n is prime or not int isPrimeNumber(int n) { bool isPrime = true; for(int i = 2; i <= n/2; i++) { if (n%i == 0) { isPrime = false; break; } } return isPrime; }
Answer:
I'm going to do it but you should try these things for yourself or else you won't learn.
Explanation:
-First create a project (I'm using Netbeans 14 and the project is a Maven, but the code should work on any IDE)
-Name the project 'ShoppingCartPrinter' and leave the package name as it is. This is the main class so the main method is gonna be there already.
-Then you will create a second class named 'ItemToPurchase'. So I'll leave the code in the attachment (at the bottom of my answer it's written 'Download txt') or else brainly will think it's some sort of redirection to another websites because of the 'dots' and won't let me post it.