程式作業:The function of Decoder is converting binary number input to decimal number output. (C++)

 The function of Decoder is converting binary number input to decimal number output.

The decoder works only when "enable" is true.

Please finish the class "Decoder4_16" according to the given classes.

"Decoder4_16" should be composed of "Decoder2_4".

You could add any function if you need.

  • Decoder4_16() :create entities for class members.
  • Decoder4_16(bool) : set the value of  "enable" when declare a Decoder4_16 and create entities for class members.
  • setEnable(bool) : set the value of "enable"

  • setEnable(Gate *) : set the value of "enable"
  • setValue(bool, int) : set the value to the assigned "input". For example, a.setValue(false, 1) means that the "input[1]" of a is setting to false.
  • setValue(Gate *, int) : set the value to the assigned "input". For example, a.setValue(b, 1) means that the "input[1]" of a is b.
  • operator[ ](int) : return the the wanted output gate according to the parameter. For the example below, "dec[3]" is true, so the returned gate's output is true, assuming that dec is Decode4_16.
  • operator<<(ostream, Decoder4_16) : return all the value of the decoder. For the example below, "cout << dec" returns "0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 ",assuming that dec is Decode4_16.
  • output() : return the corresponding decimal value(0~15). For the example below, "output()" is 3.


////////////////////////////////////////////
/*
Decoder的作用是將輸入的二進制數轉換為十進制數輸出。

解碼器僅在“enable”為真時工作。

請根據給定的課程完成“Decoder4_16”課程。

“Decoder4_16”應該由“Decoder2_4”組成。

如果需要,您可以添加任何功能。

Decoder4_16() :為類成員創建實體。
Decoder4_16(bool) :在聲明 Decoder4_16 並為類成員創建實體時設置“enable”的值。
setEnable(bool) :設置“enable”的值
setEnable(Gate *) : 設置“enable”的值
setValue(bool, int) :將值設置為指定的“輸入”。例如,a.setValue(false, 1) 表示 a 的“input[1]”設置為 false。
setValue(Gate *, int) :將值設置為分配的“輸入”。例如a.setValue(b, 1)表示a的“input[1]”為b。
operator[ ](int) :根據參數返回想要的輸出門。對於下面的示例,“dec[3]”為真,因此返回的門的輸出為真,假設 dec 是 Decode4_16。
operator<<(ostream, Decoder4_16) :返回解碼器的所有值。對於下面的示例,“cout << dec”返回“0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0”,假設 dec 是 Decode4_16。
output() : 返回對應的十進制值(0~15)。對於下面的示例,“output()”為 3。

*/
class Gate
{
    public :
        Gate *input[2] ;
        virtual bool output() = 0 ;
  		virtual void setValue(Gate *, int) = 0 ;
        virtual void setValue(bool, int) = 0 ;
} ;

class TRUE : public Gate
{
    public :
        bool output() { return 1 ; }
        virtual void setValue(Gate *, int) {}
        virtual void setValue(bool, int) {}
} ;

class FALSE : public Gate
{
    public :
        bool output() { return 0 ; }
        virtual void setValue(Gate *, int) {}
        virtual void setValue(bool, int) {}
} ;

TRUE t ;
FALSE f ;

class NOT : public Gate
{
    public :
        bool output() { return !(this -> input[0] -> output()) ; }
        virtual void setValue(bool val, int pin = 0)
        {
        	if(val) this -> input[0] = &t ;
            else this -> input[0] = &f ;
        }
        virtual void setValue(Gate* gate, int pin = 0) { this -> input[0] = gate ; }
} ;

class NAND : public Gate
{
    public :
        bool output() { return !(this -> input[0] -> output()) || !(this -> input[1] -> output()) ; }
        virtual void setValue(Gate *gate, int pin) { this -> input[pin] = gate ; }
        virtual void setValue(bool val, int pin)
        {
            if(val) setValue(&t, pin) ;
            else setValue(&f, pin) ;
        }
} ;

