Questions tagged [modular]
347 questions
-1
votes
1 answer
Struggling with calculating the inverse using Eulers-thereom
been struggling this whole day with trying to figure out the multiplicative inverse of 17 modulo 31. I know by "manual" computation that the actual inverse is 11 but how do I prove this with Euler's theorem.
We know that 31 is a prime, φ(n)=30, so i…

arif
- 97
- 1
- 11
-1
votes
1 answer
How to break a C file into multiple files
I am doing a project for a class and need help breaking my program into separate parts. My teacher gave us a prompt that stated which files would do what, but he didn't tell us how to write the header files. From what I learned online, I put…

Kevin Cheng
- 39
- 1
- 6
-1
votes
1 answer
Modular Marionette Application
I'm trying to structure my backbone/marionette application prior to coding it. I really want to make it very modular (aka I want to be able to pull and plugin some piece of nested functionality for the site. I want all the routes initialized right…

Jeff W
- 3
- 1
-2
votes
0 answers
Accessing AppDelegate inside a module (Swift Package / target Framework) in modular Architecture
i want to ask about using modular architecture for UIKit. As far as i know, it can be reached whether using Swift Package or Target Framework. For example for dependency injection there's Swinject library for Swift Package, or just some…
-2
votes
1 answer
Modular application (scale, performance, possible problems)
I'm currently working on a project (very early stage) and the goal is to create modular application, that is easily scalable by adding new modules. Modules can be anything from simple function to complex plugin (functionality, ui, ...). The core of…

JanW
- 11
- 1
-2
votes
1 answer
finding the odd numbers from below programs divisors
#include
using namespace std;
int main()
{ int i,num1,num2,sum=0,count=0;
cout<<"Enter a range: ";
cin>> num1>> num2;
for(i = num1;i <= num2; i++)
if(i%3 ==0 ||i%5 ==0)
{
count++;
…

Rashed Sami
- 141
- 1
- 4
- 12
-2
votes
1 answer
convert python code into modular python
im having trouble converting my python code into modular python. Can anyone help me out?
keep_going = "y"
while keep_going == "y":
sales = float(input("Enter the amount of sales: "))
comm_rate = .10
commission = sales * comm_rate
…

polskiebmw
- 1
- 4
-2
votes
2 answers
How to take in a number and divide it into three parts positive or negative, whole number and fractions
In a school assignment we where supposed to write a program that takes in a number and divide it in three parts:
1. Check if the number is positive or negative
2. whole number (magnitude)
3. fractional parts
The requirement is that there should be a…

LotharianBC
- 19
- 5
-2
votes
1 answer
how write modular design in c# ,asp.net?
I want write project modular and write each part project can use other project.
How can I do?
Do you have tutorial or example for it?
What should I to be learn ?

shahroz
- 359
- 1
- 6
- 17
-3
votes
1 answer
how do I use modular expression/ working with large intergers
I want to make a program that calculate the the populations after x years.
where the pop in 2002 is 6.2 billion people and increases 1.3 % each year.
The formula I will use is
population = ((1.013)**x) * 6.2B
How do I make 6.2B easier to work…

delgeezee
- 103
- 1
- 7
-3
votes
1 answer
Undefined reference to ´[function]'
Edit #1: Please find the solution as an answer to this initial post as a code example is used. Please try also to find a possible solution in What is an undefined reference/unresolved external symbol error and how do I fix it? It didn't help me, but…

xp10r3r
- 33
- 5
-3
votes
1 answer
Modular arithmetic calculation
Is there any way to calculate (a mod c)*(b mod c)?
Knowing only:
a*b
c
d
((a mod c)*(b mod c)) mod c
(a mod d)*(b mod d)

tsurt
- 1
- 1
-3
votes
1 answer
Modular Android app development
I have a small app for lawyers that is working fine. But now I want to implement some courthouse data integration (in Brazil).
Unfortunatelly our courthouses doesnt provide any kind of API, so I need to perform some page crawling to obtain the…

oleonardomachado
- 104
- 5
-4
votes
2 answers
Indentation on python
My python program isnt running. Im sure im missing something but im pretty sure i just indented wrong. Can anyone lend me a hand? thank you!
def main():
sales = getSales()
advancedPay = getAdvancedPay()
commRate =…

Bottom Out
- 1
- 2
-4
votes
2 answers
conflicting types for my function "inverse", which is designed to return long long type
I try to figure out what I did wrong here, basically the function is for calculating the module inverse number to a-1 mod m. but program is getting errors.
can somebody point out what is causing the errors?
//calculating the inverse of the public…
user3374137