class NOR : public Gate
{
    public :
        bool output() { return !(this -> input[0] -> output()) && !(this -> input[1] -> output()) ; }
        virtual void setValue(Gate *gate, int pin) { this -> input[pin] = gate ; }
        virtual void setValue(bool val, int pin)
        {
            if(val) setValue(&t, pin) ;
            else setValue(&f, pin) ;
        }
} ;

//“AND”必須由“NOT”和“NAND”組成。
  class AND : public Gate
{
    public :
        AND() : Gate()
        {
            component[0] = new NOT ;
            component[1] = new NAND ;
        }
        virtual bool output()
        {
            component[1] -> input[0] = this -> input[0] ;
            component[1] -> input[1] = this -> input[1] ;
            component[0] -> input[0] = component[1] ;
            return component[0] -> output() ;
        }
    private :
        Gate *component[2] ;
} ;

  //“OR”必須由“NOT”和“NOR”組成。
 class OR : public Gate
{
    public :
        OR() : Gate()
        {
            component[0] = new NOT ;
            component[1] = new NOR ;
        }
        virtual bool output()
        {
            component[1] -> input[0] = this -> input[0] ;
            component[1] -> input[1] = this -> input[1] ;
            component[0] -> input[0] = component[1] ;
            return component[0] -> output() ;
        }
    private :
        Gate *component[2] ;
} ;

  //“XOR” 可以由任何門組成(包括內置閘和自己實現的上面閘)。
   class XOR : public Gate
{
    public :
        XOR() : Gate()
        {
           
        }
      
		virtual bool output() { return (this -> input[0] -> output()) ^ (this -> input[1] -> output()) ; }
			          
       
    private :
       
} ;

class Decoder
{
    public :
        virtual void setValue(bool, int) = 0 ;
        virtual void setValue(Gate *, int) = 0 ;
        virtual void setEnable(bool) = 0 ;
        virtual void setEnable(Gate *) = 0 ;
        virtual int output() = 0 ;
        virtual Gate *operator[](int) = 0 ;
    protected :
        Gate *enable ;
} ;

class Decoder2_4 : public Decoder
{
    public :
        Decoder2_4() : Decoder2_4(0) {}
        Decoder2_4(bool val)
        {
            if(val) this -> enable = &t ;
            else this -> enable = &f ;
            for(int i = 0 ; i < 2 ; i++)
                component[i] = new NOT ;
            for(int i = 2 ; i < 6 ; i++)
                component[i] = new AND ;
            for(int i = 0 ; i < 4 ; i++)
                enables[i] = new AND ;
        }
        virtual void setEnable(bool val)
        {
            if(val) this -> enable = &t ;
            else this -> enable = &f ;
        }
        virtual void setEnable(Gate *gate) { this -> enable = gate ; }
        virtual void setValue(Gate *gate, int i) { component[i % 2] -> input[0] = gate ; }
        virtual void setValue(bool val, int i)
        {
            if(val) component[i % 2] -> input[0] = &t ;
            else component[i % 2] -> input[0] = &f ;
        }
        virtual Gate *operator[](int n)
        {
            _out() ;
            switch(n)
            {
                case 0 : return enables[0] ;
                case 1 : return enables[1] ;
                case 2 : return enables[2] ;
                case 3 : return enables[3] ;
                default : return nullptr ;
            }
        }
        friend ostream &operator<<(ostream &out, Decoder2_4 dec)
        {
            for(int i = 3 ; i >= 0 ; i--)
                out << dec[i] -> output() << " " ;
            return out ;
        }
        virtual int output()
        {
            for(int i = 0 ; i < 4 ; i++)
                if(enables[i] -> output()) return i ;
        }
    private :
        Gate *component[6] ;
        Gate *enables[4] ;

        void _out()
        {
            component[2] -> input[0] = component[0] ;
            component[2] -> input[1] = component[1] ;

            component[3] -> input[0] = component[0] -> input[0] ;
            component[3] -> input[1] = component[1] ;

            component[4] -> input[0] = component[0] ;
            component[4] -> input[1] = component[1] -> input[0] ;

            component[5] -> input[0] = component[0] -> input[0] ;
            component[5] -> input[1] = component[1] -> input[0] ;

            for(int i = 0 ; i < 4 ; i++)
            {
                enables[i] -> input[0] = this -> enable ;
                enables[i] -> input[1] = component[i + 2] ;
            }
        }
} ;

class Decoder4_16 : public Decoder
{
    public :
        Decoder4_16() : Decoder4_16(0) {} {}
		
		// set the value of  "enable" when declare a Decoder4_16 and create entities for class members.
        Decoder4_16(bool val) {
			
			 for(int i = 0 ; i < 5 ; i++)
                dec2_4[i] = new Decoder ;
			
			if(val) dec2_4[0] -> enable = &t ;
            else    dec2_4[0] -> enable = &f ;
			
           			
			
		}
        virtual void setEnable(bool val) {
			dec2_4[0]->setEnable(val);
		}
        virtual void setEnable(Gate *gate) {
			dec2_4[0]->setEnable(gate);   
			
		}
        virtual void setValue(bool val, int pin) {
			
			if (pin==0)      { for(int i=1;i<5;i++)  dec2_4[i]->setValue(val, 0); }
			else if (pin==1) { for(int i=1;i<5;i++)  dec2_4[i]->setValue(val, 1); }
			else if (pin==2) { dec2_4[0]->setValue(val, 0); }
			else if (pin==3) { dec2_4[0]->setValue(val, 1);}
					
			_Decode();		
		}
        virtual void setValue(Gate *gate, int pin) {
			
			if (pin==0)      { for(int i=1;i<5;i++)  dec2_4[i]->setValue(gate, 0); }
			else if (pin==1) { for(int i=1;i<5;i++)  dec2_4[i]->setValue(gate, 1); }
			else if (pin==2) { dec2_4[0]->setValue(gate, 0); }
			else if (pin==3) { dec2_4[0]->setValue(gate, 1);}
			
			_Decode();
			
		}
        virtual Gate *operator[](int n) {
			
			  switch(n)
            {
                case 0 : return dec2_4[0] ;
                case 1 : return dec2_4[1] ;
                case 2 : return dec2_4[2] ;
                case 3 : return dec2_4[3] ;
				case 4 : return dec2_4[4] ;
                default : return nullptr ;
            }
			
		}
		
		
        friend ostream &operator<<(ostream &out, Decoder4_16 dec) {
			
			  for(int i = 4 ; i >= 1 ; i--)
				  for(int j = 3 ; j >= 0 ; i--)
                    out << dec.ec2_4[i][j] -> output() << " " ;
            
			return out ;
			
		}
        
		// output() : 返回對應的十進制值(0~15)。
		int output() {
			int i,j;
			 
             i=dec2_4[1]->output() ;
			 j:= dec2_4[2]-> output(); if (j>0) i=i+4+j;
			 j:= dec2_4[3]-> output(); if (j>0) i=i+8+j;
			 j:= dec2_4[4]-> output(); if (j>0) i=i+12+j;
			 
			
			return i;
		}
    private :
        Decoder *dec2_4[5] ;
		
		
		 void _Decode()
        {
			Decoder *dec=dec2_4[0];
			
            dec2_4[1]->setEnable(dec[0]);
			dec2_4[2]->setEnable(dec[1]);
			dec2_4[3]->setEnable(dec[2]);
			dec2_4[4]->setEnable(dec[3]);
			
        }
		
} ;

程式作業:OneBitHalfAdder 及 OneBitFullAdder (C++)

 Please finish the classes "OneBitHalfAdder" and "OneBitFullAdder" according to the given classes.

"OneBitHalfAdder" must be composed of "AND" and "XOR".

"OneBitFullAdder" must be composed of "OneBitHalfAdder" and "OR".

You could add any function if you need.

Default Constructor: create new entities for "component"
sum() :return the correct sum depending on the addition of two "input" while the return value is "Gate *

  • carryOut() : return the correct carry depending on the addition of two "input" while the return value is "Gate *".
  • setValue(bool, int) : set the value to the assigned "input". For example, a.setValue(false, 1) means that the "input[1]" of a is setting to false.
  • setValue(Gate *, int) :set one gate to the assigned "input". For example, a.setValue(b, 0) means that the "input[0]" is b.
/////////////////////////////////////////////
/*
請根據給定的類完成類“OneBitHalfAdder”和“OneBitFullAdder”。

“OneBitHalfAdder”必須由“AND”和“XOR”組成。

“OneBitFullAdder”必須由“OneBitHalfAdder”和“OR”組成。

如果需要,您可以添加任何功能。
Default Constructor: create new entities for "component"
sum() :return the correct sum depending on the addition of two "input" while the return value is "Gate *"
carryOut() : return the correct carry depending on the addition of two "input" while the return value is "Gate *".
setValue(bool, int) : set the value to the assigned "input". For example, a.setValue(false, 1) means that the "input[1]" of a is setting to false.
setValue(Gate *, int) :set one gate to the assigned "input". For example, a.setValue(b, 0) means that the "input[0]" is b.
*/

class Gate
{
    public :
        Gate *input[2] ;
        virtual bool output() = 0 ;
  		void setValue(Gate *, int) ;
        void setValue(bool, int) ;
} ;

class TRUE : public Gate
{
    public :
        virtual bool output() { return 1 ; }
        void setValue(Gate *, int) {}
        void setValue(bool, int) {}
} ;

class FALSE : public Gate
{
    public :
        virtual bool output() { return 0 ; }
        void setValue(Gate *, int) {}
        void setValue(bool, int) {}
} ;

TRUE t ;
FALSE f ;

void Gate::setValue(bool val, int pin)
{
    if(val) this -> input[pin] = &t ;
    else this -> input[pin] = &f ;
}

void Gate::setValue(Gate *gate, int pin) { this -> input[pin] = gate ; }

class NOT : public Gate
{
    public :
        virtual bool output() { return !(this -> input[0] -> output()) ; }
        void setValue(bool val, int pin = 0)
        {
        	if(val) this -> input[0] = &t ;
            else this -> input[0] = &f ;
        }
        void setValue(Gate* gate, int pin = 0) { this -> input[0] = gate ; }
} ;

class NAND : public Gate
{
    public :
        virtual bool output() { return !(this -> input[0] -> output()) || !(this -> input[1] -> output()) ; }
} ;

class NOR : public Gate
{
    public :
        virtual bool output() { return !(this -> input[0] -> output()) && !(this -> input[1] -> output()) ; }
} ;


  //“AND”必須由“NOT”和“NAND”組成。
  class AND : public Gate
{
    public :
        AND() : Gate()
        {
            component[0] = new NOT ;
            component[1] = new NAND ;
        }
        virtual bool output()
        {
            component[1] -> input[0] = this -> input[0] ;
            component[1] -> input[1] = this -> input[1] ;
            component[0] -> input[0] = component[1] ;
            return component[0] -> output() ;
        }
    private :
        Gate *component[2] ;
} ;

  //“OR”必須由“NOT”和“NOR”組成。
 class OR : public Gate
{
    public :
        OR() : Gate()
        {
            component[0] = new NOT ;
            component[1] = new NOR ;
        }
        virtual bool output()
        {
            component[1] -> input[0] = this -> input[0] ;
            component[1] -> input[1] = this -> input[1] ;
            component[0] -> input[0] = component[1] ;
            return component[0] -> output() ;
        }
    private :
        Gate *component[2] ;
} ;

  //“XOR” 可以由任何門組成(包括內置閘和自己實現的上面閘)。
   class XOR : public Gate
{
    public :
        XOR() : Gate()
        {
           
        }
      
		virtual bool output() { return (this -> input[0] -> output()) ^ (this -> input[1] -> output()) ; }
			          
       
    private :
       
} ;

class Adder
{
    public :
        virtual void setValue(bool, int) = 0 ;
        virtual void setValue(Gate *, int) = 0 ;
        virtual Gate *sum() = 0 ;
        virtual Gate *carryOut() = 0 ;
} ;


// “OneBitHalfAdder”必須由“AND”和“XOR”組成。
class OneBitHalfAdder : public Adder
{
    public :
        OneBitHalfAdder() {
			
			 component[0] = new XOR ;
             component[1] = new AND ;
			
		}
        virtual void setValue(bool val, int pin) {
			
			component[0]->setValue(val, pin);
			component[1]->setValue(val, pin);
			
			
		}
        virtual void setValue(Gate *gate, int pin) {
			component[0]->setValue(gate, pin);
			component[1]->setValue(gate, pin);
						
		}
        virtual Gate *sum() { return component[0]; }
        virtual Gate *carryOut() { return component[1]; }
    private :
        Gate *component[2] ;
} ;

class OneBitFullAdder : public Adder
{
    public :
        OneBitFullAdder() {
			
			 a[0] = new OneBitHalfAdder ;
             a[1] = new OneBitHalfAdder ;
			 carry =new OR;
			
		}
        virtual void setValue(bool val, int pin) {
			
			// pin 0 =A  pin1=B  pin 2 = Cin
			
			if (pin>=0 && pin<=1) { a[0]->setValue(val,pin);  a[1]->setValue(a[0]->sum ,0);  }
			if (pin==2) { a[1]->setValue(val,1);    }
						
			
		}
        virtual void setValue(Gate *gate, int pin) {
			
			if (pin>=0 && pin<=1) { a[0]->setValue(gate,pin);  a[1]->setValue(a[0]->sum ,0);  }
			if (pin==2) { a[1]->setValue(gate,1);    }
						
		}
        virtual Gate *sum() {
			return  a[1]->sum();
		}
        virtual Gate *carryOut() {
			
			carry->setValue(a[0]->carryOut,0); carry->setValue(a[1]->carryOut,1);
			
			return  carry;
			
		}
    private :
        Adder *a[2] ;
        Gate *carry ;
} ;

程式作業: 2 questions for simulating logic gates ( C++)

 Logic gates is the basic of any computers. From now on, there will be 2 questions for simulating logic gates and their extension

1 is True and 0 is False. 

 Please finish the classes "AND", "OR" and "XOR" according to the given classes. 

 "AND" must be composed of "NOT" and "NAND". 
 "OR" must be composed of "NOT" and "NOR". 
 "XOR" can be composed of any gates (including build-in gates and above gates that implemented by yourself). 

  •  Default Constructor : create new entities for "component" 
  • output() : return the correct result depending on the two "input"
 
/*
 1 為真,0 為假。
  請根據給定的類完成類“AND”、“OR”和“XOR”。
  “AND”必須由“NOT”和“NAND”組成。
  “OR”必須由“NOT”和“NOR”組成。
  “XOR” 可以由任何門組成(包括內置閘和自己實現的上面閘)。
  
默認構造函數:為“組件”創建新實體
output() :根據兩個“輸入”返回正確的結果


*/

class Gate   // 閘
{
    public :
        Gate *input[2] ;
        virtual bool output() = 0 ;
  		void setValue(Gate *, int) ;
        void setValue(bool, int) ;
} ;

class TRUE : public Gate
{
    public :
        virtual bool output() { return 1 ; }
        void setValue(Gate *, int) {}
        void setValue(bool, int) {}
} ;

class FALSE : public Gate
{
    public :
        virtual bool output() { return 0 ; }
        void setValue(Gate *, int) {}
        void setValue(bool, int) {}
} ;

TRUE t ;
FALSE f ;

void Gate::setValue(bool val, int pin)
{
    if(val) this -> input[pin] = &t ;
    else this -> input[pin] = &f ;
}

void Gate::setValue(Gate *gate, int pin) { this -> input[pin] = gate ; }

class NOT : public Gate
{
    public :
        virtual bool output() { return !(this -> input[0] -> output()) ; }
        void setValue(bool val, int pin = 0)
        {
        	if(val) this -> input[0] = &t ;
            else this -> input[0] = &f ;
        }
        void setValue(Gate* gate, int pin = 0) { this -> input[0] = gate ; }
} ;

class NAND : public Gate
{
    public :
        virtual bool output() { return !(this -> input[0] -> output()) || !(this -> input[1] -> output()) ; }
} ;

class NOR : public Gate
{
    public :
        virtual bool output() { return !(this -> input[0] -> output()) && !(this -> input[1] -> output()) ; }
} ;





class XOR : public Gate
{
    public :
        XOR() : Gate() {}
        virtual bool output() {}
    private :
        Gate *component[5] ;
} ;
// Reference example
class XNOR : public Gate
{
    public :
        XNOR() : Gate()
        {
            component[0] = new NOT ;
            component[1] = new XOR ;
        }
        virtual bool output()
        {
            component[1] -> input[0] = this -> input[0] ;
            component[1] -> input[1] = this -> input[1] ;
            component[0] -> input[0] = component[1] ;
            return component[0] -> output() ;
        }
    private :
        Gate *component[2] ;
} ;



  //“AND”必須由“NOT”和“NAND”組成。
  class AND : public Gate
{
    public :
        AND() : Gate()
        {
            component[0] = new NOT ;
            component[1] = new NAND ;
        }
        virtual bool output()
        {
            component[1] -> input[0] = this -> input[0] ;
            component[1] -> input[1] = this -> input[1] ;
            component[0] -> input[0] = component[1] ;
            return component[0] -> output() ;
        }
    private :
        Gate *component[2] ;
} ;
  
  //“OR”必須由“NOT”和“NOR”組成。
 class OR : public Gate
{
    public :
        OR() : Gate()
        {
            component[0] = new NOT ;
            component[1] = new NOR ;
        }
        virtual bool output()
        {
            component[1] -> input[0] = this -> input[0] ;
            component[1] -> input[1] = this -> input[1] ;
            component[0] -> input[0] = component[1] ;
            return component[0] -> output() ;
        }
    private :
        Gate *component[2] ;
} ;
  
  
  //“XOR” 可以由任何門組成(包括內置閘和自己實現的上面閘)。
   class XOR : public Gate
{
    public :
        XOR() : Gate()
        {
           
        }
      
		virtual bool output() { return (this -> input[0] -> output()) ^ (this -> input[1] -> output()) ; }
			          
       
    private :
       
} ;

程式作業: 輸入學生考試成績並印出不及格人數及最高最低分數 (C++)

設計一個程式讓使用者輸入10位學生的考試成績,並分別印出不及格人數(低於60分者)最高及最低分數。

#include <stdio.h>
int main() {
   
    int d[10],i,j,amax,amin;
   amax=0; amin=100;
    j=0;
    for(i=0;i<10;i++)
    {
        printf("請輸入學生%d 成績: ",i+1);
        scanf("%d",&d[i]);
        if (d[i]>amax) amax=d[i];
        if (d[i]<amin) amin=d[i];
        if (d[i]<60) j++;
    }
  
   printf("不及格人數:%d  最高:%d 最低分數:%d",j,amax,amin);
 
    return 0; 
}   

執行結果:



程式作業:輸入一個正整數N,印出指定數列 (C++)



 
#include <stdio.h>
// 輸入一個正整數N,印出指定數列
int main() {
    int n,i,j;
    printf("請輸入一正整數:");
    scanf("%d",&n);
    for (i=1;i<=n;i++)
    {
        for (j=1;j<=i;j++)
        {
            printf("%d",n-j+1);
        }
        printf("\n");
        
    }

    return 0;
}

執行結果:



程式作業: 水費價格程式設計 (VB)

視窗化輸出與輸入規劃,計算用水100度與程式執行結果驗證

水費費率如下表

段別

月用水度數

單價元

第一段

1-20

7.5

第二段

20-40

9.5

第三段

40-80

12

第四段

80度以上

15

 

 
Private Sub waterfee()

	' 輸入用水度
	Dim s1 As String
	s1 = InputBox("請輸入用水度", "水費計算", "0")

	v = CInt(s1)  '入用水度

	r = 0

If v >= 1 And v <= 20 Then
  r = 75
End If

If v > 20 And v <= 40 Then
  r = r + 95
End If
  
If v > 40 And v <= 80 Then
  r = r + 12
End If

If v > 80 Then
  r = r + 15
End If

 	s1 = "入用水度:" + CStr(v) + " 應繳水費:" + CStr(r)
 	MsgBox (s1)

End Sub


計算水費 執行結果:



程式作業: 報稅試算程式設計(VB)

計算收入182萬,應繳稅額稅率

級別

稅率

課稅級距

1

5%

52萬以下

2

12%

520,000~1170,000

3

20%

1170,000~2350,000

4

30%

2350,000~4400,000

5

40%

4,400000~Max

Private Sub CalculateTaxRate()

Dim v, r, t
v = 1820000
' 計算收入182萬,應繳稅額與稅率
r = 0
If v < 520000 Then
  r = 0.05 '5%
ElseIf v <= 1170000 Then
  r = 0.12 '12%  
ElseIf v <= 2350000 Then
  r = 0.2  '20%  
ElseIf v <= 4400000 Then
  r = 0.3  '30%
Else
  r = 0.4 '40%
End If

  t = v * r ',應繳稅

Dim s As String
  s = "收入182萬" + "應繳稅額:" + CStr(t) + " 稅率: " + CStr(r * 100) + "%"

  MsgBox (s)

End Sub

計算收入182萬,應繳稅額與稅率 執行結果:

Delphi 程式開發之軟體移植 (Delphi Source code migration)

 

Delphi 程式開發之軟體移植

協助遷移使用任何版本的 Delphi構建的任何類型的軟體程式

在 Windows 95 上運行的 Delphi 1.0


DELPHI軟體程式遷移服務


Delphi Software migration services

我們協助執行所有類型的軟體遷移

您的軟體可能是使用 Delphi 5 或 Delphi 7 編寫的,並且可能仍能正常工作。
但是我們必須考慮作業系統升級所帶來的風險,特別是如果您將軟體提供給客戶。
如同以下案例的風險:

  • 每個新的 Windows 版本都會破壞一些現有的功能,尤其是在 UI 部分;
  • 某些介面或 API 可能已過時;
  • 無法存取最新的操作系統功能或是實現的成本太高;
  • 3rd 方組件供應商停止提供對您的 Delphi 版本的支持;
  • 甚至有些供應商已經不存在了,但您仍然需要對這些組件進行更新。
假定您的軟體從 Delphi 5、7 和其他版本等舊版 Delphi 遷移到最新版本。
如果想遷移軟體程式,我們可以以最可行的方式遷移您的軟體程式碼。
並非在所有情況下都能順利遷移。
在初步分析之後,我們可以選擇重新轉寫或將舊程式遷移到新版本。

如果你的機台或軟體是用舊版DELPHI版本所撰寫,若想要遷移程式碼到新的作業系統上執行
歡迎與我聯絡: cmf6214@gmail.com



生酮飲食+輕斷食 70天 -10.2kg


生酮飲食+輕斷食 70天 -10.2kg  


2018/01/10~2018/03/20   75.2 KG -> 65.0 KG



配合運動 :  單車 30 分    開合跳 300*3 

Toyota RAV4 鍍膜後七個月車況 @台中

RAV 4 交車後 在2016/12/30 車子鍍膜 距今已將七個月了

個人覺得 鍍膜的好處 就是 車子容易清理,因時間上無法配合所以沒回店家維護保養,
大部分時間都是用 高壓水柱沖水 然後用布擦乾 (註: 車子一定要擦乾 才能保持清潔)
每月去投幣式自助洗車,用泡沫洗一洗 (高壓水10元 -> 泡沫10元->高壓水10元 )
然後一樣一定要用布擦乾 ,這就是鍍膜的好處,不用買一堆車用清潔用品就能保持車子明亮清潔。

另外 車子停外面難免會滴到鳥糞,若沒馬上擦掉則痕跡很難處理因鳥糞會腐蝕車漆,而我的車也常滴到鳥糞,本想說慘了又要花時間處理了 ,沒想到 只用濕布一擦就乾淨無痕。

雨水容易造成車子上的水漬,要處理掉水漬又是一筆錢,今年常下雨觀察這幾個月車子的狀況並沒有產生水漬,除了鍍膜的緣故另外就是車子一定要保持乾的狀態不要有水滴,因為一旦有水就會附著飛塵泥沙汙垢,當水乾了這些東西就會卡在車漆上,日積月累車子就會失去光澤。

以下是 鍍膜後七個月車況組圖X9













相關文章:

2015/12/30   TOYOTA RAV4 新車鍍膜 @台中


2015/12/26 Toyota RAV4 交車開箱
http://cmf-resource.blogspot.tw/2016/01/20151226-toyota-rav4.html

2015/12/26 交車後,Toyota RAV4 配備菜單組圖 X 32 分享
http://cmf-resource.blogspot.tw/2016/01/20151226-toyota-rav4-x-32.html


2015/12/26 交車後,Toyota RAV4 配備菜單組圖 X 33 分享


簽約時寫了一堆配件,說實在的有些東西還不知它的用途為何
所以 在交車後拍了一些配件圖,分享給想購車的朋友們,再決定自己是否有需要

[ 購車配件 ]

8吋雲端影音主機
(數位電視.影音導航.倒車影像.1080P行車紀錄器.藍芽.USB,MHL手機鏡像)
(圖一)

(圖二 八吋雲端主機)

(圖三 數位電視)
(圖四 衛星導航)
(圖五 1080P行車紀錄器.)


(圖六 倒車顯影)










胎壓偵測器
(圖七)

抬頭顯示器
(圖八)

前方停車雷達(附開關)
(圖九)

行車語音安全
(圖十)


功能說明:

  • 安全帶未繫語音警示
  • 手煞車未放語音警示
  • 車門未關語音警示
  • 大燈未關語音警示
  • 行李箱未關語音警示
  • 電瓶低電壓語音警示
  • 超速語音警示(可自行設定速度)




後視鏡自動收折系統
(圖十一)

減速車距警示系統
(圖十二)
當車輛行駛中,車速驟減時,系統會自動啟動雙黃燈閃爍約三秒鐘,以警示後方來車前有緊急狀況,以便即刻採取反應措施,保持車距避免追撞事故發生。


速控上鎖系統 + 升級防盜系統
(圖十三)
讓您的愛車多一層防護,防盜系統於警戒狀態中,遭強行開車門時,防盜系統會立即觸發原車喇叭作動,以嚇阻竊賊,達到防盜功能。 2.行車速度達到約10KM/HR 車門鎖會自動上鎖;熄火後,車門鎖會自動解除,下車更便利。 3.上車前按下防盜或解除鍵,小燈亮起,便於尋找愛車並增加停車處的照明,確保您的安全。

當車速約20公里時,中控自動上鎖並可以設定超速警示功能,提供車主行車安全,減少不必要的危險。


晶片電磁排擋鎖
(圖十四)

全車FSK 350SB隔熱紙
(圖十五)

負離子空氣清淨機
(圖十六)

碳纖維真皮方向盤
(圖十七)

鍍鉻排氣尾管
(圖十八)

防水置物墊
(圖十九)

廣角鏡
(圖二十)

避光墊
(圖二一)

晴雨窗*4
(圖二二)

蜂巢腳踏墊
(圖二三)

車頂架
(圖二四)

鯊魚鰭天線
(圖二五)

車側踏板
(圖二六)



[自購小配件]

USB 車充
(圖二七)

防滑墊
(圖二八)

扶手箱儲物盒
(圖二九)

座椅縫隙塞防漏墊
(圖三十)

車門防撞條
(圖三一)

門檻飾板
(圖三二)

Philo 警急救援 車用行動電源
(圖三三)


2016/02/01 添購小配件-丅O丫OTA牛皮汽車頸枕X2
(圖三四)

RAV4的頭枕有點高,使頸部懸空,長途開車易造成頸部肌肉緊繃而造成頭暈 頭痛
個人從小坐車及開長途都易頭暈 頭痛
所以買了一組來支撐頸部減緩頭痛

============================================
相關文章:


2015/12/26 Toyota RAV4 交車開箱


http://cmf-resource.blogspot.tw/2015/12/toyota-rav4.html

Toyota RAV4 鍍膜後七個月車況 @台中